-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Android: Crash with "markingMode: none" and "ngFor" with binding #7125
Comments
@jpierront I've used your snippets in this test app (with Please try to isolate the issue in a sample app and if you are still hitting this one, share the source code for further investigation. |
From @jpierront on March 4, 2019 16:5 I succeeded to reproduce it. The second part (getContentParts) is only to generate heavy content. |
@jpierront using your demo I am still not able to reproduce the issue - I am testing on Nexus 5, Nexus 5x, Pixel and Pixel XL. Are you experiencing this one on a specific device, API level? |
From @jpierront on March 5, 2019 15:10 Android Virtual Device |
From @jpierront on March 5, 2019 15:30 I "succeed" on Android 9 too with a similar config (API 28) It crash too |
From @jpierront on March 5, 2019 16:5 I use |
From @jpierront on March 5, 2019 16:42
|
From @jpierront on March 5, 2019 22:12 I have a new sample app that triggers the bug faster. (By changing a lot of background color every 100ms) On Android 8.1, it take only 10 seconds on my computer. (Virtual Device: Nexus 5 or custom device) The delay will probably depend on the speed of your computer.
|
@jpierront thank you for the dedicated time to isolate the case! I\ve embedded the above snippet in this test app and can confirm that indeed there is a markingMode error manifestation on most Android devices (used Pixel and Nexus real devices for tests). Our Android developers will investigate the case further and we will post any related information as soon as we have more details to share. |
@jpierront after some additional investigation I've managed to simplify the app and it seems that the issue is not related to CSS and setting background-color but to the Angular structural directive [Here is my updated application](https://github.com/NickIliev/NS-Issues-2019-I/tree/master/test/marking-mode-bgcolor) which is hitting the very same issue without using any CSS but simply the Moving the issue (and updating the title) to the NativeScript Angular repository as it seems related to specific case where we are using binding with |
@NickIliev For me, it crash both with *ngFor and with Repeater. You will find below a simplified version of the app.
|
Do you have any ideas on this problem? How can I help ? |
I also have the similar issue. I'm trying to apply class for the GridLayout based on property value. <GridLayout [class.selected]="isSelected" Unhandled Promise rejection: com.tns.NativeScriptException: Attempt to use cleared object reference id=8849 |
@jpierront we are working on this but still haven't pinpointed the root of the problem |
Thx :) |
Thank you. |
Do you have any news about this issue ? |
My issue has gone after updating to NS 5.3. |
Not for me :/ |
@jpierront sorry for the late reply -- we were finally able to locate the root of the problem and NativeScript/android#1345 should address it. You can test the fix by first removing the platforms/android folder from your app and installing the "next" version of the android runtime like this: cd [your app folder]
rm -rf platforms/android
tns platform add android@next
tns run android |
Apparently it works! Awesome!!! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
From @jpierront on March 4, 2019 13:47
Environment
Describe the bug
I don't know if it's related to NativeScript or NativeScript-Angular
To Reproduce
Do you have any tips to help test this kind of case?
Expected behavior
No crash ;-)
Sample project
Additional context
"element-active" is the added css class name containing a change of background-color.
Copied from original issue: #6983
The text was updated successfully, but these errors were encountered: