Open full view…

Eclipse Photon (4.8.0, Build: 20180619-1200, Ubuntu 18.04 LTS) RTist Crashes

Tue, 23 Jul 2019 00:23:50 GMT

I just recently migrated from Eclipse Oxygen RTist to Eclipse Photon RTist and started randomly encountering Eclipse java crashes: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007fd0ff8399ce, pid=10195, tid=0x00007fd1801a2700 # # JRE version: OpenJDK Runtime Environment (8.0_212-b03) (build 1.8.0_212-8u212-b03-0ubuntu1.18.04.1-b03) # Java VM: OpenJDK 64-Bit Server VM (25.212-b03 mixed mode linux-amd64 compressed oops) # Problematic frame: # C [] g_type_check_instance_is_a+0x3e It is not clear if this in anyway relates to RTist or is just an Eclipse issue. After some puzzling and experimentation, I found the issue is associated with GTK3. To resolve the issue I now run Eclipse Photon using GTK2. To do this, set the environment variable SWT<underscore>GTK3 before invoking eclipse in a shell script as follows: #!/bin/bash # use GTK2 export SWT<underscore>GTK3=0 /opt/eclipse/eclipse IMPORTANT: You must substitute an underscore character for "<underscore>" in SWT<underscore>GTK3=0 above. There must be an underscore between SWT and GTK3. For some reason this forum will not display an underscore so I used <underscore> to indicate the character underscore. This resolves the issue. No further crashes. Curiously there is not much in the way of discussion on the web about java crashing in Eclipse like this.

Pritesh Patel
Tue, 06 Aug 2019 22:31:34 GMT

Hello. Thanks for reporting the crash with GTK 3 and also providing us with the workaround details that you used to get past the crashes. This has been submitted to our development team for further review and analysis.