Skip to content
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

0.0.17 - Debug console hanging #519

Open
danielgolan opened this issue Aug 29, 2024 · 17 comments
Open

0.0.17 - Debug console hanging #519

danielgolan opened this issue Aug 29, 2024 · 17 comments
Labels
bug Something isn't working

Comments

@danielgolan
Copy link

Description
After the update to 0.0.17 i notice there is a lot more hanging of the console logs in the Debug Console, clean rebuild often solves this. Same with "right click to inspect" which seems to be less stable. Using npx expo run:ios and the IOS simulator complets successfully, so no issues with the build or environment.

Environment

  • 0.0.17
  • Expo SDK 51.0.26, react native 0.74.5
  • Any other versions of tools related to the problem.
@danielgolan danielgolan added the bug Something isn't working label Aug 29, 2024
@danielgolan
Copy link
Author

bilde

@danielgolan
Copy link
Author

danielgolan commented Aug 30, 2024

Added output from React Native IDE:

2024-08-30 10:26:02.623 [info] Metro {"buildID":"8e","type":"bundle_build_done"}
2024-08-30 10:26:02.886 [info] Metro {"buildID":"8f","bundleDetails":{"bundleType":"map","customResolverOptions":{},"customTransformOptions":{"engine":"hermes","bytecode":"true","routerRoot":"app"},"dev":true,"entryFile":"/Users/danielbogolan/Documents/Campus/CampusApp/index.js","minify":false,"platform":"ios"},"isPrefetch":false,"type":"bundle_build_started"}
2024-08-30 10:26:02.925 [info] Devtools client connected
2024-08-30 10:26:03.351 [error] Unhandled promise rejection Start offset -1601256248 is outside the bounds of the buffer
2024-08-30 10:26:03.484 [error] Unhandled promise rejection Start offset -1589794096 is outside the bounds of the buffer
2024-08-30 10:26:03.716 [error] Unhandled promise rejection Start offset -1578331944 is outside the bounds of the buffer
2024-08-30 10:26:03.716 [error] Unhandled promise rejection Start offset -1566869792 is outside the bounds of the buffer
2024-08-30 10:26:03.874 [error] Unhandled promise rejection Start offset -1555407640 is outside the bounds of the buffer
2024-08-30 10:26:03.874 [info] Metro {"type":"client_log","level":"log","data":["Running "main" with {"rootTag":191,"initialProps":{"concurrentRoot":false}}","http://localhost:50123/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app","17388","22"],"mode":"BRIDGE"}
2024-08-30 10:26:03.874 [info] Metro {"type":"client_log","level":"log","data":["Loading react-native-worklets-core...","http://localhost:50123/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app","372694","13"],"mode":"BRIDGE"}
2024-08-30 10:26:03.874 [info] Metro {"type":"client_log","level":"log","data":["Worklets loaded successfully","http://localhost:50123/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app","372704","19"],"mode":"BRIDGE"}
2024-08-30 10:26:03.874 [info] Metro {"type":"client_log","level":"log","data":["Development setup","http://localhost:50123/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app","438439","17"],"mode":"BRIDGE"}
2024-08-30 10:26:03.874 [info] Metro {"type":"client_log","level":"log","data":["ScreenView - Screen Name","ON_InitalScreen","http://localhost:50123/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app","265936","26"],"mode":"BRIDGE"}
2024-08-30 10:26:03.874 [info] Metro {"buildID":"8f","type":"bundle_build_done"}
2024-08-30 10:26:03.874 [info] Metro {"type":"client_log","level":"log","data":["Default case hit, setting topColor to white.","Onboarding","http://localhost:50123/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app","265936","26"],"mode":"BRIDGE"}
2024-08-30 10:26:03.874 [info] Metro {"type":"client_log","level":"log","data":["Norwegian","http://localhost:50123/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app","265936","26"],"mode":"BRIDGE"}
2024-08-30 10:26:03.874 [info] Metro {"type":"client_log","level":"log","data":["Device is not a physical device, no notificaions will be sent","http://localhost:50123/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app","265936","26"],"mode":"BRIDGE"}
2024-08-30 10:26:03.874 [info] Metro {"type":"client_log","level":"log","data":["UID: W6YDzLvIj4VZMDhKP9HJQXFez2D3","http://localhost:50123/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app","265936","26"],"mode":"BRIDGE"}
2024-08-30 10:26:03.874 [info] Metro {"type":"client_log","level":"log","data":["Fetching and syncing user data","http://localhost:50123/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app","265936","26"],"mode":"BRIDGE"}
2024-08-30 10:26:03.874 [info] Metro {"type":"client_log","level":"log","data":["Checking subscription status","http://localhost:50123/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app","265936","26"],"mode":"BRIDGE"}
2024-08-30 10:26:03.874 [info] Metro {"type":"client_log","level":"log","data":["Default case hit, setting topColor to white.","Onboarding","http://localhost:50123/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app","265936","26"],"mode":"BRIDGE"}
2024-08-30 10:26:04.777 [error] Unhandled promise rejection Start offset -1543945488 is outside the bounds of the buffer
2024-08-30 10:26:04.777 [error] Unhandled promise rejection Start offset -1532483336 is outside the bounds of the buffer
2024-08-30 10:26:04.777 [error] Unhandled promise rejection Start offset -1521021184 is outside the bounds of the buffer
2024-08-30 10:26:04.777 [error] Unhandled promise rejection Start offset -1509559032 is outside the bounds of the buffer
2024-08-30 10:26:04.777 [error] Unhandled promise rejection Start offset -1498096880 is outside the bounds of the buffer
2024-08-30 10:26:04.777 [error] Unhandled promise rejection Start offset -1486634728 is outside the bounds of the buffer
2024-08-30 10:26:04.777 [error] Unhandled promise rejection Start offset -1475172576 is outside the bounds of the buffer
2024-08-30 10:26:05.155 [error] Unhandled promise rejection Start offset -1463710424 is outside the bounds of the buffer
2024-08-30 10:26:05.155 [error] Unhandled promise rejection Start offset -1452248272 is outside the bounds of the buffer
2024-08-30 10:26:05.155 [error] Unhandled promise rejection Start offset -1440786120 is outside the bounds of the buffer
2024-08-30 10:26:05.155 [info] Metro {"type":"client_log","level":"log","data":["Norwegian","http://localhost:50123/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app","265936","26"],"mode":"BRIDGE"}
2024-08-30 10:26:05.155 [info] Metro {"type":"client_log","level":"log","data":["User has already replied to weekly reminders","http://localhost:50123/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app","265936","26"],"mode":"BRIDGE"}
2024-08-30 10:26:05.155 [info] Metro {"type":"client_log","level":"log","data":["UID: W6YDzLvIj4VZMDhKP9HJQXFez2D3","http://localhost:50123/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app","265936","26"],"mode":"BRIDGE"}
2024-08-30 10:26:05.690 [info] App ready
2024-08-30 10:26:06.224 [error] Unhandled promise rejection Start offset -1429323968 is outside the bounds of the buffer

