-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JNI DETECTED ERROR IN APPLICATION: can't make objects of type android.support.v4.app.FragmentPagerAdapter #1216
Comments
Oddly updating the support packages from Project.Android>rightclick>Manage Nuget Packages did not update the version numbers in the packages.manefest?? Altering those manually and rebuilding did not work though and it still crashes. |
Linked to xamarin/Xamarin.Forms#1609? I was using API 25 |
Not sure how I managed to close this but I now have a repro based on the TabbedPages Xamarin demo. I basically added the AppCompat stuff that I have got in my main project and now TabbedPages crashes in the same way. |
I have a similiar error in my app -> opening any tabbed view causes this crash: -> JNI DETECTED ERROR IN APPLICATION: can't make objects of type android.support.v4.app.FragmentPagerAdapter: 0x1387b128 in call to AllocObject The error happened exactly after the VS update to 15.6.0 preview2 on Windows. i manged to reproduce it (probably on my machine only ) with this sample and the error output: https://github.com/davidWTAP/XAMARIN_Div/blob/master/error.log I have so far no clue whats causing this.... |
@davidWTAP, @uwantfries: How exactly do you run your test cases? Do you get the JNI error simply from launching the app, or is some form of app interaction required? |
@jonpryor Thanks for the quick response. |
I was able to reproduce this crash with both of the recently uploaded reproduction cases using the latest Beta release of XA (8.2.0.1). I am however unable to reproduce using the latest preview version (8.2.0.6). @davidWTAP and @uwantfries this new preview build should be made available later today, could you see if this build resolves this issue for you when you have the chance? |
We believe that this is a duplicate of Issue #1149. Please try with d15-6 Preview 4 installers, Xamarin.Android 8.2.0.9 or later. |
I just did an upgrade to the new VS preview that showed up today -> Microsoft Visual Studio Professional 2017 Preview ... Xamarin 4.9.0.702 (02a31411b) Xamarin Designer 4.10.40 (1f43fcf56) Xamarin.Android SDK 8.2.0.5 (HEAD/8b7075a29) Xamarin.iOS and Xamarin.Mac SDK 11.8.0.8 (eaff169) |
Fixes: dotnet#6113 Changes: xamarin/monodroid@33e542f...ab6c39e * xamarin/monodroid@ab6c39ee5: [tools/fastdev] use strtoull to parse 64 bit argument. (dotnet#1217) * xamarin/monodroid@aa75b5b89: [tools/msbuild] Cache the ToolsAbi value for the device. (dotnet#1216) * xamarin/monodroid@d4a8977cb: [tools/msbuild] add missing RuntimeConfigBinFilePath value (dotnet#1213)
Fixes: #6113 Changes: xamarin/monodroid@33e542f...ab6c39e * xamarin/monodroid@ab6c39ee5: [tools/fastdev] use strtoull to parse 64 bit argument. (#1217) * xamarin/monodroid@aa75b5b89: [tools/msbuild] Cache the ToolsAbi value for the device. (#1216) * xamarin/monodroid@d4a8977cb: [tools/msbuild] add missing RuntimeConfigBinFilePath value (#1213)
Fixes: #6113 Changes: xamarin/monodroid@33e542f...ab6c39e * xamarin/monodroid@ab6c39ee5: [tools/fastdev] use strtoull to parse 64 bit argument. (#1217) * xamarin/monodroid@aa75b5b89: [tools/msbuild] Cache the ToolsAbi value for the device. (#1216) * xamarin/monodroid@d4a8977cb: [tools/msbuild] add missing RuntimeConfigBinFilePath value (#1213)
Steps to Reproduce
Open a TabbedPage on a Xamarin forms project that was previously working using XamarinSDKs about 8 months ago (no sure which version it was) .
Upgraded to newest stable then again to the beta to work around https://bugzilla.xamarin.com/show_bug.cgi?id=60445
Updated v4 support libs to the latest version (26.1.0.1) and still not working.
Expected Behavior
Tabbed page opens as it did before without crashing
Actual Behavior
Crashes with stacktrace below
Version Information
Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.7.02556
Installed Version: Enterprise
Architecture and Modeling Tools 00322-80000-00000-AA807
Microsoft Architecture and Modeling Tools
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.
Visual Basic 2015 00322-80000-00000-AA807
Microsoft Visual Basic 2015
Visual C# 2015 00322-80000-00000-AA807
Microsoft Visual C# 2015
Visual C++ 2015 00322-80000-00000-AA807
Microsoft Visual C++ 2015
Windows Phone SDK 8.0 - ENU 00322-80000-00000-AA807
Windows Phone SDK 8.0 - ENU
Application Insights Tools for Visual Studio Package 7.18.00214.2
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2015.1 (Beta8) 14.1.11107.0
ASP.NET and Web Tools 2015.1 (Beta8)
ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563
ASP.NET Web Frameworks and Tools 2013 5.2.40314.0
For additional information, visit http://www.asp.net/
Common Azure Tools 1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
GitHub.VisualStudio 2.3.6.391
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.
GorillaPlayerPackage Extension 1.0
GorillaPlayerPackage Visual Studio Extension Detailed Info
JavaScript Language Service 2.0
JavaScript Language Service
JavaScript Project System 2.0
JavaScript Project System
Merq 1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.
Microsoft Azure Mobile Services Tools 1.4
Microsoft Azure Mobile Services Tools
Mono Debugging for Visual Studio 4.9.10-pre (f143ac1)
Support for debugging Mono processes with Visual Studio.
NuGet Package Manager 3.4.4
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
SQL Server Data Tools 14.0.60519.0
Microsoft SQL Server Data Tools
TypeScript 1.8.36.0
TypeScript tools for Visual Studio
Visual Studio Tools for Universal Windows Apps 14.0.25527.01
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.
VisualStudio.Mac 1.0
Mac Extension for Visual Studio
Xamarin 4.9.0.669 (8dcd9ff4f)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 4.10.3 (f8ad4ba4a)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin.Android SDK 8.2.0.1 (HEAD/1e47e7ed5)
Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS 11.8.0.0 (d15aa28)
Visual Studio extension to enable development for Xamarin.iOS.
Xamarin.iOS and Xamarin.Mac SDK 11.8.0.0 (d15aa28)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Log File
The text was updated successfully, but these errors were encountered: