Skip to content
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

Applications crash when adding MVVMCross - HotTuna Droid Fragment . #7

Open
henrikstromberg opened this issue May 23, 2014 · 4 comments

Comments

@henrikstromberg
Copy link

When updating N41-Maps sample to use latest Nuget packages. The appliation crashes when navigating. This line crash in HomeViewModel. return new MvxCommand(() => ShowViewModel());

My app also started to cash when adding MVVMCross - HotTuna Droid Fragment and using commands

@slodge
Copy link
Contributor

slodge commented May 23, 2014

Thanks

Any chance of a stacktrace?

@henrikstromberg
Copy link
Author

Hi Stuart,
Thanks for your quick reply.

Steps to reproduce:

1 Open N-41 Maps
2 Open Nuget manager and got to updates select prerelease and update all.
3 Build and run on Android device click any button.

Here are the stacktrace :

                   0x21 in System.Diagnostics.Debugger.Mono_UnhandledException_internal        C#
                     0x1 in System.Diagnostics.Debugger.Mono_UnhandledException                        C#
                     0x26 in object.d5d39f87-d096-47b4-ae23-919ecb93f35c   C#
                     0xF in Cirrious.MvvmCross.ViewModels.MvxCommand.Execute                          C#
                     0x1F in Cirrious.MvvmCross.Binding.Droid.Target.MvxViewClickBinding.ViewOnClick                          C#
                     0x14 in Android.Views.View.IOnClickListenerImplementor.OnClick at /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/7f0e3d3c/source/monodroid/src/Mono.Android/platforms/android-8/src/generated/Android.Views.View.cs:885,824               C#
                     0x13 in Android.Views.View.IOnClickListenerInvoker.n_OnClick_Landroid_view_View_ at /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/7f0e3d3c/source/monodroid/src/Mono.Android/platforms/android-8/src/generated/Android.Views.View.cs:852,824               C#
                     0x17 in object.d5d39f87-d096-47b4-ae23-919ecb93f35c   C#

The output :

