Eclipse crashes every time I add a new XML file to my menu section - Android

It seems that my eclipse crashes every time with a Stackoverflow error every time I add an xml file to my Android project in the /res/menu section. Here's the error log that it generates, has anyone encountered this problem before?

 eclipse.buildId=M20110210-1200 java.version=1.6.0_24 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86 Error Thu Apr 28 10:34:18 EDT 2011 Unhandled event loop exception java.lang.StackOverflowError at org.eclipse.wst.xml.core.internal.document.StructuredDocumentRegionProxy.setStructuredDocumentRegion(StructuredDocumentRegionProxy.java:338) at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:423) at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) at org.eclipse.wst.xml.core.internal.document.XMLModelUpdater.changeStructuredDocumentRegion(XMLModelUpdater.java:440) . . . repeats hundreds of times 

Thanks,
Thea

+6
source share
2 answers

What I did was make a new file and change its extension to .xml . This creates an empty xml element in the menu section, which somehow triggers a stackoverflow exception. If I look further down the list, it’s possible to create a new Android XML File in Eclipse. It will pre-populate the XML with LinearLayout and the errors will be stopped.

+1
source

Check this out, this is a problem similar to yours using ways to configure memory allocation. May help: StackOverflowError on Eclipse

0
source

Source: https://habr.com/ru/post/886888/


All Articles