Bug 364243 - !MESSAGE Unhandled event loop exception
Summary: !MESSAGE Unhandled event loop exception
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2011-11-20 14:24 EST by baranyai.roli CLA
Modified: 2011-11-24 02:05 EST (History)
3 users (show)

See Also:


Attachments
Logfile (10.19 KB, text/plain)
2011-11-20 14:26 EST, baranyai.roli CLA
no flags Details
Logfile_20111121 (7.22 KB, text/plain)
2011-11-21 13:57 EST, baranyai.roli CLA
no flags Details
logfile20111123 (252.65 KB, application/octet-stream)
2011-11-23 14:57 EST, baranyai.roli CLA
no flags Details
screenshot1 (143.79 KB, image/jpeg)
2011-11-23 14:58 EST, baranyai.roli CLA
no flags Details
screenshot2 (134.19 KB, image/jpeg)
2011-11-23 14:58 EST, baranyai.roli CLA
no flags Details
screenshot3 (202.16 KB, image/jpeg)
2011-11-23 14:59 EST, baranyai.roli CLA
no flags Details
main.xml (398 bytes, text/xml)
2011-11-23 14:59 EST, baranyai.roli CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description baranyai.roli CLA 2011-11-20 14:24:49 EST
Build Identifier: M20110909-1335

!SESSION 2011-11-20 20:16:08.173 -----------------------------------------------
eclipse.buildId=M20110909-1335
java.version=1.7.0_01
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=hu_HU
Command-line arguments:  -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.ui 4 0 2011-11-20 20:17:28.669
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalStateException: startLine (6) does not match endLine (7))
	at org.eclipse.swt.SWT.error(SWT.java:4282)
	at org.eclipse.swt.SWT.error(SWT.java:4197)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: java.lang.IllegalStateException: startLine (6) does not match endLine (7)
	at org.eclipse.jface.text.projection.ProjectionMapping.toImageLine(ProjectionMapping.java:480)
	at org.eclipse.jface.text.TextViewer.modelLine2WidgetLine(TextViewer.java:5272)
	at org.eclipse.wst.sse.ui.internal.StructuredTextViewer.modelLine2WidgetLine(StructuredTextViewer.java:753)
	at org.eclipse.jface.text.JFaceTextUtil.modelLineToWidgetLine(JFaceTextUtil.java:224)
	at org.eclipse.jface.internal.text.source.DiffPainter.paintLine(DiffPainter.java:220)
	at org.eclipse.jface.internal.text.source.DiffPainter.paint(DiffPainter.java:158)
	at org.eclipse.jface.text.source.LineNumberChangeRulerColumn.doPaint(LineNumberChangeRulerColumn.java:190)
	at org.eclipse.jface.text.source.LineNumberRulerColumn.doubleBufferPaint(LineNumberRulerColumn.java:703)
	at org.eclipse.jface.text.source.LineNumberRulerColumn.redraw(LineNumberRulerColumn.java:859)
	at org.eclipse.jface.text.source.LineNumberRulerColumn$1.run(LineNumberRulerColumn.java:422)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	... 23 more

Reproducible: Always
Comment 1 baranyai.roli CLA 2011-11-20 14:26:20 EST
Created attachment 207279 [details]
Logfile
Comment 2 Dani Megert CLA 2011-11-21 05:22:08 EST
Can you reproduce this?
In which editor did this happen?
Please attach the complete .log file.
Comment 3 baranyai.roli CLA 2011-11-21 13:57:37 EST
Created attachment 207327 [details]
Logfile_20111121
Comment 4 baranyai.roli CLA 2011-11-21 13:58:23 EST
(In reply to comment #2)
> Can you reproduce this?
> In which editor did this happen?
> Please attach the complete .log file.

Yes, when in one android project opened the main.xml file, and I change the Graphical Layout to main.xml for manual editing.
Sorry, I not speak english :(
I changed the Eclipse installation directory, reinstall the Android Dev Kit, and I tried much change, but failed.

I attached the full log file.

Thanks.

Roland
Comment 5 Nitin Dahyabhai CLA 2011-11-21 14:06:23 EST
StructuredTextViewer#modelLine2WidgetLine does some boundary checking because of bug 85709, but otherwise just passes the API call to the superclass as shown in the logs.
Comment 6 Dani Megert CLA 2011-11-22 02:58:07 EST
(In reply to comment #4)
> (In reply to comment #2)
> > Can you reproduce this?
> > In which editor did this happen?
> > Please attach the complete .log file.
> 
> Yes, when in one android project opened the main.xml file, and I change the
> Graphical Layout to main.xml for manual editing.

Which editor do you use? Select the file in the Project Explorer, open the context menu and see the bullet in the "Open With" submenu.

Please attatch the main.xml.
Comment 7 baranyai.roli CLA 2011-11-23 14:57:11 EST
(In reply to comment #6)
> (In reply to comment #4)
> > (In reply to comment #2)
> > > Can you reproduce this?
> > > In which editor did this happen?
> > > Please attach the complete .log file.
> > 
> > Yes, when in one android project opened the main.xml file, and I change the
> > Graphical Layout to main.xml for manual editing.
> 
> Which editor do you use? Select the file in the Project Explorer, open the
> context menu and see the bullet in the "Open With" submenu.
> 
> Please attatch the main.xml.

Hi

I have no time :(
I made screenshots, and attached the main.xml file.
Comment 8 baranyai.roli CLA 2011-11-23 14:57:44 EST
Created attachment 207442 [details]
logfile20111123
Comment 9 baranyai.roli CLA 2011-11-23 14:58:24 EST
Created attachment 207443 [details]
screenshot1
Comment 10 baranyai.roli CLA 2011-11-23 14:58:39 EST
Created attachment 207444 [details]
screenshot2
Comment 11 baranyai.roli CLA 2011-11-23 14:59:00 EST
Created attachment 207445 [details]
screenshot3
Comment 12 baranyai.roli CLA 2011-11-23 14:59:40 EST
Created attachment 207446 [details]
main.xml
Comment 13 Dani Megert CLA 2011-11-24 02:05:02 EST
OK, this looks like you're using an editor from Android tooling. The most likely cause for the exception is that this editor creates wrong regions for folded code blocks.

Please report the bug against Android tooling, so that they can investigate.