@danielgolan
Copy link
Author

After the 0.0.18 update the same issue occurs, but the error seems to have changed to:
Unhandled promise rejection memory access out of bounds:

2024-09-12 11:38:59.592 [error] Unhandled promise rejection memory access out of bounds
2024-09-12 11:38:59.592 [error] Unhandled promise rejection memory access out of bounds
2024-09-12 11:38:59.592 [error] Unhandled promise rejection memory access out of bounds
2024-09-12 11:38:59.592 [error] Unhandled promise rejection memory access out of bounds
2024-09-12 11:38:59.592 [error] Unhandled promise rejection memory access out of bounds
2024-09-12 11:39:00.210 [error] Unhandled promise rejection memory access out of bounds
2024-09-12 11:39:00.222 [info] Metro {"type":"client_log","level":"log","data":["undefined","http://localhost:51519/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app","266977","26"],"mode":"BRIDGE"}
2024-09-12 11:39:00.223 [error] Unhandled promise rejection memory access out of bounds
2024-09-12 11:39:00.233 [info] Metro {"type":"client_log","level":"log","data":["undefined","http://localhost:51519/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app","266977","26"],"mode":"BRIDGE"}
2024-09-12 11:39:00.234 [error] Unhandled promise rejection memory access out of bounds
2024-09-12 11:39:00.244 [info] Metro {"type":"client_log","level":"log","data":["undefined","http://localhost:51519/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app","266977","26"],"mode":"BRIDGE"}
2024-09-12 11:39:00.244 [error] Unhandled promise rejection memory access out of bounds
2024-09-12 11:39:00.253 [info] Metro {"type":"client_log","level":"log","data":["undefined","http://localhost:51519/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app","266977","26"],"mode":"BRIDGE"}
2024-09-12 11:39:00.253 [error] Unhandled promise rejection memory access out of bounds

Any update here?

@filip131311
Copy link
Collaborator

Hello, thank you so much for your feed back, because of the new hermes debugger, introduced by meta in react-native-76, we are changeing a lot of logic related to debugging and this is probably we you see changes in behavior from version to version. I will look into your specific issue an keep you updated.

