René's URL Explorer Experiment


Title: Android: Crash with "markingMode: none" and "ngFor" with binding · Issue #7125 · NativeScript/NativeScript · GitHub

Open Graph Title: Android: Crash with "markingMode: none" and "ngFor" with binding · Issue #7125 · NativeScript/NativeScript

X Title: Android: Crash with "markingMode: none" and "ngFor" with binding · Issue #7125 · NativeScript/NativeScript

Description: From @jpierront on March 4, 2019 13:47 Environment CLI: 5.2.0 Cross-platform modules: 5.2.2 Android Runtime: 5.2.1 Describe the bug With "markingMode: none", errors "Attempt to use cleared object reference" occur when I change the backgr...

Open Graph Description: From @jpierront on March 4, 2019 13:47 Environment CLI: 5.2.0 Cross-platform modules: 5.2.2 Android Runtime: 5.2.1 Describe the bug With "markingMode: none", errors "Attempt to use cleared object r...

X Description: From @jpierront on March 4, 2019 13:47 Environment CLI: 5.2.0 Cross-platform modules: 5.2.2 Android Runtime: 5.2.1 Describe the bug With "markingMode: none", errors "Attempt to use c...

Opengraph URL: https://github.com/NativeScript/NativeScript/issues/7125

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Android: Crash with \"markingMode: none\" and \"ngFor\" with binding","articleBody":"_From @jpierront on March 4, 2019 13:47_\n\n**Environment**\r\n - CLI: 5.2.0\r\n - Cross-platform modules: 5.2.2\r\n - Android Runtime: 5.2.1\r\n\r\n**Describe the bug**\r\n- With \"markingMode: none\", errors \"Attempt to use cleared object reference\" occur when I change the background color of an element in my app with a css class name. ([class.element-active]=\"...\")\r\n- It doesn't seems to happen when I change the color or the opacity, only the background-color.\r\n- It doesn't seems to happen when I use \"[style.background-color]=...\"\r\n- My app freeze too often without the \"markingMode: none\"\r\n\r\nI don't know if it's related to NativeScript or NativeScript-Angular\r\n\r\n**To Reproduce**\r\n- I did not succeed in reproducing it on a blank app, but the garbage collector is probably less often triggered with an empty app.\r\n\r\nDo you have any tips to help test this kind of case?\r\n\r\n**Expected behavior**\r\nNo crash ;-)\r\n\r\n**Sample project**\r\n```\r\nexport class MyComponent {\r\n    public activeElement: Element | null = null;\r\n    public elements: Element[] = [...];\r\n}\r\n```\r\n```\r\n.element {\r\n    background-color: white;\r\n}\r\n.element-active {\r\n    background-color: red;\r\n}\r\n```\r\n```\r\n\u003cLabel\r\n    [text]=\"element.title\"\r\n    (tap)=\"activeElement = element\"\r\n    class=\"element\"\r\n    [class.element-active]=\"element === activeElement\"\r\n    *ngFor=\"let element of elements\"\r\n\u003e\u003c/Label\u003e\r\n```\r\n**Additional context**\r\n\r\n```\r\nERROR Error: com.tns.NativeScriptException: Attempt to use cleared object reference id=4370\r\n    com.tns.Runtime.getJavaObjectByID(Runtime.java:1006)\r\n    com.tns.Runtime.callJSMethodNative(Native Method)\r\n    com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1203)\r\n    com.tns.Runtime.callJSMethodImpl(Runtime.java:1083)\r\n    com.tns.Runtime.callJSMethod(Runtime.java:1070)\r\n    com.tns.Runtime.callJSMethod(Runtime.java:1050)\r\n    com.tns.Runtime.callJSMethod(Runtime.java:1042)\r\n    com.tns.gen.java.lang.Object_vendor_177265_32_TouchListenerImpl.onTouch(Object_vendor_177265_32_TouchListenerImpl.java:18)\r\n    android.view.View.dispatchTouchEvent(View.java:11772)\r\n    android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2968)\r\n    android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2657)\r\n    android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2968)\r\n    android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2657)\r\n    android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.j...\r\n\r\nERROR CONTEXT {\r\n  \"view\": {\r\n    \"def\": {\r\n      \"nodeFlags\": 9125889,\r\n      \"rootNodeFlags\": 1,\r\n      \"nodeMatchedQueries\": 0,\r\n      \"flags\": 0,\r\n      \"nodes\": [\r\n        {\r\n          \"nodeIndex\": 0,\r\n          \"parent\": null,\r\n          \"renderParent\": null,\r\n          \"bindingIndex\": 0,\r\n          \"outputIndex\": 0,\r\n          \"checkIndex\": 0,\r\n          \"flags\": 1,\r\n          \"childFlags\": 9125888,\r\n          \"directChildFlags\": 9125888,\r\n          \"childMatchedQueries\": 0,\r\n          \"matchedQueries\": {},\r\n          \"matchedQueryIds\": 0,\r\n          \"references\": {},\r\n          \"ngContentIndex\": null,\r\n          \"childCount\": 3,\r\n          \"bindings\": [\r\n            {\r\n              \"flags\": 8,\r\n              \"ns\": \"\",\r\n              \"name\": \"text\",\r\n              \"nonMinifiedName\": \"text\",\r\n              \"securityContext\": 0\r\n            },\r\n            {\r\n              \"flags\": 2,\r\n              \"ns\": \"\",\r\n              \"name\": \"element-active\",\r\n              \"nonMinifiedName\": \"element-active\"\r\n            }\r\n          ],\r\n          \"b...\r\n```\r\n\r\n\"element-active\" is the added css class name containing a change of background-color.\r\n\r\n\n\n_Copied from original issue: NativeScript/NativeScript#6983_","author":{"url":"https://github.com/NickIliev","@type":"Person","name":"NickIliev"},"datePublished":"2019-03-06T13:28:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":22},"url":"https://github.com/7125/NativeScript/issues/7125"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:758a79a2-7cca-63d2-1ecd-7a6365e497e2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC964:1792BE:1706943:1F9F2B8:6973893D
html-safe-nonce8b5c839bbdf05e88bd24baf503d42a9fda168cca520dd9ee0d02d82087f303a6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTY0OjE3OTJCRToxNzA2OTQzOjFGOUYyQjg6Njk3Mzg5M0QiLCJ2aXNpdG9yX2lkIjoiMzgzODk0MzE4MzcwMTc3MjYwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6e395b9eba828474a994d41a9bbf00e0f87f8ca696c5220fc88f41b01cd2a416
hovercard-subject-tagissue:431380391
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/NativeScript/7125/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e778a7e8051180d96205460dcb5a1ff4f18c9007e49e766d77cb3c8e839cbe3a/NativeScript/NativeScript/issues/7125
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e778a7e8051180d96205460dcb5a1ff4f18c9007e49e766d77cb3c8e839cbe3a/NativeScript/NativeScript/issues/7125
og:image:altFrom @jpierront on March 4, 2019 13:47 Environment CLI: 5.2.0 Cross-platform modules: 5.2.2 Android Runtime: 5.2.1 Describe the bug With "markingMode: none", errors "Attempt to use cleared object r...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameNickIliev
hostnamegithub.com
expected-hostnamegithub.com
Nonef0b5e2d1da32de5a0b7bcfbc5ba007c93e8e63098fba29e1200efb674aa72e66
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id31492490
octolytics-dimension-repository_nwoNativeScript/NativeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31492490
octolytics-dimension-repository_network_root_nwoNativeScript/NativeScript
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
releasec96653671324f9b6d4c5f787435acf56a06087dd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/NativeScript/issues/7125#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fissues%2F7125
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fissues%2F7125
Sign up https://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%2FNativeScript
Reloadhttps://github.com/NativeScript/NativeScript/issues/7125
Reloadhttps://github.com/NativeScript/NativeScript/issues/7125
Reloadhttps://github.com/NativeScript/NativeScript/issues/7125
NativeScript https://github.com/NativeScript
NativeScripthttps://github.com/NativeScript/NativeScript
Please reload this pagehttps://github.com/NativeScript/NativeScript/issues/7125
Notifications https://github.com/login?return_to=%2FNativeScript%2FNativeScript
Fork 1.7k https://github.com/login?return_to=%2FNativeScript%2FNativeScript
Star 25.4k https://github.com/login?return_to=%2FNativeScript%2FNativeScript
Code https://github.com/NativeScript/NativeScript
Issues 869 https://github.com/NativeScript/NativeScript/issues
Pull requests 59 https://github.com/NativeScript/NativeScript/pulls
Discussions https://github.com/NativeScript/NativeScript/discussions
Actions https://github.com/NativeScript/NativeScript/actions
Projects 0 https://github.com/NativeScript/NativeScript/projects
Wiki https://github.com/NativeScript/NativeScript/wiki
Security 0 https://github.com/NativeScript/NativeScript/security
Insights https://github.com/NativeScript/NativeScript/pulse
Code https://github.com/NativeScript/NativeScript
Issues https://github.com/NativeScript/NativeScript/issues
Pull requests https://github.com/NativeScript/NativeScript/pulls
Discussions https://github.com/NativeScript/NativeScript/discussions
Actions https://github.com/NativeScript/NativeScript/actions
Projects https://github.com/NativeScript/NativeScript/projects
Wiki https://github.com/NativeScript/NativeScript/wiki
Security https://github.com/NativeScript/NativeScript/security
Insights https://github.com/NativeScript/NativeScript/pulse
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/7125
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/7125
Android: Crash with "markingMode: none" and "ngFor" with bindinghttps://github.com/NativeScript/NativeScript/issues/7125#top
https://github.com/manoldonev
https://github.com/NickIliev
https://github.com/NickIliev
NickIlievhttps://github.com/NickIliev
on Mar 6, 2019https://github.com/NativeScript/NativeScript/issues/7125#issue-431380391
@jpierronthttps://github.com/jpierront
#6983https://github.com/NativeScript/NativeScript/issues/6983
manoldonevhttps://github.com/manoldonev
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.