mvx:Diagnostic: 1.28 Setup: Secondary end
[0:] mvx:Diagnostic: 1.28 Setup: Secondary end
05-23 16:27:20.513 I/mono-stdout(24340): mvx:Diagnostic: 1.28 Setup: Secondary end
[0:]
mvx:Diagnostic: 1.29 Showing ViewModel HomeViewModel
[0:] mvx:Diagnostic: 1.29 Showing ViewModel HomeViewModel
05-23 16:27:20.523 I/mono-stdout(24340): mvx:Diagnostic: 1.29 Showing ViewModel HomeViewModel
05-23 16:27:20.533 D/Mono (24340): DllImport attempting to load: '/system/lib/libc.so'.
05-23 16:27:20.533 D/Mono (24340): DllImport loaded library '/system/lib/libc.so'.
05-23 16:27:20.533 D/Mono (24340): DllImport searching in: '/system/lib/libc.so' ('/system/lib/libc.so').
05-23 16:27:20.533 D/Mono (24340): Searching for 'gettid'.
05-23 16:27:20.533 D/Mono (24340): Probing 'gettid'.
05-23 16:27:20.533 D/Mono (24340): Found as 'gettid'.
05-23 16:27:20.553 D/Mono (24340): DllImport searching in: 'Internal' ('(null)').
05-23 16:27:20.553 D/Mono (24340): Searching for '_monodroid_gref_dec'.
05-23 16:27:20.553 D/Mono (24340): Probing '_monodroid_gref_dec'.
05-23 16:27:20.553 D/Mono (24340): Found as '_monodroid_gref_dec'.
05-23 16:27:20.553 D/Mono (24340): DllImport searching in: '__Internal' ('(null)').
05-23 16:27:20.553 D/Mono (24340): Searching for '_monodroid_gref_log_delete'.
05-23 16:27:20.553 D/Mono (24340): Probing '_monodroid_gref_log_delete'.
05-23 16:27:20.553 D/Mono (24340): Found as '_monodroid_gref_log_delete'.
05-23 16:27:20.663 D/Mono (24340): Assembly Ref addref Mappit.Droid[0x40ff4868] -> Cirrious.CrossCore.Droid[0x6d234f50]: 5
[0:]
mvx:Diagnostic: 1.44 Attempting to load new ViewModel from Intent with Extras
[0:] mvx:Diagnostic: 1.44 Attempting to load new ViewModel from Intent with Extras
05-23 16:27:20.693 I/mono-stdout(24340): mvx:Diagnostic: 1.44 Attempting to load new ViewModel from Intent with Extras
05-23 16:27:20.903 D/Mono (24340): Remapped public key token of retargetable assembly System from 7cec85d7bea7798e to b77a5c561934e089
05-23 16:27:20.903 D/Mono (24340): The request to load the retargetable assembly System v2.0.5.0 was remapped to System v2.0.0.0
05-23 16:27:20.903 D/Mono (24340): Unloading image System.dll [0x6eac71e0].
05-23 16:27:20.903 D/Mono (24340): Image addref System[0x6eac7650] -> System.dll[0x6ec6a4b0]: 10
05-23 16:27:20.903 D/Mono (24340): Assembly Ref addref Cirrious.CrossCore[0x40ff4e18] -> System[0x6ec687b0]: 9
05-23 16:27:20.923 D/Mono (24340): Remapped public key token of retargetable assembly System.Windows from 7cec85d7bea7798e to b03f5f7f11d50a3a
05-23 16:27:20.923 D/Mono (24340): The request to load the retargetable assembly System.Windows v2.0.5.0 was remapped to System.Windows v2.0.0.0
05-23 16:27:20.923 D/Mono (24340): Unloading image System.Windows.dll [0x7091d268].
05-23 16:27:20.923 D/Mono (24340): Image addref System.Windows[0x708ffa88] -> System.Windows.dll[0x6eacc060]: 5
05-23 16:27:20.923 D/Mono (24340): Assembly Ref addref Cirrious.MvvmCross[0x6d2e87d0] -> System.Windows[0x6f115830]: 4
05-23 16:27:20.943 D/Mono (24340): Remapped public key token of retargetable assembly System.Windows from 7cec85d7bea7798e to b03f5f7f11d50a3a
05-23 16:27:20.943 D/Mono (24340): The request to load the retargetable assembly System.Windows v2.0.5.0 was remapped to System.Windows v2.0.0.0
05-23 16:27:20.943 D/Mono (24340): Unloading image System.Windows.dll [0x7091b398].
05-23 16:27:20.943 D/Mono (24340): Image addref System.Windows[0x70924aa0] -> System.Windows.dll[0x6eacc060]: 6
05-23 16:27:20.943 D/Mono (24340): Assembly Ref addref Cirrious.CrossCore[0x40ff4e18] -> System.Windows[0x6f115830]: 5
05-23 16:27:22.745 D/GestureDetector(24340): [Surface Touch Event] mSweepDown False, mLRSDCnt : -1 mTouchCnt : 7 mFalseSizeCnt:0
05-23 16:27:22.755 W/ (24340): Missing method Cirrious.MvvmCross.ViewModels.MvxNavigatingObject::ShowViewModel<[1]>(IMvxBundle,MvxBundle,MvxRequestedBy) in assembly /data/data/com.mvvmcross.mappit/files/.__override
/Cirrious.MvvmCross.dll, referenced in assembly /data/data/com.mvvmcross.mappit/files/.override/Mappit.Core.dll
An unhandled exception occured.

Best regards Henrik

From: Stuart Lodge [mailto:notifications@github.com]
Sent: den 23 maj 2014 15:53
To: MvvmCross/NPlus1DaysOfMvvmCross
Cc: Henrik Strömberg
Subject: Re: [NPlus1DaysOfMvvmCross] Applications crash when adding MVVMCross - HotTuna Droid Fragment . (#7)

Thanks

Any chance of a stacktrace?


Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-44011101.

@slodge
Copy link
Contributor

slodge commented May 23, 2014

I'm afraid what you are seeing is a MissingMethodException - "Missing method Cirrious.MvvmCross.ViewModels.MvxNavigatingObject::ShowViewModel<[1]>" - so this is likely to be something to do with the Xamarin linker.

Not reproduced here - but my Xamarin tools are slightly out of date now.

Best bet is probably to try clean and rebuild... if that doesn't help, then maybe use your support contract to ask Xamarin for assistance.

@nerdoza
Copy link

nerdoza commented Nov 4, 2014

This happened to me and the solution was that the core PCL had lost it's reference to the Cirrious.Mvvmcross library at some point during the upgrade process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants