Skip to content

app crashes when enabling remote JS debug (after updating to new RN version) #14672

Closed

Description

@RyanWan

After updating to v0.45.1, the app crashes whenever I enable remote debugging. I tried to deleted all node_modules and reinstall them as well as reset simulator. Both are not helpful. In the end, I have to download to previous version and it just works fine. I am not sure how to deal with that.

Activity

  1. formatlos commented on Jun 22, 2017

    @formatlos
    Contributor

    Can you provide more information about your issue, I haven't had problems with remote debugging in v0.45.1. Which simulator are you using (iPhone 6, 7 ...), what iOS version are you on and please provide the system-logs (iOS Simulator > Menu Bar > Debug > Open System Log)

  2. tabrindle commented on Jun 22, 2017

    @tabrindle
    Contributor

    If you run npm i -g envinfo thenenvinfo --packages react,react-native, you will get an output of all the relevant debug information like this:

    Environment:
      OS:  macOS Sierra
      Node:  v7.10.0
      Yarn:  0.24.5
      npm:  4.2.0
      Xcode:  Xcode 8.3.3 Build version 8E3004b 
      Android Studio:  2.3 AI-162.3934792 
      react:  16.0.0-alpha.6
      react-native:  0.44.0
    
  3. RyanWan commented on Jun 22, 2017

    @RyanWan
    Author

    OS: macOS Sierra
    Node: v4.4.0
    Yarn: 0.24.4
    npm: 4.2.0
    Xcode: Xcode 8.2.1 Build version 8C1002
    Android Studio: 2.3 AI-162.3934792
    react: ^16.0.0-alpha.12
    react-native: ^0.45.1
    Simulator: iPhone 6
    iOS: 10.2

  4. aurnik commented on Jun 22, 2017

    @aurnik

    @RyanWan When you say you downgraded to the previous version do you mean 0.45.0?
    This doesn't really solve your situation but I also was trying 0.45.1 with the debugger it seems like there are a lot of new issues introduced with performance.

  5. RyanWan commented on Jun 23, 2017

    @RyanWan
    Author

    @aurnik I downgraded to 0.44.0, the version I used before the upgrade

  6. Jacse commented on Jul 7, 2017

    @Jacse

    Experiencing this as well. Environment:

    Environment:
      OS:  macOS Sierra 10.12
      Node:  v8.1.3
      Yarn:  0.27.5
      npm:  5.0.3
      Xcode:  Xcode 8.3.2 Build version 8E2002
      Android Studio:  2.3 AI-162.3764568
    Packages:
      react:  16.0.0-alpha.12
      react-native:  ^0.45.1
    

    Error in logs: fatal][tid:main] Exception '*** -[__NSArrayI objectAtIndex:]: index 2 beyond bounds [0 .. 1]' was thrown from JS thread

  7. Jacse commented on Jul 7, 2017

    @Jacse

    For the record it happened after upgrading to 0.45.1 from 0.44.

  8. Jacse commented on Jul 7, 2017

    @Jacse

    Duplicate of #14288

  9. hramos commented on Sep 21, 2017

    @hramos
    Contributor

    Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!

    If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:

    • Does the issue still reproduce on the latest release candidate? Post a comment with the version you tested.
    • If so, is there any information missing from the bug report? Post a comment with all the information required by the issue template.
    • Is there a pull request that addresses this issue? Post a comment with the PR number so we can follow up.

    If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.

  10. Albinzr commented on Dec 4, 2017

    @Albinzr

    Still crashing

  11. llzz19851985 commented on Dec 19, 2017

    @llzz19851985

    Still crash on version :0.50.3

  12. havinhthai commented on May 26, 2018

    @havinhthai

    Still on version 0.55.4

  13. Albinzr commented on May 27, 2018

    @Albinzr

    Im giving up on RN, Not worth for production apps

  14. SSTPIERRE2 commented on Jun 7, 2018

    @SSTPIERRE2

    I'm going to try using Expo next, but on 0.50.1 the remote debugging experience for react-native-init projects has been less than favorable on both platforms 🙁Rather frequently I get RSOD saying "cannot connect to development server", or even a WSOD where the app doesn't load and in Xcode I get that classic thread 1: exception. On Android there's all kinds of weird build errors I run into.

  15. brayanL commented on Aug 28, 2018

    @brayanL

    What is the solution? in a day of development with the debugger enabled my application dies at least 15 times.

  16. locked as resolved and limited conversation to collaborators on Sep 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions