Bug 55015 - Cannot Access Disposed ScrollViewRenderer Problem
Summary: Cannot Access Disposed ScrollViewRenderer Problem
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.3.4
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Paul DiPietro [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2017-04-11 10:34 UTC by Hakan
Modified: 2017-06-21 19:08 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Related Pages (1.64 KB, application/x-7z-compressed)
2017-04-12 21:21 UTC, Hakan
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Hakan 2017-04-11 10:34:58 UTC
In a Navigation page, when the second page includes scrollview-->entries, if the back arrow is tapped while one of the entries has focus and the keyboard is open, an unhandled exception occurs saying that the disposed scrollviewrenderer cannot be accessed. This only happens while debgging with Visual Studio though. When not debugging, it works fine.
Comment 1 Paul DiPietro [MSFT] 2017-04-11 13:17:43 UTC
If you can upload a reproduction it would be appreciated. If this is occurring with the debugger only, then the issue might lie there.
Comment 2 Hakan 2017-04-12 21:21:47 UTC
Created attachment 21478 [details]
Related Pages

Pages related to the bug
Comment 3 Hakan 2017-04-12 21:27:09 UTC
You can find attached the pages I extracted and simplified for ease of inspecting the problem.
I changed the title of the bug because upon further investigation, I realized that the exception terminates the application even when not debugging.
In order to observe the bug, just click the fourth entry in the entry page and right after that, click the software navigate back button at the top of the screen while the numeric keyboard is open. Then you will be able to see the exception.
All entries have "Unfocused" event handlers. The only difference between the handler of the fourth entry and the others is that this handler modifies a label before calling scroll on the scrollview.
Please feel free to ask further details if necessary.
Comment 4 Paul DiPietro [MSFT] 2017-06-21 19:08:01 UTC
Using the provided code on an emulator and Galaxy S5, the crash is not occurring with the latest stable version of Forms. I am able to click the fourth entry and then the back button and there is no crash. As such, I'm going to mark this as not reproducible. If you're still experiencing the error and are using an up-to-date version of VS as well as one of the latest versions of Forms, please reopen this with a complete project and more information on your environment. Thanks.