@danielgolan
Copy link
Author

Thanks for the feedback, looking forward to be able to use Radon IDE again

@danielgolan
Copy link
Author

Seems to work alot better in 0.0.19, still some issues with perfomance and stability but the debug console no longer hangs. Issue can be closed.

@danielgolan
Copy link
Author

Edit: seems to appear in 0.0.19 aswell after a while:

2024-10-02 12:15:22.579 [error] Unhandled promise rejection Start offset -318634024 is outside the bounds of the buffer
2024-10-02 12:15:22.580 [error] Unhandled promise rejection Start offset -306869640 is outside the bounds of the buffer
2024-10-02 12:15:22.581 [error] Unhandled promise rejection Start offset -295105256 is outside the bounds of the buffer
2024-10-02 12:15:22.581 [error] Unhandled promise rejection Start offset -283340872 is outside the bounds of the buffer
2024-10-02 12:15:22.582 [error] Unhandled promise rejection Start offset -271576488 is outside the bounds of the buffer
2024-10-02 12:15:22.582 [error] Unhandled promise rejection Start offset -259812104 is outside the bounds of the buffer
2024-10-02 12:15:22.582 [error] Unhandled promise rejection Start offset -248047720 is outside the bounds of the buffer
2024-10-02 12:15:22.582 [error] Unhandled promise rejection Start offset -236283336 is outside the bounds of the buffer
2024-10-02 12:15:22.584 [error] Unhandled promise rejection Start offset -224518952 is outside the bounds of the buffer
2024-10-02 12:15:22.584 [error] Unhandled promise rejection Start offset -212754568 is outside the bounds of the buffer

@danielgolan
Copy link
Author

@filip131311 any update here?

@filip131311
Copy link
Collaborator

Hello, I'm regret to tell you that i had a problem with reproducing your problem, but because of that in #593 we added more verbose logging for debbuger, I'll really appreciate if you would be able to share your logs one more time after 0.0.20 version (the next one) drops.

I appreciate your support so much

@danielgolan
Copy link
Author

willdo, whats the ETA for 0.0.20 ?

@filip131311
Copy link
Collaborator

We hope for tomorrow, Monday at the latest

@danielgolan
Copy link
Author

danielgolan commented Oct 15, 2024

After updating to 0.0.20 the same issue happes after between 1-2 hours of development (and reloads). Ill mostly notice it by the simulator acting up and right click/inspect does not work.
"Clean rebuild" solves the problem for a period.
Errors:
2024-10-15 11:02:18.238 [info] Metro {"type":"client_log","level":"log","data":["Resetting data","http://localhost:53614/index.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app","153499","26"],"mode":"BRIDGE"}
2024-10-15 11:02:22.471 [warning] Too many callbacks in memory! Something is wrong!
2024-10-15 11:02:22.471 [warning] Too many callbacks in memory! Something is wrong!
2024-10-15 11:02:22.471 [warning] Too many callbacks in memory! Something is wrong!
2024-10-15 11:02:22.553 [warning] Too many callbacks in memory! Something is wrong!
2024-10-15 11:02:22.553 [warning] Too many callbacks in memory! Something is wrong!
2024-10-15 11:02:22.553 [warning] Too many callbacks in memory! Something is wrong!
2024-10-15 11:02:22.553 [warning] Too many callbacks in memory! Something is wrong!
2024-10-15 11:02:22.553 [warning] Too many callbacks in memory! Something is wrong!
2024-10-15 11:02:22.553 [warning] Too many callbacks in memory! Something is wrong!
2024-10-15 11:02:22.553 [warning] Too many callbacks in memory! Something is wrong!

FYI i updated to newest VS Code to test if that has any effect (but no change):
Version: 1.94.2 (Universal)
Commit: 384ff7382de624fb94dbaf6da11977bba1ecd427
Date: 2024-10-09T16:08:44.566Z
Electron: 30.5.1
ElectronBuildId: 10262041
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.6.0

@danielgolan
Copy link
Author

I might have found the issue in the app code, ill do some more testing and report back

@filip131311
Copy link
Collaborator

Thank you, let me know when you'll find something,

@danielgolan
Copy link
Author

Seems to be solved in the last updates, this case can be closed :)

@danielgolan
Copy link
Author

danielgolan commented Oct 29, 2024

I was able to reproduce this error again, it happened when i either have too long console logs or when im sending a very large (json array with 100+ children). @filip131311 Sent you a DM in discord

@filip131311
Copy link
Collaborator

Hi, @danielgolan I responded to you messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants