Bug 491855 (WarnGlibCritAssert) - [GTK] A lot of glib assertions fail in SWT GTK
Summary: [GTK] A lot of glib assertions fail in SWT GTK
Status: CLOSED NOT_ECLIPSE
Alias: WarnGlibCritAssert
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.8   Edit
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted, triaged
Depends on:
Blocks: 518143
  Show dependency tree
 
Reported: 2016-04-16 17:05 EDT by Marcin Mielniczuk CLA
Modified: 2018-12-14 13:45 EST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mielniczuk CLA 2016-04-16 17:05:34 EDT
When running the latest Neon M6 I get lots of such critical errors:

(Eclipse:24146): GLib-CRITICAL **: g_base64_encode_step: assertion 'in != NULL' failed
Comment 1 Marcin Mielniczuk CLA 2016-04-20 11:46:58 EDT
This doesn't happen with SWT_GTK3=0
Comment 2 Michel DEVEL CLA 2016-07-20 04:43:40 EDT
I have the same problem with the final released version
Comment 3 Eric Williams CLA 2016-07-20 10:50:57 EDT
What OS and GTK versions does this occur with?
Comment 4 Michel DEVEL CLA 2016-07-21 04:33:50 EDT
(In reply to Eric Williams from comment #3)
> What OS and GTK versions does this occur with?

I have installed the parallel developer edition of neon on a personal PC with opensuse 42.1 using Qt libs 5.7.0 and KDE Framework 5.24.0.
libgtk-2_0-0 version is 2.24.30-8.3
libgtk-3-0 version is 3.16.7-5.1
Comment 5 Michel DEVEL CLA 2016-07-21 04:35:44 EDT
(In reply to Marcin Mielniczuk from comment #1)
> This doesn't happen with SWT_GTK3=0

Where did you make that change?
Comment 6 Marcin Mielniczuk CLA 2016-07-21 04:45:34 EDT
I can't reproduce this anymore on Arch Linux, Gtk 3.20.

All I get is a couple of warnings:

** (eclipse:7148): WARNING **: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

** (java:7151): WARNING **: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized.  Will retry after the state location is initialized.
org.eclipse.m2e.logback.configuration: Logback config file: /home/marcin/workspace/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.7.0.20160603-1933.xml

When I set SWT_GTK3=0, I ran Eclipse as follows: env SWT_GTK3=0 eclipse

Michel, can you try with Gtk 3.20?
Comment 7 Michel DEVEL CLA 2016-07-21 05:15:31 EDT
(In reply to Marcin Mielniczuk from comment #6)
> 
> When I set SWT_GTK3=0, I ran Eclipse as follows: env SWT_GTK3=0 eclipse

Using that tip, I do not have the Glib-CRITICAL messages any more.
Thanks!
> 
> Michel, can you try with Gtk 3.20?

I have a laptop with a dual boot with opensuse Tumblewwed which is the "rolling release" version of opensuse, hence with more recent versions of components.
I shall try to see whether there is any difference.
Comment 8 Michel DEVEL CLA 2016-07-22 11:22:31 EDT
(In reply to Michel DEVEL from comment #7)
> > Michel, can you try with Gtk 3.20?
> 
> I have a laptop with a dual boot with opensuse Tumblewwed which is the
> "rolling release" version of opensuse, hence with more recent versions of
> components.
> I shall try to see whether there is any difference.

The laptop has libgtk-3-0 3.20.6-1.2 
It seems I do not have Glib-critical messages any more, but I have even more
"Gtk-WARNING **: Theme parsing error: gtk.css ... " messages!...
Comment 9 Anton Pussep CLA 2017-06-17 19:35:00 EDT
Ran into the same problem with the following configuration:

- SWT 4.6.1
- JDK 8 (8u131-b11-0ubuntu1.17.04.1)
- Eclipse Neon.3 Release (4.6.3)
- Ubuntu Linux 4.10.0-22-generic #24-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
- KDE Plasma 5.9.4 Qt 5.7.1

Error output:

(SWT:7578): GLib-CRITICAL **: g_base64_encode_step: assertion 'in != NULL' failed
Comment 10 Mia Fairchild CLA 2017-07-02 21:37:56 EDT
Ran into the same problem with the following configuration:

- openSUSE Leap 42.2 
- Linux kernel 4.4.73-18.17-default
- KDE Plasma Version:  5.8.6
- KDE Frameworks Version: 5.26.0
- QT Version 5.6.1
- OS type:  64-bit

Eclipse:  
- Eclipse IDE for Java Developers
- Version: Oxygen Release (4.7.0)
- Build id: 20170620-1800

------------
Errors:  multiple at startup

(Eclipse:2963): GLib-CRITICAL **: g_base64_encode_step: assertion 'in != NULL' failed
Comment 11 Leo Ufimtsev CLA 2017-07-03 12:16:21 EDT
I see a bunch of these when we run SWT's jUnit tests. 
This could be used to investigate.
Comment 12 Juergen Baier CLA 2017-08-23 10:17:42 EDT
Also occurs with Oxygen Release (4.7.0) on Ubuntu 17.04 with the xfce4 desktop:


(Eclipse:14327): GLib-CRITICAL **: g_base64_encode_step: assertion 'in != NULL' failed
...
(Eclipse:14327): Gtk-WARNING **: Allocating size to GtkBox 0x7f513532a160 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?

(Eclipse:14327): Gtk-WARNING **: Negative content width -6 (allocation 1, extents 4x3) while allocating gadget (node toolbar, owner GtkToolbar)
...
Comment 13 Eric Williams CLA 2017-08-26 14:28:28 EDT
(In reply to Juergen Baier from comment #12)
> Also occurs with Oxygen Release (4.7.0) on Ubuntu 17.04 with the xfce4
> desktop:
> 
> 
> (Eclipse:14327): GLib-CRITICAL **: g_base64_encode_step: assertion 'in !=
> NULL' failed

These are the GLib warnings for this bug.

> ...
> (Eclipse:14327): Gtk-WARNING **: Allocating size to GtkBox 0x7f513532a160
> without calling gtk_widget_get_preferred_width/height(). How does the code
> know the size to allocate?
> 
> (Eclipse:14327): Gtk-WARNING **: Negative content width -6 (allocation 1,
> extents 4x3) while allocating gadget (node toolbar, owner GtkToolbar)
> ...

These types of warnings are sizing warnings and are being tracked by bug 486068.
Comment 14 Eric Williams CLA 2018-12-14 13:45:53 EST
These errors are related to themes, and thus a ticket should be filed upstream with your theme maintainer -- this is known issue with some Ubuntu themes and it seems KDE is affected too. For sizing errors, please see bug 486068.