Skip to content

Debugger crashed on pressing j after reloading app. #15489

@anupriya13

Description

@anupriya13

Problem Description

Image

Steps To Reproduce

I was working on metro stopped the app reload it and then pressed j and debugger crashed which led to metro close as well.

Please refer below error log for diagnosis.


BUNDLE  ./index.js
 INFO  Launching DevTools...
 INFO  Connection established to DevTools for app='ReactNativeWebviewExample_1.0.0.0_x64__mfnj6a86gvcbj' on device='CPC-anuve-B66H2'.
node:events:496
      throw er; // Unhandled 'error' event
      ^

Error: Invalid WebSocket frame: invalid UTF-8 sequence
    at Receiver.dataMessage (C:\Users\anuverma\Desktop\GitHub\react-native-webview\example\node_modules\ws\lib\receiver.js:419:18)
    at Receiver.getData (C:\Users\anuverma\Desktop\GitHub\react-native-webview\example\node_modules\ws\lib\receiver.js:352:17)
    at Receiver.startLoop (C:\Users\anuverma\Desktop\GitHub\react-native-webview\example\node_modules\ws\lib\receiver.js:138:22)
    at Receiver._write (C:\Users\anuverma\Desktop\GitHub\react-native-webview\example\node_modules\ws\lib\receiver.js:74:10)
    at writeOrBuffer (node:internal/streams/writable:572:12)
    at _write (node:internal/streams/writable:501:10)
    at Writable.write (node:internal/streams/writable:510:10)
    at Socket.socketOnData (C:\Users\anuverma\Desktop\GitHub\react-native-webview\example\node_modules\ws\lib\websocket.js:864:35)
    at Socket.emit (node:events:518:28)
    at addChunk (node:internal/streams/readable:561:12)
Emitted 'error' event on WebSocket instance at:
    at Receiver.receiverOnError (C:\Users\anuverma\Desktop\GitHub\react-native-webview\example\node_modules\ws\lib\websocket.js:769:13)
    at Receiver.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:170:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
  [Symbol(status-code)]: 1007
}

Node.js v22.14.0

Expected Results

no debugger crash

CLI version

20

Environment

windows

Community Modules

No response

Target React Native Architecture

None

Target Platform Version

None

Visual Studio Version

None

Build Configuration

None

Snack, code example, screenshot, or link to a repository

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackThe issue/PR needs activity from its author (label drives bot activity)bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions