Bug 261340 - Oxygen-GTK makes Java/SWT apps crash on startup
Summary: Oxygen-GTK makes Java/SWT apps crash on startup
Status: CLOSED FIXED
Alias: None
Product: Oxygen
Classification: Plasma
Component: gtk2-engine (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Hugo Pereira Da Costa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-27 02:40 UTC by Elias Probst
Modified: 2011-07-29 23:36 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Probst 2010-12-27 02:40:17 UTC
Version:           unspecified (using KDE 4.5.4) 
OS:                Linux

When using oxygen-gtk as Gtk+ style, the Java/SWT application Hibiscus (based on Jameica) crashes on startup.

Other Java/SWT based applications might probably crash, too.

Reproducible: Always

Steps to Reproduce:
1. Install oxygen-gtk-1.0.0
2. Change your gtk style to oxygen-gtk
3. Download the Jameica framework (http://www.willuhn.de/products/jameica/download.php) + extract the ZIP file
4. Download the Hibiscus plugin (http://www.willuhn.de/products/hibiscus/download.php) + extract it to the plugins subdir
5. Start the provided 'jameica.sh' script

Actual Results:  
The splash screen shows up for a split second, then an error message appears on the terminal used for launching the application:

[Mon Dec 27 02:36:45 CET 2010][INFO][de.willuhn.jameica.system.StartupParams.<init>] starting in STANDALONE mode
[Mon Dec 27 02:36:45 CET 2010][INFO][de.willuhn.jameica.system.StartupParams.<init>] workdir: null
[Mon Dec 27 02:36:45 CET 2010][INFO][de.willuhn.jameica.system.Application.init] starting jameica...
[Mon Dec 27 02:36:45 CET 2010][INFO][de.willuhn.jameica.system.Platform.getWorkdir] using workdir: /home/elias/.jameica
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.util.Session.<init>] creating new session. default timeout: 1800000 millis
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.util.Session$Worker.<init>] Starting Session Worker Thread
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.system.Config.getLocale] configured language: de
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.system.Config.getLocale] configured country: DE
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.system.Config.getLocale] checking resource bundle for language
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.system.Config.getLocale] active language: Deutsch (Deutschland)
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.util.I18N.<init>] loading resource bundle lang/system_messages for locale de_DE
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.gui.SplashScreen$3.run]  starting jameica ...
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.boot.BootLoader.resolve]     init service de.willuhn.jameica.services.SecurityManagerService
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.services.SecurityManagerService.init] applying jameica security manager
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.security.JameicaSecurityManager.<init>] write permissions disabled for /opt/jameica/
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.boot.BootLoader.resolve] used time to init de.willuhn.jameica.services.SecurityManagerService: 11 millis
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.boot.BootLoader.resolve]     init service de.willuhn.jameica.services.LockService
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.services.LockService.init] creating lockfile /home/elias/.jameica/jameica.lock
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.boot.BootLoader.resolve] used time to init de.willuhn.jameica.services.LockService: 1 millis
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.boot.BootLoader.resolve]     init service de.willuhn.jameica.services.LogService
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.services.LogService.init] using log level INFO [100]
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.services.LogService.init] log file /home/elias/.jameica/jameica.log
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.boot.BootLoader.resolve] used time to init de.willuhn.jameica.services.LogService: 13 millis
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.boot.BootLoader.resolve]     init service de.willuhn.jameica.services.SysinfoService
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.services.SysinfoService.init] starting Jameica Version 1.10.0
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.services.SysinfoService.init]   Built-Date : 20101112
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.services.SysinfoService.init]   Buildnumber: 403
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.services.SysinfoService.init] command line parameters
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.services.SysinfoService.init] os.arch          : amd64
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.services.SysinfoService.init] os.name          : Linux
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.services.SysinfoService.init] os.version       : 2.6.36-gentoo
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.services.SysinfoService.init] java.version     : 1.6.0_20
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.services.SysinfoService.init] java.vendor      : Sun Microsystems Inc.
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.services.SysinfoService.init] java.runtime.name: OpenJDK Runtime Environment
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.services.SysinfoService.init] java.vm.name     : OpenJDK 64-Bit Server VM
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.services.SysinfoService.init] user.name        : elias
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.services.SysinfoService.init] user.home        : /home/elias
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.services.SysinfoService.init] file.encoding    : UTF-8
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.boot.BootLoader.resolve] used time to init de.willuhn.jameica.services.SysinfoService: 32 millis
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.boot.BootLoader.resolve]     init service de.willuhn.jameica.services.BackupService
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.boot.BootLoader.resolve]       init service de.willuhn.jameica.services.MessagingService
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.messaging.NamedQueue.<init>] creating message queue [default]
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.messaging.NamedQueue.<init>] starting messaging worker thread
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.boot.BootLoader.resolve] used time to init de.willuhn.jameica.services.MessagingService: 15 millis
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.messaging.NamedQueue.<init>] creating message queue jameica.error
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.boot.BootLoader.resolve] used time to init de.willuhn.jameica.services.BackupService: 20 millis
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.boot.BootLoader.resolve]     init service de.willuhn.jameica.services.ProxyService
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.boot.BootLoader.resolve] used time to init de.willuhn.jameica.services.ProxyService: 4 millis
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.boot.BootLoader.resolve]     init service de.willuhn.jameica.services.AuthenticateService
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.boot.BootLoader.resolve] used time to init de.willuhn.jameica.services.AuthenticateService: 0 millis
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.boot.BootLoader.resolve]       init service de.willuhn.jameica.services.SSLService
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.security.SSLFactory.<clinit>] applying security provider BouncyCastle Security Provider v1.44
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.security.SSLFactory.init] init ssl factory
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.gui.SplashScreen$3.run]  init ssl factory ...
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.security.SSLFactory.getKeyStore] reading keystore from file /home/elias/.jameica/cfg/jameica.keystore
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.security.SSLFactory.getKeyStore] init keystore
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.security.SSLFactory.getKeyStore] reading keys
[Mon Dec 27 02:36:46 CET 2010][INFO][de.willuhn.jameica.gui.util.Font.<clinit>] system font: 1|Droid Sans|9.0|0|GTK|1|
The program 'SWT' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 1948 error_code 8 request_code 148 minor_code 4)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Expected Results:  
The application starts like any other application without a crash.

