Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Virtual table crash on gtk2
Virtual table crash on gtk2 [message #454163] Mon, 18 April 2005 15:13 Go to next message
Kristof Jozsa is currently offline Kristof JozsaFriend
Messages: 2
Registered: July 2009
Junior Member
Hi,

I'd like to discuss a potential problem with the new virtual table API of
3.1M6 on linux gtk2. In my RCP application I have a JFace TableViewer set
to SWT.VIRTUAL, fed by a DeferredContentProvider and filtered by a custom
IFilter implementation. My filter is configurable, it can filter on 3
different properties. The error which I bumped into can be reproduced via
the following steps:

- push about thousand rows into the tableviewer
- enable all 3 filter properties, resulting in an empty table in the
viewer (note that gtk2 still shows a couple of empty rows with alternating
background colors but with no content)
- disable one of the filters (some rows should appear) -> VM crash

But I've seen the same effect happening with enabling 2 filters of the 3
which would result in exactly one row getting shown in the tableviewer
(and the same VM crash happens instead).

The problem does now shows up on win32. The linux environment is: gentoo
linux 2.6.11 running Eclipse 3.1M6 on gtk+-2.6.4. I got this error
reported on NLD (novell linux desktop) and gtk+-2.4.9 as well.

The stacktrace was:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0xAA6D05F8
Function=gtk_tree_model_get_valist+0xDF
Library=/usr/lib/libgtk-x11-2.0.so.0

Current Java thread:
at org.eclipse.swt.internal.gtk.OS._gtk_tree_model_get(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_tree_model_get(OS.java:5 910)
at org.eclipse.swt.widgets.Table.pixbufCellDataProc(Table.java: 1685)
at org.eclipse.swt.widgets.Display.pixbufCellDataProc(Display.j ava:3203)
at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:47 03)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:942)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Na tive Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS. java:1129)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2470)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1570)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:306)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at com.npsh.analyzer.rcp.Application.run(Application.java:20)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:228)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:156)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:315 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:268)
at org.eclipse.core.launcher.Main.run(Main.java:942)
at org.eclipse.core.launcher.Main.main(Main.java:926)

I'm not really sure why gtk_tree_model_* is mentioned in the trace, as it
seems for me, it clearly comes from the tableviewer widget.

I'd like to confirm if that's a bug, and in case it is I'll report it to Bugzilla.

Any help, hints, comments are appreciated..
thanks much in advance,

