Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Glib error when disposing a Combo under Linux
Glib error when disposing a Combo under Linux [message #801607] Sat, 18 February 2012 17:26 Go to next message
Eclipse UserFriend
Hi,

I'm getting the following error under Linux (OpenSuse 12.1, 32 bit, KDE,
everything is up-to-date) with both: Java 1.6 and 1.7 (Oracle):

(SWT:11586): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion
`G_IS_OBJECT (object)' failed

(No Exception is thrown the error is just prompted to stderr)
It happens when I try to dispose a drop-down Combo created by
"new Combo(group, SWT.DROP_DOWN)" inside a Group with a GridLayout. I'm
using some other widget types (Groups, Texts, Labels, Scales,
push/radio/check Buttons, TabFolders, ...) - none of them produces this
(or any other) error. I tried both, the stable and the development
version of SWT ("3.7.1" and "3.8 Milestone 5") with no luck.
I haven't found anything helpful about this issue, so I would like to
ask whether someone has experienced this problem too and whether there
is a workaround? This problem even appears if the Combo is empty and no
listener is attached to it.
I'm not 100% sure but this also seems to make the application hang on
exit (when clicking on the "X" in the window title bar to close the
window). I have added a DisposeListener which calls System.exit(0) so
the application is closed more or less normally (otherwise I have to
kill the process...)
BTW: No Problems under Win-7 (Java 1.6 and 1.7 (Oracle)), SWT 3.7.1
Any ideas?

Thanks in advance,
Patrick
Re: Glib error when disposing a Combo under Linux [message #805522 is a reply to message #801607] Thu, 23 February 2012 21:35 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi Patrick,

I haven't heard of this before. It looks like a bug, possibly dependent
on the gtk version you have installed. Please log a report with swt at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform&component=SWT
and be sure to include your Linux distro version info.

Thanks!
Grant


On 2/18/2012 12:26 PM, Patrick Rammelt wrote:
> Hi,
>
> I'm getting the following error under Linux (OpenSuse 12.1, 32 bit, KDE,
> everything is up-to-date) with both: Java 1.6 and 1.7 (Oracle):
>
> (SWT:11586): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion
> `G_IS_OBJECT (object)' failed
>
> (No Exception is thrown the error is just prompted to stderr)
> It happens when I try to dispose a drop-down Combo created by
> "new Combo(group, SWT.DROP_DOWN)" inside a Group with a GridLayout. I'm
> using some other widget types (Groups, Texts, Labels, Scales,
> push/radio/check Buttons, TabFolders, ...) - none of them produces this
> (or any other) error. I tried both, the stable and the development
> version of SWT ("3.7.1" and "3.8 Milestone 5") with no luck.
> I haven't found anything helpful about this issue, so I would like to
> ask whether someone has experienced this problem too and whether there
> is a workaround? This problem even appears if the Combo is empty and no
> listener is attached to it.
> I'm not 100% sure but this also seems to make the application hang on
> exit (when clicking on the "X" in the window title bar to close the
> window). I have added a DisposeListener which calls System.exit(0) so
> the application is closed more or less normally (otherwise I have to
> kill the process...)
> BTW: No Problems under Win-7 (Java 1.6 and 1.7 (Oracle)), SWT 3.7.1
> Any ideas?
>
> Thanks in advance,
> Patrick
Re: Glib error when disposing a Combo under Linux [message #806649 is a reply to message #805522] Sat, 25 February 2012 08:38 Go to previous message
Eclipse UserFriend
Grant Gayed wrote:
> I haven't heard of this before. It looks like a bug, possibly dependent
> on the gtk version you have installed. Please log a report with swt at
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform&component=SWT
> and be sure to include your Linux distro version info.

In case someone has the same problem and strumbles over this thread
first, here is the bug report I have just filed:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=372560

It seems to send the bug if you just reload the page (I accidentally
closed the browser and reopened it), so the description is in the first
comment, while the description field is empty...

Regards,
Patrick
Previous Topic:How to close progress bar only after all asyncExecs?
Next Topic:Browser.setUrl(arg0,arg1,arg2)
Goto Forum:
  


Current Time: Wed Apr 24 13:35:45 GMT 2024

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

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

Back to the top