-
Notifications
You must be signed in to change notification settings - Fork 194
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
Any attempt to open the debugger throws a NetworkOnMainThread exception #96
Comments
Does your app have the |
Yep |
Can you double check? Because according to the error message, it does not. |
Ah, sorry. I posted the wrong stack trace, still had that on my clipboard from earlier. I've left the office for the day but tomorrow I can get the correct one in here |
We were experiencing similar issues earlier today, I'll debug them on device in the morning. |
Here's the crash:
It seems like there may be more networking issues as well. Seeing hundreds of instances of this log message in the application logs:
|
I've done some tests and managed to reproduce this crash. So far it seems to be happening only when debugger is being opened for the first time. Having it opened from previous session and running the app seems to work fine. Looking into it now. |
Another think I'm noticing is that the debugger continually tries to load on 10.0.2.2 (which I indicated above), I have to manually change the URL to localhost |
That has been already fixed (see open PR). |
Oops, thanks @grabbou, didn't see the linked PR |
Looks to be more networking issues at play. Upgraded to 0.3.0 and now I see a message |
^^ after a little more playing that all looks to be related more to react-native than haul, can close this in lieu of an issue over there: facebook/react-native#13340 |
whoops. may have closed this prematurely. was this where the issue of opening the debugger causing a |
As per your previous reply, this is an issue in React Native and not haul. So there's not much point of keeping this issue open. It's not actionable for us. |
I apologize because I don't have a solid repro other than running my project, but I have narrowed it down to Haul because switching back to the react-native packager allows the app to function properly.
Current Behavior
When connecting to the remote debugger, the app crashes with a
NetworkOnMainThreadException
:To compound this problem, because the debugger tries to auto-reconnect, the only way to get the app to work is to uninstall and reinstall, otherwise this will get triggered on every launch.
Expected Behavior
I should be able to open the chrome debugger
Haul Configuration (webpack.haul.js)
Your Environment
The text was updated successfully, but these errors were encountered: