Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upcom.tns.Runtime.runWorker exception #1548
Comments
|
I have these showing in production here https://sentry.io/share/issue/ec9dbb43caf44eff917193994efa842a/ with no idea what is causing it at the moment. |
|
Could you show the worker implementation causing this issue and the way this worker is created? Are you calling |
|
@darind I'm attaching the custom pack of the particle plugin that we use. |
|
We have Project package.json here and I don't recall any of these having workers, so it might only be Kinvey. https://github.com/Kinvey/nativescript-sdk/blob/master/kinvey-nativescript-sdk.android.js |
|
This is the crash I get during development
and on the console
Also attaching logcat log |
|
I started getting this ever since I started using {N} 6.2 |
|
I've been using Workers probably longer and more often than most, and never seen this in Prod. However, ever since 6.2 enabled HMR by default, just for good measure I always pass the
So seems like HMR is begin enabled by default without that flag, as I have both a permanent Worker (Analytics) and temporary Worker (background downloads). And I've never had this in Prod for either, despite having ~550K active installs right now and many other crashes of other types. |
|
I'm gonna enable the |
|
I've made a release with --no-hmr, will report here if I see that crash go away |
|
@darind It looks like the app reaches a point where it is trying to read from a file that does not exist. |
|
Sorry, I forgot to leave an update here. |
|
I tried going back to an older version of dev-webpack (1.2.1), that did not help. The crash still occurs. |
|
@darind is anyone being assigned to this issue? |
|
@shiv19, we are still unable to reproduce it locally. Can you share a project exhibiting this behavior? |
|
Can you reach me over email please, I'll be happy to share code privately. |
|
Can you try with the |
|
@darind |
|
Re-opened because the runWorker crash does eventually occur even in the @next build. |
|
@darind, |
|
Try disabling |
|
@darind |
|
@darind This method even has a TODO on it
|



nativescript: 6.2.2
tns-core-modules: 6.2.1
tns-android: 6.2.0
tns-ios: 6.2.0
I get this crash occasionally while developing with HMR.
Now, this crash is even showing up in production.
It's related to worker threads not loading as expected.