After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 770575 - Systematic java application crashes when at-spi bus is bogus
Systematic java application crashes when at-spi bus is bogus
Status: RESOLVED FIXED
Product: java-atk-wrapper
Classification: Applications
Component: general
0.33.x
Other Linux
: Normal normal
: ---
Assigned To: java-atk-wrapper maintainer(s)
java-atk-wrapper maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-08-29 18:58 UTC by Samuel Thibault
Modified: 2019-05-01 22:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed fix (702 bytes, patch)
2016-08-29 18:58 UTC, Samuel Thibault
none Details | Review

Description Samuel Thibault 2016-08-29 18:58:57 UTC
Created attachment 334402 [details] [review]
proposed fix

Hello,

We have had a report of systematic java startup crashes:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824226#22

Investigation has shown that in his environment, the accessibility bus 
does not work for some reason. But that should not make Java applications 
crash. It happens that java-atk-wrapper does not really check that the 
at-spi initialization really went fine (or was disabled). When later 
java-atk-wrapper calls at-spi functions, horrible things can happen.

In the patch proposed here, java-atk-wrapper is simply made to check the value returned by atk_bridge_adaptor_init, to watch for at-spi initialization failures, and in that case avoid setting up hooks etc.

Samuel
Comment 1 Samuel Thibault 2019-05-01 22:08:54 UTC
Fixed by e81bfe97cdb422ca9646be303fc39d4aa578f3ca ("Gracefully abort initialization if at-spi fails")