By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 1497 - gtk-qt-application often crashes i.c.w. Chromium
Summary: gtk-qt-application often crashes i.c.w. Chromium
Status: RESOLVED FIXED
Alias: None
Product: TDE
Classification: Unclassified
Component: non-core programs (show other bugs)
Version: R14.0.0 [Trinity]
Hardware: All Linux
: P5 normal
Assignee: Timothy Pearson
URL:
Depends on:
Blocks:
 
Reported: 2013-05-06 13:52 CDT by Julius Schwartzenberg
Modified: 2014-12-04 13:42 CST (History)
5 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments
gdb output with backtrace (42.72 KB, text/plain)
2013-05-06 13:52 CDT, Julius Schwartzenberg
Details
GTK-QT with QTCurve using Ozone pre-defined style on Ubuntu 13.04 with May 11, 2013 R14 nightlies (5.40 KB, application/octet-stream)
2013-05-12 09:46 CDT, Alex Couture
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julius Schwartzenberg 2013-05-06 13:52:41 CDT
Created attachment 1216 [details]
gdb output with backtrace

While I was using Chromium to report bugs here. I had multiple crashes while using Chromium. I have attached the output from GDB.
Comment 1 Alex Couture 2013-05-12 09:46:35 CDT
Created attachment 1271 [details]
GTK-QT with QTCurve using Ozone pre-defined style on Ubuntu 13.04 with May 11, 2013 R14 nightlies

GTK-QT with QTCurve using Ozone pre-defined style on Ubuntu 13.04 with May 11, 2013 R14 nightlies
Comment 2 Alex Couture 2013-05-12 09:51:39 CDT
LibreOffice can't start when GTK-QT theme engine is used with QTCurve. Also, other GTK apps are shown without theme (example: the background is black everywhere with text in white)

This is on GTK-QT with QTCurve using Ozone pre-defined style on Ubuntu 13.04 with May 11, 2013 R14 nightlies

With the classic theme (Plastik), it works, but not in all GTK apps. 2 non-working apps are: the default Ubuntu PDF reader (evince?) and when I right click on the Ubuntu network manager on the taskbar.
These programs also doesn't work with QTCurve.

-Alexandre
Comment 3 Alex Couture 2013-06-30 19:22:04 CDT
On PCLinuxOS 2012 with TDE 3.5.13.1 and LibreOffice 3.6 as well as on PCLinuxOS 2013 with TDE 3.5.13.2 and LibreOffice 4, just having  gtk-qt installed is enough to destroy part of the formatting of documents in LibreOffice. It doesn't even have to be activated to affect the layout of documents.

To try to reproduce the bug:
Make a new document with cropped and resized pictures. You can also put some line or shapes with the drawing toolbar of LibreOffice. Then, save, close LO and try to open back your document. The formatting will be different and cropped images will not be cropped at the right place. Shapes are also in a different place.

Thanks!
-Alexandre
Comment 4 Timothy Pearson 2014-05-19 19:17:48 CDT
Is there a way to reliably recreate this crash, e.g. with Chromium?  I am seeing these crashes pop up sporadically from Firefox on the crash report server, but the gtk-qt-engine is never involved in the backtrace, making debugging pretty much impossible.

Also, if you are on Debian or Ubuntu, please install the gtk-qt-engine-trinity-dbg package and submit crash reports so that we can get some useful information.

Thanks!
Comment 5 Timothy Pearson 2014-05-29 00:54:21 CDT
I don't think we'll ever be able to fix this with only the data from Firefox crashes:
https://developer.mozilla.org/en-US/docs/Mozilla/Testing/Valgrind

Basically their implementation does a bunch of rather nasty things that could (and apparently do!) interfere with gdb after Firefox crashes for any reason.

Please stop submitting reports from crashed Firefox instances; however if anything *else* crashes please send a report!

As an aside, this bug will likely close with time on its own when Firefox finally migrates to GTK3--the TDE integration engine for GTK3 is a complete rewrite that does not need many of the hacks from the old GTK2 engine due to GTK3's greater flexibility.
Comment 6 Julius Schwartzenberg 2014-05-29 03:46:41 CDT
When I tested this with Chromium, the crashes were happening very often. That's why I could easily get a backtrace. If you manage to use Chromium with Trinity for about 20-30 minutes visiting different websites without getting any crash, I would say this problem is fixed.
Comment 7 Timothy Pearson 2014-06-14 00:53:01 CDT
I believe I've isolated the crash on Firefox to a non-TDE root cause:
https://support.mozilla.org/en-US/questions/1003111

Note that the user in that report describes the exact same behaviour as I was seeing with Firefox and TDE (though he is on Windows!), and the fix mentioned in that report works for me as well.  I suspect TDE makes this bug trigger more easily somehow (changed memory layout?) but that the root cause is Firefox and its apparently buggy Baseline JIT implementation.

I have not had Chromium crash since the patches went in against gtk-qt-engine, so I suspect this bug is as resolved as it's going to be.  I'll leave it open for a while just in case I am wrong. :-)
Comment 8 Timothy Pearson 2014-11-16 12:59:24 CST
(In reply to Alex Couture from comment #3)
> On PCLinuxOS 2012 with TDE 3.5.13.1 and LibreOffice 3.6 as well as on
> PCLinuxOS 2013 with TDE 3.5.13.2 and LibreOffice 4, just having  gtk-qt
> installed is enough to destroy part of the formatting of documents in
> LibreOffice. It doesn't even have to be activated to affect the layout of
> documents.
> 
> To try to reproduce the bug:
> Make a new document with cropped and resized pictures. You can also put some
> line or shapes with the drawing toolbar of LibreOffice. Then, save, close LO
> and try to open back your document. The formatting will be different and
> cropped images will not be cropped at the right place. Shapes are also in a
> different place.
> 
> Thanks!
> -Alexandre

Can you check to see if the fix for Libreoffice in Bug 1489 resolved this issue?

Thanks!
Comment 9 Timothy Pearson 2014-11-16 14:06:21 CST
After much debugging work I finally traced the Firefox (and most likely Chromium) crashes to their root cause.

In a nutshell Firefox's Baseline JIT *purposefully* generates SIGSEGVs as part of its normal operation:
http://www.jandemooij.nl/blog/2014/02/18/using-segfaults-to-interrupt-jit-code/

TDE's DrKonqui signal handler was simply getting in the way of Firefox's built-in SIGSEGV traps; when DrKonqui saw the (normal) SIGSEGV it forced Firefox to improperly abort.

Fixed in GIT hash 82ccf29 (gtk-qt-engine).

Thanks for reporting!
Comment 10 Alexis PM 2014-12-04 13:37:49 CST
Updating to iceweasel 31.2.0esr-3~deb7u1 in Debian Wheezy, I find that Iceweasel always crash in few seconds with the following error in terminal:
:~$ iceweasel
[kcrash] KCrash: Application 'gtk-qt-application' crashing...
Segment violation

If I remove the package
gtk-qt-engine-trinity
Iceweasel works ok.
Comment 11 Timothy Pearson 2014-12-04 13:42:56 CST
(In reply to Alexis PM from comment #10)
> Updating to iceweasel 31.2.0esr-3~deb7u1 in Debian Wheezy, I find that
> Iceweasel always crash in few seconds with the following error in terminal:
> :~$ iceweasel
> [kcrash] KCrash: Application 'gtk-qt-application' crashing...
> Segment violation
> 
> If I remove the package
> gtk-qt-engine-trinity
> Iceweasel works ok.

Are you using the TDE R14 release candidate builds?