Kristof Jozsa
Re: Virtual table crash on gtk2 [message #454199 is a reply to message #454163] Mon, 18 April 2005 22:15 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Please enter a bug report with the stack trace. Thanks.

"Kristof Jozsa" <kjozsa@ctp.com> wrote in message
news:pan.2005.04.18.15.13.13.566656@ctp.com...
> Hi,
>
> I'd like to discuss a potential problem with the new virtual table API of
> 3.1M6 on linux gtk2. In my RCP application I have a JFace TableViewer set
> to SWT.VIRTUAL, fed by a DeferredContentProvider and filtered by a custom
> IFilter implementation. My filter is configurable, it can filter on 3
> different properties. The error which I bumped into can be reproduced via
> the following steps:
>
> - push about thousand rows into the tableviewer
> - enable all 3 filter properties, resulting in an empty table in the
> viewer (note that gtk2 still shows a couple of empty rows with alternating
> background colors but with no content)
> - disable one of the filters (some rows should appear) -> VM crash
>
> But I've seen the same effect happening with enabling 2 filters of the 3
> which would result in exactly one row getting shown in the tableviewer
> (and the same VM crash happens instead).
>
> The problem does now shows up on win32. The linux environment is: gentoo
> linux 2.6.11 running Eclipse 3.1M6 on gtk+-2.6.4. I got this error
> reported on NLD (novell linux desktop) and gtk+-2.4.9 as well.
>
> The stacktrace was:
>
> An unexpected exception has been detected in native code outside the VM.
> Unexpected Signal : 11 occurred at PC=0xAA6D05F8
> Function=gtk_tree_model_get_valist+0xDF
> Library=/usr/lib/libgtk-x11-2.0.so.0
>
> Current Java thread:
> at org.eclipse.swt.internal.gtk.OS._gtk_tree_model_get(Native Method)
> at org.eclipse.swt.internal.gtk.OS.gtk_tree_model_get(OS.java:5 910)
> at org.eclipse.swt.widgets.Table.pixbufCellDataProc(Table.java: 1685)
> at org.eclipse.swt.widgets.Display.pixbufCellDataProc(Display.j ava:3203)
> at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
> at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:47 03)
> at org.eclipse.swt.widgets.Display.eventProc(Display.java:942)
> at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Na tive
Method)
> at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS. java:1129)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2470)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1570)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534)
> at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:306)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at com.npsh.analyzer.rcp.Application.run(Application.java:20)
> at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
java:228)
> at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:344)
> at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:156)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
)
> at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
..java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:315 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:268)
> at org.eclipse.core.launcher.Main.run(Main.java:942)
> at org.eclipse.core.launcher.Main.main(Main.java:926)
>
> I'm not really sure why gtk_tree_model_* is mentioned in the trace, as it
> seems for me, it clearly comes from the tableviewer widget.
>
> I'd like to confirm if that's a bug, and in case it is I'll report it to
Bugzilla.
>
> Any help, hints, comments are appreciated..
> thanks much in advance,
>
> Kristof Jozsa
>
Re: Virtual table crash on gtk2 [message #454214 is a reply to message #454199] Tue, 19 April 2005 08:26 Go to previous message
Kristof Jozsa is currently offline Kristof JozsaFriend
Messages: 2
Registered: July 2009
Junior Member
For further reference, it's bug #91848

thanks,
Kristof

On Mon, 18 Apr 2005 18:15:14 -0400, Steve Northover wrote:

> Please enter a bug report with the stack trace. Thanks.
>
> "Kristof Jozsa" <kjozsa@ctp.com> wrote in message
> news:pan.2005.04.18.15.13.13.566656@ctp.com...
>> Hi,
>>
>> I'd like to discuss a potential problem with the new virtual table API of
>> 3.1M6 on linux gtk2. In my RCP application I have a JFace TableViewer set
>> to SWT.VIRTUAL, fed by a DeferredContentProvider and filtered by a custom
>> IFilter implementation. My filter is configurable, it can filter on 3
>> different properties. The error which I bumped into can be reproduced via
>> the following steps:
>>
>> - push about thousand rows into the tableviewer
>> - enable all 3 filter properties, resulting in an empty table in the
>> viewer (note that gtk2 still shows a couple of empty rows with alternating
>> background colors but with no content)
>> - disable one of the filters (some rows should appear) -> VM crash
>>
>> But I've seen the same effect happening with enabling 2 filters of the 3
>> which would result in exactly one row getting shown in the tableviewer
>> (and the same VM crash happens instead).
>>
>> The problem does now shows up on win32. The linux environment is: gentoo
>> linux 2.6.11 running Eclipse 3.1M6 on gtk+-2.6.4. I got this error
>> reported on NLD (novell linux desktop) and gtk+-2.4.9 as well.
>>
>> The stacktrace was:
>>
>> An unexpected exception has been detected in native code outside the VM.
>> Unexpected Signal : 11 occurred at PC=0xAA6D05F8
>> Function=gtk_tree_model_get_valist+0xDF
>> Library=/usr/lib/libgtk-x11-2.0.so.0
>>
>> Current Java thread:
>> at org.eclipse.swt.internal.gtk.OS._gtk_tree_model_get(Native Method)
>> at org.eclipse.swt.internal.gtk.OS.gtk_tree_model_get(OS.java:5 910)
>> at org.eclipse.swt.widgets.Table.pixbufCellDataProc(Table.java: 1685)
>> at org.eclipse.swt.widgets.Display.pixbufCellDataProc(Display.j ava:3203)
>> at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
>> at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:47 03)
>> at org.eclipse.swt.widgets.Display.eventProc(Display.java:942)
>> at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Na tive
> Method)
>> at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS. java:1129)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2470)
>> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1570)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534)
>> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:306)
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
>> at com.npsh.analyzer.rcp.Application.run(Application.java:20)
>> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
> java:228)
>> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:344)
>> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:156)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
> )
>> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
> .java:25)
>> at java.lang.reflect.Method.invoke(Method.java:324)
>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:315 )
>> at org.eclipse.core.launcher.Main.basicRun(Main.java:268)
>> at org.eclipse.core.launcher.Main.run(Main.java:942)
>> at org.eclipse.core.launcher.Main.main(Main.java:926)
>>
>> I'm not really sure why gtk_tree_model_* is mentioned in the trace, as it
>> seems for me, it clearly comes from the tableviewer widget.
>>
>> I'd like to confirm if that's a bug, and in case it is I'll report it to
> Bugzilla.
>>
>> Any help, hints, comments are appreciated..
>> thanks much in advance,
>>
>> Kristof Jozsa
>>
Previous Topic:How to get the raw content that is rendered by org.eclipse.swt.browser.Browser
Next Topic:Adding annotations to SourceViewer not visible
Goto Forum:
  


Current Time: Thu Feb 25 20:11:28 GMT 2021

Powered by FUDForum. Page generated in 0.01601 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top