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

App crashes when restored from suspended #1

Closed
angelinn opened this issue Nov 29, 2017 · 0 comments
Closed

App crashes when restored from suspended #1

angelinn opened this issue Nov 29, 2017 · 0 comments
Labels

Comments

@angelinn
Copy link
Owner

angelinn commented Nov 29, 2017

Device: One M9
Version: 0.9

Stacktrace:

Xamarin caused by: android.runtime.JavaProxyThrowable: System.InvalidOperationException: There is already a factory registered for TramlineFive.Common.Services.IApplicationService.
GalaSoft.MvvmLight.Ioc.SimpleIoc.Register<TClass>(Func<TResult> factory, bool createInstanceImmediately)<5cf71060d91f44fca892b53939f96cd9>:0
GalaSoft.MvvmLight.Ioc.SimpleIoc.Register<TClass>(Func<TResult> factory)<5cf71060d91f44fca892b53939f96cd9>:0
TramlineFive.App.App()<5498f89fe509474aa7b670c1f238b30d>:0
TramlineFive.Droid.MainActivity.OnCreate(Bundle bundle)<2368ef388e24415c8c64a2101a54c82b>:0
Android.App.Activity.n_OnCreate_Landroid_os_Bundle_(IntPtr jnienv, IntPtr native__this, IntPtr native_savedInstanceState)<1318acb7728b45e0883cf4326113d990>:0
at (wrapper dynamic-method) System.Object:428f5a5b-cb24-4933-8ff2-2065831615e1 (intptr,intptr,intptr)
md51e8125850fd4a7d3f4253fd7f191a129.MainActivity.n_onCreate(Native Method)
md51e8125850fd4a7d3f4253fd7f191a129.MainActivity.onCreate()MainActivity.java:30
android.app.Activity.performCreate()Activity.java:6673
android.app.Instrumentation.callActivityOnCreate()Instrumentation.java:1136
android.app.ActivityThread.performLaunchActivity()ActivityThread.java:2682
android.app.ActivityThread.handleLaunchActivity()ActivityThread.java:2790
at android.app.ActivityThread.-wrap12(ActivityThread.java)
android.app.ActivityThread$H.handleMessage()ActivityThread.java:1505
android.os.Handler.dispatchMessage()Handler.java:102
android.os.Looper.loop()Looper.java:173
android.app.ActivityThread.main()ActivityThread.java:6523
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run()ZygoteInit.java:938
com.android.internal.os.ZygoteInit.main()ZygoteInit.java:828
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant