Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Hello, looks like I found the bug in the xamarin forms navigator. Tested it on android (4.4.4 KitKat).
I'am using ZXing.Forms component to scan barcodes, so I wrote wrapper for scanning it returns the scan result, but the bug isn't into ZXing component, look:
1.var result = await App.FastScan();
3.var item = await DepotManager.GetItem(result.Item2);
4.var page = new ScannedItemPage(item);
5.//await page.FadeTo(1.0, 500);
App.FastScan - creating new MobileBarcodeScanner() and scanning the barcode, that's right, I can get result, and go further, call the DepotManager.GetItem(itemBarcode), it asking network for info from server then caching result, then creating new Page for item representation and pushing it.
If the GetItem() calling slow (awaiting for network result e.t.c) then it's okay, I see ScannedItemPage, but after caching GetItem() doesn't waiting, returning item immediately from cache and I get exception:
"Can not perform this action after onSaveInstanceState".
It happens ONLY if I calling 6th line, also if I'll uncommend 5th line (actually waiting 0.5s) then it's okay too, I'll not get a crash.
Please, help me, what I'am doing wrong?
A minimized reproduction project would be very much appreciated in helping to investigate this issue.
Uploaded reproduce project:
404 on that dropbox link
Are you still experiencing this issue, and if so, are you able to resend the reproduction project?
Xamarin Forms Team
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!