Gentoo Linux
Kernel 2.6.36
Gtk+ 2.20.1
Qt 4.6.3
KDE SC 4.5.4
Oxygen-Gtk 1.0.0
Java/Icedtea 6.1.9.2
SWT 3.5.2 and 3.6.1
Comment 1 Ruslan Kabatsayev 2010-12-27 02:45:23 UTC
Could you recompile oxygen-gtk with OXYGEN_DEBUG set to 1 in CMakeLists.txt, and start the program like this:

program_name 2>&1|grep ARGB

where program name is the name you type to start it, and put the output here.

P.S. Please attach long logs, don't post them into the message box.
Comment 2 Elias Probst 2010-12-27 03:11:46 UTC
(In reply to comment #1)
> Could you recompile oxygen-gtk with OXYGEN_DEBUG set to 1 in CMakeLists.txt,
> and start the program like this:
The output is:


Oxygen::init_theme - program: SWT ARGB visual is used
Comment 3 Ruslan Kabatsayev 2010-12-27 06:11:20 UTC
Try blacklisting SWT in argb-apps.conf.
Comment 4 Hugo Pereira Da Costa 2010-12-27 09:48:29 UTC
please confirm that adding SWT to the argb-apps.conf file (see the README for details) fixes it (it should), and close the bug if yes.
Comment 5 Hugo Pereira Da Costa 2010-12-30 10:36:30 UTC
commit f40ef0a6426c4a9e0cf5b552bb09886485c1c110
branch 1.0
Author: Hugo Pereira Da Costa <hugo@oxygen-icons.org>
Date:   Thu Dec 30 10:35:08 2010 +0100

    added SWT.
    CCBUG: 261340

diff --git a/rc/argb-apps.conf b/rc/argb-apps.conf
index 0707f8f..1dfde66 100644
--- a/rc/argb-apps.conf
+++ b/rc/argb-apps.conf
@@ -59,4 +59,4 @@ disable:npviewer.bin:miro.real:gflashplayer:swfdec-player:xaralx:notecase:codebl
 disable:chrome:<unknown>:eclipse:Eclipse:.:xmind:audacious2
 disable:nautilus:pcmanfm:emacs:AptanaStudio:dia:pgadmin3:kino:winff:mmc:acroread:filezilla
 disable:stardict:icecat:openshot:sylpheed:jamin:vmware:vmplayer:eboard
-disable:envy24control:snes9x-gtk:guayadeque:komodo-bin
+disable:envy24control:snes9x-gtk:guayadeque:komodo-bin:SWT
Comment 6 Hugo Pereira Da Costa 2010-12-30 10:37:24 UTC
SWT argb to list.
Assuming the bug is fixed. 
Feel free to re-open if it is not.
Comment 7 Elias Probst 2011-01-01 11:19:33 UTC
Sorry for not responding to this bug, I was on holidays for 4 days.

Blacklisting SWT fixes this crash - thanks a lot!