question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]RNTester debug break in master

See original GitHub issue

Looks like introduced in https://github.com/facebook/react-native/commit/1eedf05651362b9633b2ebf5ce5da8f34ffbfcc2.

    Process: com.facebook.react.uiapp, PID: 3307
    java.lang.IllegalStateException: Expected a string but was BEGIN_ARRAY
        at android.util.JsonReader.nextString(JsonReader.java:408)
        at com.facebook.react.devsupport.BundleDeltaClient$BundleDeltaJavaClient.processDelta(BundleDeltaClient.java:103)
        at com.facebook.react.devsupport.BundleDeltaClient.processDelta(BundleDeltaClient.java:71)
        at com.facebook.react.devsupport.BundleDownloader.processBundleResult(BundleDownloader.java:314)
        at com.facebook.react.devsupport.BundleDownloader.access$200(BundleDownloader.java:37)
        at com.facebook.react.devsupport.BundleDownloader$1.onResponse(BundleDownloader.java:174)
        at okhttp3.RealCall$AsyncCall.execute(RealCall.java:153)
        at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
matt-oakescommented, Jan 13, 2019

Ok. After way too much messing around I found a workaround:

  1. Open the android app with no packager running so you get the red box error about no bundle.
  2. Open the developer menu and select “dev settings” at the bottom.
  3. Untick “use deltas”
  4. Start the packager and reload the app

This should really be fixed as instead of being able to jump in and make changes to the core I spent my time trying to just get the example app to run.

0reactions
cpojercommented, Mar 19, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

DebugBreak and __debugbreak - Visual Studio (Windows)
Learn how to use the DebugBreak function and the __debugbreak intrinsic to cause your program to break, just as though a breakpoint were ......
Read more >
scottt/debugbreak: break into the debugger programmatically
Debug Break. debugbreak.h allows you to put breakpoints in your C/C++ code with a call to debug_break(): #include <stdio.h> #include "debugbreak.h" int ...
Read more >
Master Debugging in IntelliJ - Medium
Breakpoints are special markers that suspend program execution at a specific point. I suggest you place a few (instead of 1) breakpoints at...
Read more >
Set breakpoints | DataSpell Documentation - JetBrains
Breakpoints are special markers that suspend program execution at a specific point. This lets you examine the program state and behavior.
Read more >
Master VBA Debugging in 20 Minutes - YouTube
Master VBA Debugging in 20 MinutesIn this video, ... current sub: F5 Step into the code line by line: F8 Add a breakpoint...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found