Giter Club home page Giter Club logo

Comments (14)

aem avatar aem commented on July 4, 2024 1

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

from haul.

satya164 avatar satya164 commented on July 4, 2024

Does your app have the Draw over other apps permission?

from haul.

aem avatar aem commented on July 4, 2024

Yep

from haul.

satya164 avatar satya164 commented on July 4, 2024

Can you double check? Because according to the error message, it does not.

from haul.

aem avatar aem commented on July 4, 2024

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

from haul.

grabbou avatar grabbou commented on July 4, 2024

We were experiencing similar issues earlier today, I'll debug them on device in the morning.

from haul.

aem avatar aem commented on July 4, 2024

Here's the crash:

E/AndroidRuntime: FATAL EXCEPTION: main
                  Process: com.hubspot.android.debug, PID: 3154
                  android.os.NetworkOnMainThreadException
                      at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1303)
                      at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111)
                      at java.net.SocketOutputStream.write(SocketOutputStream.java:157)
                      at okio.Okio$1.write(Okio.java:78)
                      at okio.AsyncTimeout$1.write(AsyncTimeout.java:180)
                      at okio.RealBufferedSink.emit(RealBufferedSink.java:178)
                      at okhttp3.internal.ws.WebSocketWriter.writeControlFrameSynchronized(WebSocketWriter.java:152)
                      at okhttp3.internal.ws.WebSocketWriter.writeClose(WebSocketWriter.java:111)
                      at okhttp3.internal.ws.RealWebSocket.close(RealWebSocket.java:168)
                      at com.facebook.react.devsupport.JSDebuggerWebSocketClient.closeQuietly(JSDebuggerWebSocketClient.java:144)
                      at com.facebook.react.devsupport.WebsocketJavaScriptExecutor$3.run(WebsocketJavaScriptExecutor.java:146)
                      at android.os.Handler.handleCallback(Handler.java:751)
                      at android.os.Handler.dispatchMessage(Handler.java:95)
                      at android.os.Looper.loop(Looper.java:154)
                      at android.app.ActivityThread.main(ActivityThread.java:6119)
                      at java.lang.reflect.Method.invoke(Native Method)
                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

It seems like there may be more networking issues as well. Seeing hundreds of instances of this log message in the application logs:

W/OkHttp: A connection to http://10.0.2.2:8081/ was leaked. Did you forget to close a response body?

from haul.

grabbou avatar grabbou commented on July 4, 2024

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.

from haul.

grabbou avatar grabbou commented on July 4, 2024

That has been already fixed (see open PR).

from haul.

aem avatar aem commented on July 4, 2024

Oops, thanks @grabbou, didn't see the linked PR

from haul.

aem avatar aem commented on July 4, 2024

Looks to be more networking issues at play. Upgraded to 0.3.0 and now I see a message CANNOT TRANSLATE guest DNS ip logged to the device console (not the application logs) every 4 seconds or so. With this, I can't actually run any react native code. The app starts up fine (reactContext is non null, any statements in my index.android.js file are executed) but trying to load a component fails silently. See description of the problem here: http://stackoverflow.com/questions/43229683/react-native-component-not-mounting

from haul.

aem avatar aem commented on July 4, 2024

^^ 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

from haul.

aem avatar aem commented on July 4, 2024

whoops. may have closed this prematurely. was this where the issue of opening the debugger causing a NetworkOnMainThread exception was being tracked? that's still an issue in 0.5.0

from haul.

satya164 avatar satya164 commented on July 4, 2024

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.

from haul.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.