René's URL Explorer Experiment


Title: Android worker crash since tns-android 6.3.0 · Issue #1602 · NativeScript/android · GitHub

Open Graph Title: Android worker crash since tns-android 6.3.0 · Issue #1602 · NativeScript/android

X Title: Android worker crash since tns-android 6.3.0 · Issue #1602 · NativeScript/android

Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 6.5.1 Cross-platform modules: 6.5.0 Android...

Open Graph Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 6.5...

X Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 6.5...

Opengraph URL: https://github.com/NativeScript/android/issues/1602

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Android worker crash since tns-android 6.3.0","articleBody":"**Environment**\r\nProvide version numbers for the following components (information can be retrieved by running `tns info` in your project folder or by inspecting the `package.json` of the project):\r\n - CLI: 6.5.1\r\n - Cross-platform modules: 6.5.0\r\n - Android Runtime: 6.5.0 (also reproducable on 6.4.1)\r\n - iOS Runtime (if applicable): -\r\n - Plugin(s): nativescript-dev-webpack 1.5.1\r\n\r\n**Describe the bug**\r\nWhen starting a worker script for the second time on an Androd 9 / 10 physical device, the worker thread throws an exception and most times, the app crashes as well.\r\n\r\nPlease note\r\n- it seems to be reproducable only on a physical device with Android 9 or 10, it does not occur on any Android emulator and on device with older Android version\r\n- everything was working as expected using tns-android 6.3.1 (issue occurs after upgrading to 6.4.1 or 6.5.0) --> **update:** 6.4.0 is the latest android runtime version without that bug!\r\n- we reproduce this issue on our Google Pixel 3a (Android 10) and on our Nokia 5.1 (Android 9)\r\n- the issue does not occur on our Nexus 4 (Android 5.1), Moto X Play (Android 7.1) and Moto Z Play (Android 8.0)\r\n\r\nWhat we are doing in the demo app provided below\r\nOn button tap we call this:\r\n\r\n```\r\nconst WorkerScript = require(\"nativescript-worker-loader!./myworker\");\r\nconst worker = new WorkerScript();\r\n\r\nworker.onmessage = function(msg) {\r\n        if(msg.data.isWorkerLoaded) {\r\n            console.log(\"#### worker notify state 'loaded' -> start action...\");\r\n\r\n            worker.postMessage({\r\n                action: \"test\"\r\n            });\r\n        } else if(msg.data.hasOwnProperty('success')) {\r\n            console.log(\"#### worker success\");\r\n\r\n            worker.terminate();\r\n\r\n            alert(\"Worker success\");\r\n        }\r\n};\r\n\r\nworker.onerror = function(e) {\r\n        console.log(\"#### worker onerror: \", e);\r\n        worker.terminate();\r\n\r\n        alert(\"Worker onerror\");\r\n};\r\n```\r\n\r\nAnd that's the worker script:\r\n```\r\n//myworker.js\r\n\r\nrequire(\"@nativescript/core/globals\");\r\n\r\n//notify main-thread about worker being loaded\r\nglobal.postMessage({isWorkerLoaded: true});\r\n\r\n\r\nglobal.onmessage = function(msg) {\r\n    if(msg.data.action === \"test\") {\r\n        setTimeout(function() {\r\n            global.postMessage({ success: true });\r\n        }, 3000);\r\n    }\r\n};\r\n```\r\n\r\n\r\n**To Reproduce**\r\n1.) Start the demo app provided below (on Android 9 or 10 **physical device**)\r\n2.) Tap the button, wait some short time and you see the alert \"Worker success\"\r\n3.) Tapping the button for a second time should also alert \"Worker success\", but instead it crashes the app\r\n\r\n4.) \r\n```\r\ntns platform remove android\r\ntns platform add android@6.4.0\r\ntns run android\r\n```\r\n\r\n5.) repeat steps 1-3 and you see that the app won't crash anymore.\r\n\r\n**Expected behavior**\r\nYou should be able to start and terminate this worker script as often as you want, like it was working until tns-android **6.3.1**\r\n\r\n\r\n**Sample project**\r\n[ns-worker-issue-android10.zip](https://github.com/NativeScript/android-runtime/files/4475142/ns-worker-issue-android10.zip)","author":{"url":"https://github.com/felixkrautschuk","@type":"Person","name":"felixkrautschuk"},"datePublished":"2020-04-14T12:18:54Z","url":"https://github.com/NativeScript/android/issues/1602"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1c59dd64-a40d-359d-0a77-b0ba089721db
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9562:96DDF:1BA665F:2300DAD:6B014D64
html-safe-nonce56a7cb4e034f45923886f372e1fdc77218f18fc4ab1976dfbadba21011c6cc74
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTYyOjk2RERGOjFCQTY2NUY6MjMwMERBRDo2QjAxNEQ2NCIsInZpc2l0b3JfaWQiOiI2MTA5NTc3ODkzNTg5ODk2NTQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac848d75836b21979af139f16cb665424ccca5474fc0696a64393c12bb3b1eebcf
hovercard-subject-tagissue:599530288
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/android/1602/issue_layout
twitter:imagehttps://opengraph.githubassets.com/57c82603a608e19531107f52f5a146a4b0035183b3bea856e9fbaddb7f8f39c7/NativeScript/android/issues/1602
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/57c82603a608e19531107f52f5a146a4b0035183b3bea856e9fbaddb7f8f39c7/NativeScript/android/issues/1602
og:image:altEnvironment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 6.5...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefelixkrautschuk
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/android git https://github.com/NativeScript/android.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id29137950
octolytics-dimension-repository_nwoNativeScript/android
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id29137950
octolytics-dimension-repository_network_root_nwoNativeScript/android
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/NativeScript/android/issues/1602#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fandroid%2Fissues%2F1602
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fandroid%2Fissues%2F1602
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NativeScript%2Fandroid
Reloadhttps://github.com/NativeScript/android/issues/1602
Reloadhttps://github.com/NativeScript/android/issues/1602
Reloadhttps://github.com/NativeScript/android/issues/1602
NativeScripthttps://github.com/NativeScript
androidhttps://github.com/NativeScript/android
Codehttps://github.com/NativeScript/android
Issues106 (106)https://github.com/NativeScript/android/issues
Pull requests25 (25)https://github.com/NativeScript/android/pulls
Actionshttps://github.com/NativeScript/android/actions
Projectshttps://github.com/NativeScript/android/projects
Wikihttps://github.com/NativeScript/android/wiki
Security and qualityhttps://github.com/NativeScript/android/security
Insightshttps://github.com/NativeScript/android/insights
https://github.com/NativeScript/android
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/android/issues/1602
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/android/issues/1602
Android worker crash since tns-android 6.3.0https://github.com/NativeScript/android/issues/1602#top
https://github.com/triniwiz
https://github.com/felixkrautschuk
felixkrautschukhttps://github.com/felixkrautschuk
on Apr 14, 2020https://github.com/NativeScript/android/issues/1602#issue-599530288
ns-worker-issue-android10.ziphttps://github.com/NativeScript/android-runtime/files/4475142/ns-worker-issue-android10.zip
Nexthttps://github.com/NativeScript/android/issues/1602?timeline_page=1
https://github.com/felixkrautschuk
felixkrautschukhttps://github.com/felixkrautschuk
on Apr 14, 2020https://github.com/NativeScript/android/issues/1602#issuecomment-613430745
ns-worker-issue-android10.ziphttps://github.com/NativeScript/android-runtime/files/4475359/ns-worker-issue-android10.zip
https://github.com/NathanaelA
NathanaelAhttps://github.com/NathanaelA
on Apr 14, 2020https://github.com/NativeScript/android/issues/1602#issuecomment-613490559
https://github.com/felixkrautschuk
felixkrautschukhttps://github.com/felixkrautschuk
on Apr 14, 2020https://github.com/NativeScript/android/issues/1602#issuecomment-613496823
@NathanaelAhttps://github.com/NathanaelA
https://github.com/NathanaelA
NathanaelAhttps://github.com/NathanaelA
on Apr 14, 2020https://github.com/NativeScript/android/issues/1602#issuecomment-613506316
https://github.com/felixkrautschuk
felixkrautschukhttps://github.com/felixkrautschuk
on Apr 14, 2020https://github.com/NativeScript/android/issues/1602#issuecomment-613525811
felixkrautschukhttps://github.com/felixkrautschuk
on Apr 16, 2020https://github.com/NativeScript/android/issues/1602#event-3239032854
https://github.com/felixkrautschuk
felixkrautschukhttps://github.com/felixkrautschuk
on Apr 16, 2020https://github.com/NativeScript/android/issues/1602#issuecomment-614542801
https://github.com/NathanaelA
NathanaelAhttps://github.com/NathanaelA
on Apr 16, 2020https://github.com/NativeScript/android/issues/1602#issuecomment-614851247
https://github.com/felixkrautschuk
felixkrautschukhttps://github.com/felixkrautschuk
on Apr 17, 2020https://github.com/NativeScript/android/issues/1602#issuecomment-615098205
@NathanaelAhttps://github.com/NathanaelA
https://github.com/saschaarthur
saschaarthurhttps://github.com/saschaarthur
on Apr 26, 2020https://github.com/NativeScript/android/issues/1602#issuecomment-619523074
vmutafovhttps://github.com/vmutafov
on May 19, 2020https://github.com/NativeScript/android/issues/1602#event-3352344493
https://github.com/alexander-mai
alexander-maihttps://github.com/alexander-mai
on Jun 12, 2020https://github.com/NativeScript/android/issues/1602#issuecomment-643266707
https://github.com/felixkrautschuk
felixkrautschukhttps://github.com/felixkrautschuk
on Jun 14, 2020https://github.com/NativeScript/android/issues/1602#issuecomment-643759131
https://github.com/lochstar
lochstarhttps://github.com/lochstar
on Jun 16, 2020https://github.com/NativeScript/android/issues/1602#issuecomment-644483929
https://github.com/phdd
phddhttps://github.com/phdd
on Jul 28, 2020https://github.com/NativeScript/android/issues/1602#issuecomment-665017438
https://github.com/con-cis
con-cishttps://github.com/con-cis
on Jan 22, 2021https://github.com/NativeScript/android/issues/1602#issuecomment-765543242
#1602 (comment)https://github.com/NativeScript/android/issues/1602#issuecomment-725535838
https://www.npmjs.com/package/tns-android?activeTab=versionshttps://www.npmjs.com/package/tns-android?activeTab=versions
https://user-images.githubusercontent.com/54837156/105517513-6eb4d180-5cd7-11eb-8f85-b3c9f7e2a1a3.png
https://github.com/felixkrautschuk
felixkrautschukhttps://github.com/felixkrautschuk
on Jan 22, 2021https://github.com/NativeScript/android/issues/1602#issuecomment-765545776
@con-cishttps://github.com/con-cis
https://github.com/con-cis
con-cishttps://github.com/con-cis
on Jan 22, 2021https://github.com/NativeScript/android/issues/1602#issuecomment-765557196
https://github.com/felixkrautschuk
felixkrautschukhttps://github.com/felixkrautschuk
on Mar 8, 2021https://github.com/NativeScript/android/issues/1602#issuecomment-792639890
@NathanaelAhttps://github.com/NathanaelA
https://github.com/felixkrautschuk
felixkrautschukhttps://github.com/felixkrautschuk
on May 7, 2021https://github.com/NativeScript/android/issues/1602#issuecomment-834504081
ns-worker-8.ziphttps://github.com/NativeScript/android-runtime/files/6442613/ns-worker-8.zip
https://github.com/alexander-mai
alexander-maihttps://github.com/alexander-mai
on May 10, 2021https://github.com/NativeScript/android/issues/1602#issuecomment-836199817
https://github.com/farfromrefug
farfromrefughttps://github.com/farfromrefug
on May 10, 2021https://github.com/NativeScript/android/issues/1602#issuecomment-836252240
@alexander-maihttps://github.com/alexander-mai
https://github.com/felixkrautschuk
felixkrautschukhttps://github.com/felixkrautschuk
on Jul 1, 2021https://github.com/NativeScript/android/issues/1602#issuecomment-872183355
@farfromrefughttps://github.com/farfromrefug
@alexander-maihttps://github.com/alexander-mai
https://github.com/alexander-mai
alexander-maihttps://github.com/alexander-mai
on Jul 1, 2021https://github.com/NativeScript/android/issues/1602#issuecomment-872194746
@felixkrautschukhttps://github.com/felixkrautschuk
https://github.com/a92c
a92chttps://github.com/a92c
on Dec 16, 2021https://github.com/NativeScript/android/issues/1602#issuecomment-995980776
https://github.com/triniwiz
triniwizhttps://github.com/triniwiz
on Dec 16, 2021https://github.com/NativeScript/android/issues/1602#issuecomment-995984324
triniwizhttps://github.com/triniwiz
on Dec 16, 2021https://github.com/NativeScript/android/issues/1602#event-5779843431
https://github.com/triniwiz
triniwizhttps://github.com/triniwiz
on Dec 20, 2021https://github.com/NativeScript/android/issues/1602#issuecomment-998080492
deprecatedhttps://docs.gradle.org/3.4/release-notes.html#the-java-library-plugin
https://github.com/triniwiz
triniwizhttps://github.com/triniwiz
on Apr 29, 2022https://github.com/NativeScript/android/issues/1602#issuecomment-1113670267
triniwizhttps://github.com/triniwiz
completedhttps://github.com/NativeScript/android/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Apr 29, 2022https://github.com/NativeScript/android/issues/1602#event-6525957266
Sign up for freehttps://github.com/signup?return_to=https://github.com/NativeScript/android/issues/1602
Sign in to commenthttps://github.com/login?return_to=https://github.com/NativeScript/android/issues/1602
triniwizhttps://github.com/triniwiz
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.