Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freeze when initializing Bugsnag #176

Closed
vanniktech opened this issue May 16, 2022 · 3 comments
Closed

Freeze when initializing Bugsnag #176

vanniktech opened this issue May 16, 2022 · 3 comments
Labels
bug Confirmed bug released This feature/bug fix has been released

Comments

@vanniktech
Copy link

The SQLDelight IntelliJ Idea plugin uses Bugsnag. When opening the settings from IntelliJ, bug snag gets initialized via sqldelight which blocks the UI.

"AWT-EventQueue-0" prio=0 tid=0x0 nid=0x0 runnable
     java.lang.Thread.State: RUNNABLE
 (in native)
	at java.base@11.0.13/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
	at java.base@11.0.13/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929)
	at java.base@11.0.13/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1519)
	at java.base@11.0.13/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:848)
	at java.base@11.0.13/java.net.InetAddress.getAllByName0(InetAddress.java:1509)
	at java.base@11.0.13/java.net.InetAddress.getLocalHost(InetAddress.java:1641)
	at com.bugsnag.callbacks.DeviceCallback.lookupHostname(DeviceCallback.java:44)
	at com.bugsnag.callbacks.DeviceCallback.getHostnameValue(DeviceCallback.java:22)
	at com.bugsnag.callbacks.DeviceCallback.initializeCache(DeviceCallback.java:52)
	at com.bugsnag.Configuration.<init>(Configuration.java:58)
	at com.bugsnag.Bugsnag.<init>(Bugsnag.java:92)
	at app.cash.sqldelight.intellij.SqlDelightErrorHandler.<init>(SqlDelightErrorHandler.kt:32)
...

There's also a thread dump:

threadDumps-freeze-20220512-111722-AI-213.7172.25.2211.8563311-5sec.zip

I've reported it to both Android Studio as well as sqldeilght.

There also seem to be some suggested workarounds:

@luke-belton
Copy link
Member

Hi @vanniktech thanks for raising this. We're going to investigate and see what we can do to address this in the bugsnag-java library. Note that any fixes would also require the SQLDelight plugin maintainers to bump the version of Bugsnag they're using.

@luke-belton luke-belton added bug Confirmed bug backlog We hope to fix this feature/bug in the future labels May 20, 2022
@vanniktech
Copy link
Author

Hey @luke-belton thanks. I'm sure that they will gladly bump the version

@luke-belton
Copy link
Member

Hi @vanniktech - just to let you know that we added a fix for the issue you reported above, which was released in v3.6.4 of bugsnag-java 🎉

@luke-belton luke-belton added released This feature/bug fix has been released and removed backlog We hope to fix this feature/bug in the future labels Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug released This feature/bug fix has been released
Projects
None yet
Development

No branches or pull requests

2 participants