GNOME Bugzilla – Bug 770575
Systematic java application crashes when at-spi bus is bogus
Last modified: 2019-05-01 22:08:54 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
Fixed by e81bfe97cdb422ca9646be303fc39d4aa578f3ca ("Gracefully abort initialization if at-spi fails")