-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
JavaScript crashes when running widget.js
from js_examples
#768
Comments
widget.js
from js_examples
Can reproduce the same issue with an even smaller script than let widget = require("widget");
widget.addText(10, 10, "Primary", "Example JS widget");
widget.show(); All the other scripts seem to work fine. Did not test on the original firmware. |
@Willy-JL , I see you are quite involved in JavaScript for Flipper, maybe you might be willing to help me with this one. |
I didn't make this module, Derek Jamison did in a PR to momentum fw. I have gotten one report of this in my discord community, given you found this too I'll move it up the priority list, thanks for the report! |
@eliandoran i see the issue: view dispatcher was recently refactored in ofw to use event loop, this means some functions need to happen on same thread. precicely: enable_queue() and run() and free() must happen on same thread, which widget doesnt do i contacted derek, we will see how to go from here since he was also planning on refactoring to abandon view dispatcher |
@Willy-JL , thank you for the fix. I've tested it on the latest |
Describe the bug.
The
widget.js
script fromjs_examples
crashes immediately after executing it.Reproduction
widget.js
Target
unlshd-075
Logs
Anything else?
No response
The text was updated successfully, but these errors were encountered: