dvdkruk / protobuf-dt

Automatically exported from code.google.com/p/protobuf-dt
0 stars 0 forks source link

Console-related exceptions after installing 1.2.0 #192

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
After installing 1.2.0, everytime I save a .proto file I get a Problem Occurred 
dialog saying...
'Reveal End of Document; has encountered a problem, an internal error has 
occured, Argument not valid.

The two error logs follow...

java.lang.IllegalArgumentException: Argument not valid
    at org.eclipse.swt.SWT.error(SWT.java:4263)
    at org.eclipse.swt.SWT.error(SWT.java:4197)
    at org.eclipse.swt.SWT.error(SWT.java:4168)
    at org.eclipse.swt.graphics.TextStyle.<init>(TextStyle.java:171)
    at org.eclipse.swt.custom.StyleRange.<init>(StyleRange.java:78)
    at org.eclipse.swt.custom.StyleRange.<init>(StyleRange.java:93)
    at org.eclipse.ui.internal.console.IOConsolePartition.getStyleRange(IOConsolePartition.java:144)
    at org.eclipse.ui.internal.console.IOConsolePartitioner.getStyleRanges(IOConsolePartitioner.java:695)
    at org.eclipse.ui.console.TextConsoleViewer.lineGetStyle(TextConsoleViewer.java:226)
    at org.eclipse.swt.custom.StyledTextListener.handleEvent(StyledTextListener.java:48)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1061)
    at org.eclipse.swt.custom.StyledText.sendLineEvent(StyledText.java:8023)
    at org.eclipse.swt.custom.StyledText.getLineStyleData(StyledText.java:4154)
    at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:794)
    at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:720)
    at org.eclipse.swt.custom.StyledText.getPointAtOffset(StyledText.java:5419)
    at org.eclipse.swt.custom.StyledText.setCaretLocation(StyledText.java:8357)
    at org.eclipse.swt.custom.StyledText.scrollVertical(StyledText.java:7918)
    at org.eclipse.swt.custom.StyledText.setTopIndex(StyledText.java:9945)
    at org.eclipse.ui.console.TextConsoleViewer$3.runInUIThread(TextConsoleViewer.java:116)
    at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
    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(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    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)

and

org.eclipse.swt.SWTException: Failed to execute runnable 
(java.lang.IllegalArgumentException: Argument not valid)
    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:3563)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
    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(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    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)
Caused by: java.lang.IllegalArgumentException: Argument not valid
    at org.eclipse.swt.SWT.error(SWT.java:4263)
    at org.eclipse.swt.SWT.error(SWT.java:4197)
    at org.eclipse.swt.SWT.error(SWT.java:4168)
    at org.eclipse.swt.graphics.TextStyle.<init>(TextStyle.java:171)
    at org.eclipse.swt.custom.StyleRange.<init>(StyleRange.java:78)
    at org.eclipse.swt.custom.StyleRange.<init>(StyleRange.java:93)
    at org.eclipse.ui.internal.console.IOConsolePartition.getStyleRange(IOConsolePartition.java:144)
    at org.eclipse.ui.internal.console.IOConsolePartitioner.getStyleRanges(IOConsolePartitioner.java:695)
    at org.eclipse.ui.console.TextConsoleViewer.lineGetStyle(TextConsoleViewer.java:226)
    at org.eclipse.swt.custom.StyledTextListener.handleEvent(StyledTextListener.java:48)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1061)
    at org.eclipse.swt.custom.StyledText.sendLineEvent(StyledText.java:8023)
    at org.eclipse.swt.custom.StyledText.getLineStyleData(StyledText.java:4154)
    at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:794)
    at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:720)
    at org.eclipse.swt.custom.StyledText.getPointAtOffset(StyledText.java:5419)
    at org.eclipse.swt.custom.StyledText.setCaretLocation(StyledText.java:8357)
    at org.eclipse.swt.custom.StyledText.reset(StyledText.java:7785)
    at org.eclipse.swt.custom.StyledText.handleTextSet(StyledText.java:6271)
    at org.eclipse.swt.custom.StyledText$6.textSet(StyledText.java:5618)
    at org.eclipse.ui.internal.console.ConsoleDocumentAdapter.setWidth(ConsoleDocumentAdapter.java:390)
    at org.eclipse.ui.console.TextConsoleViewer$5.run(TextConsoleViewer.java:568)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
    ... 22 more

Original issue reported on code.google.com by wolfma...@gmail.com on 26 Jan 2012 at 10:18

GoogleCodeExporter commented 9 years ago
Additionally after I get this error eclipse becomes unusable. I have had to 
remove protobuf-dt for now.

Original comment by wolfma...@gmail.com on 26 Jan 2012 at 10:19

GoogleCodeExporter commented 9 years ago
It is not clear if the exception happens when setting colors in the console or 
printing messages. For now we are removing colors from the console to see if 
that helps.

Original comment by alr...@google.com on 27 Jan 2012 at 9:50

GoogleCodeExporter commented 9 years ago
Implemented a fix. Please give it a try using update site 
http://protobuf-dt.googlecode.com/git/update-site/development

Changes made can be found at rd8efbb468c7e

Please confirm this issue is fixed.

Original comment by alr...@google.com on 27 Jan 2012 at 10:03

GoogleCodeExporter commented 9 years ago
Thank you this seems to have fixed the issue.

Original comment by wolfma...@gmail.com on 27 Jan 2012 at 10:21

GoogleCodeExporter commented 9 years ago
Thanks Jim.

Original comment by alr...@google.com on 27 Jan 2012 at 10:27