Bug 53335 - System.DivideByZeroException on Droid Forms 2.3.4.-pre5 with custom NavigationPageRenderer
Summary: System.DivideByZeroException on Droid Forms 2.3.4.-pre5 with custom Navigatio...
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.3.4
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-03-15 00:44 UTC by Emman Vazz
Modified: 2017-03-15 19:56 UTC (History)
2 users (show)

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

Class that causes exception. (828 bytes, text/plain)
2017-03-15 00:44 UTC, Emman Vazz
RepoThatWorksOk (53.98 KB, application/zip)
2017-03-15 12:09 UTC, Rui Marinho

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:

Description Emman Vazz 2017-03-15 00:44:28 UTC
Created attachment 20328 [details]
Class that causes exception.

I upgraded from 2.3.4-pre3 to 2.3.4-pre5 and experienced a new crash. I get a System.DivideByZeroException when calling base.OnLayout in a OnLayout override of a NavigationPageRenderer on Android. I simplified my class to focus on the issue. Not sure what changed but it worked fine before.
Comment 1 Emman Vazz 2017-03-15 00:52:04 UTC
Sorry I was on 2.3.4-pre2 not 2.3.4-pre3.
Comment 2 Rui Marinho 2017-03-15 12:09:11 UTC
Hi, i just testes this and wasn't able to reproduce using your class, the app works as expected, pushing the app as attachment. 

Please modify it to reproduce the issue.
Comment 3 Rui Marinho 2017-03-15 12:09:57 UTC
Created attachment 20346 [details]
Comment 4 Emman Vazz 2017-03-15 19:56:07 UTC
Hmm downgraded then upgraded again and the Exception went away. Maybe something didn't update properly the first time. Closing.