-
Notifications
You must be signed in to change notification settings - Fork 268
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
[Bug] RN application crashes from VSCode 1.83.0 #1837
Comments
It seems to crash when this function is called on various objects in the scope, which is used to generate the previews seen in the Variables view. I'm guessing this is some kind of native crash; more info about what's going wrong would help. A native crash would not really be an issue in the debugger but we can see if a workaround is available vscode-js-debug/src/adapter/templates/getStringyProps.ts Lines 25 to 76 in eb545fa
|
Thanks @connor4312 sharing information, I will try to debug on this. Also adding some log in DevTools console.
|
@connor4312, I think this might be the root cause. When we attach debugger to RN application, js-debug will get breakpoint location in function:
In
the function But I have checked source url(source.js.zip), strangely the breakpoint start and end location seems be getting correctly in:
![]() I'm not familiar with CDP api, @connor4312 could you please guide me on this? Any info you needed please let me know. I will keep on investigating this issue. BTW, found an issue in RN Hermes engine repo, I'm not sure if it's related to this: facebook/hermes#1087 |
I put in a fix for that, though I don't think that would be the cause of the crash. Available in the next nightly build. |
Thank you @connor4312 for the quick response, it not the reason of crashing, but resolved an unexpected error in console log. I will continue looking into this. Thank you! |
Hey @connor4312, it should be the correct location. In new method
And I do some testing on my project, seems this crash can be fixed on Thanks again for your positive help! |
Close this issue, since it's resolved in RNT project. |
Hey @connor4312, we found that react-native application will be crashed when update vscode to 1.83.0, checked this issue is occurring from js-debug v1.83.0 prod and v2023.9.1317 nightly. microsoft/vscode-react-native#2052
Here is the screen record and js-debug trace log, could you please help to check if we have any updates may cause this issue? Thank you!
Repro step:
npm i -g react-native
npx react-native init sampleApp
react-native-tools
in vscodenpm run android
to run app in emulatorAttach to Hermes application - Experimental
in launch.json with default optionsRecord:
![AppCrash](https://private-user-images.githubusercontent.com/19662219/273367333-c73e6b78-680a-493c-8498-64372c128a8c.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAyNzM1MjUsIm5iZiI6MTcyMDI3MzIyNSwicGF0aCI6Ii8xOTY2MjIxOS8yNzMzNjczMzMtYzczZTZiNzgtNjgwYS00OTNjLTg0OTgtNjQzNzJjMTI4YThjLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA2VDEzNDAyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZlYTVmZGYwMGJhODY2ZjY4ZmYxMWFmZTZlODE3Yzc3NWVlMTY2YWY5YzRiNDEyOTlhMTlhN2YyMWI3MGE3OTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.03KWlTQ1TpyXC759WJ6BU1j8aOZXyfHBWkZuqC73aLQ)
Trace:
vscode-debugadapter-5f2fdf71.json.gz
The text was updated successfully, but these errors were encountered: