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.
Steps to reproduce this issue:
1. Open XS.
2. Open Support4 application.
3. Debug/Run the application.
4. Click Fragment option on device or emulator.
5. Click last option 'Tabs and pager'.
Actual Result: After clicking on 'Tabs and Pager' under Fragment, Application
gets crashed throwing exception "System.InvalidCastException".
Expected Result: Application should not crash after clicking on 'Tabs and
Pager' under Fragment.
Android Log: https://gist.github.com/saurabh360/92156a1643f4b0249727
Application Output: https://gist.github.com/saurabh360/1ab4e6a5532562c4c37a
ADB Logcat: https://gist.github.com/saurabh360/dd2c43ec0ad5fb038970
XS 4.2.3(build 20)
This sample was verified in Issue: https://bugzilla.xamarin.com/show_bug.cgi?id=7137
I was able to reproduce this *only* in Release configuration. I was unable to reproduce on Debug. I saw this on a v2.3.7 GenyMotion emu, as well as my v4.3 GS3.
Exception stack trace from logcat:
Weird, I cannot reproduce this with master (which should be almost the same as 4.11), x86 4.3 and 4.4 emulators. The activity launches and I could switch between two tabs.
Though I had to "fix build" before building Support4 ("SetHasOptionsMenu(true)" => "HasOptionsMenu = true" in four lines). They seems to have changed the API and the bound API has also changed. So - is it version dependent issue? I have 19.0.1 locally.
Same story, can't reproduce this issue. The activity launches and I can switch
between two tabs in release and debug configuration.
OS X 10.9.1
Xamarin Studio 4.3.1
Phillips W732 with Android 4.3
I have checked this issue with the following builds:
XS 4.2.4(build 32)
Sample Info:monodroid-samples-masterc 2f984b727b64117a9668012f547c9a30932d70c
App is throwing handled exception by clicking on 'Tabs and Pager' under Fragment in RELEASE mode while in DEBUG mode app is working fine.Below is the output for the same:
Even I am able to reproduce it with stable android 4.12.1-1 on RELEASE mode.
Note:I run the application on default settings not changed the target version etc.
API 19 Emulator
S4 -V 4.3
S2 -V 2.3.3
Hence reopening this issue.
I am also still able to reproduce on _release_ mode only, as reported earlier.
Mono 3.4.0 ((no/704ca78)
XA 4.12-series / 7f0e3d3c
Nexus 4 v4.4 (ART)
The issue was setting the adapter. Replacing the normal C# cast to data.JavaCast<ICursor>() in Activities\LoaderCursorSupport.cs resolved the issue.