[AC-6109] Backbutton ActionBar doesn't work sometimes
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Needs more info |
Resolution Date | 2019-02-02T20:50:05.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Alloy, Titanium SDK & CLI |
Labels | android |
Reporter | Barry van der Pol |
Assignee | Shak Hossain |
Created | 2019-01-16T09:32:19.000+0000 |
Updated | 2019-04-08T12:31:53.000+0000 |
Description
Sometimes when the backbutton in the ActionBar is pressed, I get the following error:
'{color:red}[ERROR] : V8Function: !!!Received a bad pointer to the Proxy for 'this' in V8Function.nativeInvoke. Proxy may have been destroyed already. Returning undefined.{color}'
Sometimes have to open and close a window about 100 times to reproduce, I can also occur the first time.
{quote}
{quote}
Attachments
File | Date | Size |
---|---|---|
Foto 16-01-19 om 10.28.jpg | 2019-01-16T09:31:59.000+0000 | 44222 |
Hello [~nsttu], Thanks for reporting this. Are you experiencing this in all android devices or the specific this device? It would be great if you share your complete environment information and test steps to reproduce this on our end.
We are experiencing this on multiple android devices. I can be reproduced by opening a new window and then go back with de the back button in de action bar, sometimes I have to do it about 100 times before the error occurs. If the error occurs I can resolve is with "$.overview.activity.invalidateOptionsMenu();" but I cannot detect it. View:
Back function in the controller (this function will also not being called when the error occurs)
{quote}Operating System Name = Mac OS X Version = 10.14 Architecture = 64bit # CPUs = 4 Memory = 8589934592 Node.js Node.js Version = 10.14.2 npm Version = 6.4.1 Titanium CLI CLI Version = 5.1.1 Titanium SDK SDK Version = 7.5.0.GA SDK Path = /Users/appdeveloper/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA Target Platform = android
Can you please share your index.js file with us to reproduce the issue on our end?
Hello, In your sample code, "$.overview.close();" this is an error. There is no overview id in your xml code. Please provide the real sample code. Thanks.
Hello, I thought I’d check in to see how things are progressing on your end. Just following up to check the status of this issue. Did you manage to provide the sample test project?
We are stil working on a tiny sample code to reproduce the error. We can't figure out what's triggering the error.
[~nsttu], Can you please share the complete test code to reproduce the issue properly on our end?
I found the cause of the problem. I couldn't reproduce the error in a new project, not even with the same code. After comparing the tiapp.xml files is saw there was a "
I have also experienced this. https://docs.appcelerator.com/platform/latest/#!/guide/tiapp.xml_and_timodule.xml_Reference-section-src-29004921_tiapp.xmlandtimodule.xmlReference-run-on-main-thread run-on-main-thread seems to be enabled by default on SDK 7.0.0+ though