I just created a new empty project in Android Studio, and right away ran the app on my phone - it worked perfectly fine. But when I debug the project, it crashes as soon as the breakpoint reaches the end of the code.
Here's the code:
package app.harc.zhp.delete2;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
Could anyone help, or at least try to debug a new project on Android Studio 2.2 and tell if it's any different?
Everything is fine on a Virtual Device though.
Log:
10-06 23:43:52.029 D/DefContainer(32406): Copying /data/local/tmp/app.harc.zhp.delete2 to base.apk
10-06 23:43:52.466 I/PackageManager.DexOptimizer(894): Running dexopt (dex2oat) on: /data/app/vmdl735784381.tmp/base.apk pkg=app.harc.zhp.delete2 isa=arm vmSafeMode=false debuggable=true oatDir = /data/app/vmdl735784381.tmp/oat bootComplete=true
10-06 23:43:52.670 I/ActivityManager(894): Force stopping app.harc.zhp.delete2 appid=10166 user=-1: uninstall pkg
10-06 23:43:52.845 I/PackageManager(894): Package app.harc.zhp.delete2 codePath changed from /data/app/app.harc.zhp.delete2-1 to /data/app/app.harc.zhp.delete2-2; Retaining data and using new
10-06 23:43:52.845 I/ActivityManager(894): Force stopping app.harc.zhp.delete2 appid=10166 user=-1: replace pkg
10-06 23:43:52.846 W/PackageManager(894): Code path for app.harc.zhp.delete2 changing from /data/app/app.harc.zhp.delete2-1 to /data/app/app.harc.zhp.delete2-2
10-06 23:43:52.846 W/PackageManager(894): Resource path for app.harc.zhp.delete2 changing from /data/app/app.harc.zhp.delete2-1 to /data/app/app.harc.zhp.delete2-2
10-06 23:43:53.242 W/PackageManager(894): Couldn't remove dex file for package: at location /data/app/app.harc.zhp.delete2-1/base.apk, retcode=-1
10-06 23:43:53.254 I/ActivityManager(894): Force stopping app.harc.zhp.delete2 appid=10166 user=0: pkg removed
10-06 23:43:54.974 E/Drive.UninstallOperation(1390): Package still installed app.harc.zhp.delete2
10-06 23:43:55.261 I/ActivityManager(894): Force stopping app.harc.zhp.delete2 appid=10166 user=-1: set debug app
10-06 23:43:55.262 I/ActivityManager(894): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=app.harc.zhp.delete2/.MainActivity} from uid 2000 on display 0
10-06 23:43:55.591 I/ActivityManager(894): Start proc 32594:app.harc.zhp.delete2/u0a166 for activity app.harc.zhp.delete2/.MainActivity
10-06 23:43:55.659 W/ActivityThread(32594): Application app.harc.zhp.delete2 is waiting for the debugger on port 8100...
10-06 23:43:57.327 W/System (32594): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:43:57.332 I/InstantRun(32594): Instant Run Runtime started. Android package is app.harc.zhp.delete2, real application class is null.
10-06 23:43:58.147 I/Finsky (22410): [1] com.google.android.finsky.utils.PermissionPolicies$PermissionPolicyService.onStartCommand(117): post-install permissions check for app.harc.zhp.delete2
10-06 23:43:58.158 I/Finsky (22410): [1] com.google.android.finsky.utils.bn.run(1302): Package state data is missing for app.harc.zhp.delete2
10-06 23:43:58.368 W/System (32594): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:43:59.414 V/ApplicationReceiver:onReceive(32675): 2016-10-06 21:43:59-null-ApplicationReceiver detectes the installation of package:app.harc.zhp.delete2 ver:1.2.0
10-06 23:43:59.509 I/UpdateIcingCorporaServi(31885): Updating corpora: APPS=app.harc.zhp.delete2, CONTACTS=MAYBE
10-06 23:44:02.550 D/OnUpgrade(585): onReceive --- > package name (data string): package:app.harc.zhp.delete2
10-06 23:44:34.162 I/ActivityManager(894): Process app.harc.zhp.delete2 (pid 32594) has died
10-06 23:44:34.201 I/ActivityManager(894): Start proc 1898:app.harc.zhp.delete2/u0a166 for activity app.harc.zhp.delete2/.MainActivity
10-06 23:44:34.332 W/System (1898): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:44:34.334 I/InstantRun(1898): Instant Run Runtime started. Android package is app.harc.zhp.delete2, real application class is null.
10-06 23:44:34.493 W/System (1898): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:44:35.208 I/ActivityManager(894): Displayed app.harc.zhp.delete2/.MainActivity: +39s636ms
10-06 23:44:35.594 I/ActivityManager(894): Force stopping app.harc.zhp.delete2 appid=10166 user=0: from pid 1895
10-06 23:44:35.594 I/ActivityManager(894): Killing 1898:app.harc.zhp.delete2/u0a166 (adj 0): stop app.harc.zhp.delete2
10-06 23:44:35.606 I/WindowState(894): WIN DEATH: Window{92da02e u0 app.harc.zhp.delete2/app.harc.zhp.delete2.MainActivity}
10-06 23:44:35.694 W/ActivityManager(894): Force removing ActivityRecord{5907531 u0 app.harc.zhp.delete2/.MainActivity t2575}: app died, no saved state
10-06 23:44:35.726 W/ActivityManager(894): Spurious death for ProcessRecord{984b1eb 0:app.harc.zhp.delete2/u0a166}, curProc for 1898: null
10-06 23:44:44.631 I/ActivityManager(894): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=app.harc.zhp.delete2/.MainActivity (has extras)} from uid 10070 on display 0
10-06 23:44:44.700 I/ActivityManager(894): Start proc 2259:app.harc.zhp.delete2/u0a166 for activity app.harc.zhp.delete2/.MainActivity
10-06 23:44:44.853 W/System (2259): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:44:44.861 I/InstantRun(2259): Instant Run Runtime started. Android package is app.harc.zhp.delete2, real application class is null.
10-06 23:44:45.085 W/System (2259): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:44:45.774 I/ActivityManager(894): Displayed app.harc.zhp.delete2/.MainActivity: +1s100ms
10-06 23:44:48.343 I/WindowState(894): WIN DEATH: Window{cded2e4 u0 app.harc.zhp.delete2/app.harc.zhp.delete2.MainActivity EXITING}
10-06 23:44:48.383 I/ActivityManager(894): Process app.harc.zhp.delete2 (pid 2259) has died
10-06 23:45:20.869 I/ActivityManager(894): Force stopping app.harc.zhp.delete2 appid=10166 user=-1: set debug app
10-06 23:45:20.869 I/ActivityManager(894): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=app.harc.zhp.delete2/.MainActivity} from uid 2000 on display 0
10-06 23:45:20.909 I/ActivityManager(894): Start proc 3464:app.harc.zhp.delete2/u0a166 for activity app.harc.zhp.delete2/.MainActivity
10-06 23:45:20.963 W/ActivityThread(3464): Application app.harc.zhp.delete2 is waiting for the debugger on port 8100...
10-06 23:45:22.785 W/System (3464): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:45:22.790 I/InstantRun(3464): Instant Run Runtime started. Android package is app.harc.zhp.delete2, real application class is null.
10-06 23:45:22.971 W/System (3464): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:45:39.892 I/ActivityManager(894): Process app.harc.zhp.delete2 (pid 3464) has died
10-06 23:45:39.931 I/ActivityManager(894): Start proc 3892:app.harc.zhp.delete2/u0a166 for activity app.harc.zhp.delete2/.MainActivity
10-06 23:45:40.016 W/System (3892): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:45:40.021 I/InstantRun(3892): Instant Run Runtime started. Android package is app.harc.zhp.delete2, real application class is null.
10-06 23:45:40.166 W/System (3892): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:45:40.845 I/ActivityManager(894): Displayed app.harc.zhp.delete2/.MainActivity: +19s949ms
10-06 23:45:40.931 I/ActivityManager(894): Force stopping app.harc.zhp.delete2 appid=10166 user=0: from pid 3889
10-06 23:45:40.931 I/ActivityManager(894): Killing 3892:app.harc.zhp.delete2/u0a166 (adj 0): stop app.harc.zhp.delete2
10-06 23:45:40.946 I/WindowState(894): WIN DEATH: Window{39b6bfc u0 app.harc.zhp.delete2/app.harc.zhp.delete2.MainActivity}
10-06 23:45:40.983 W/ActivityManager(894): Force removing ActivityRecord{2ef5a72 u0 app.harc.zhp.delete2/.MainActivity t2577}: app died, no saved state
10-06 23:45:40.992 W/ActivityManager(894): Spurious death for ProcessRecord{481683 0:app.harc.zhp.delete2/u0a166}, curProc for 3892: null
10-06 23:46:02.406 I/ActivityManager(894): Force stopping app.harc.zhp.delete2 appid=10166 user=-1: set debug app
10-06 23:46:02.406 I/ActivityManager(894): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=app.harc.zhp.delete2/.MainActivity} from uid 2000 on display 0
10-06 23:46:02.425 I/ActivityManager(894): Start proc 4463:app.harc.zhp.delete2/u0a166 for activity app.harc.zhp.delete2/.MainActivity
10-06 23:46:02.473 W/ActivityThread(4463): Application app.harc.zhp.delete2 is waiting for the debugger on port 8100...
10-06 23:46:04.288 W/System (4463): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:46:04.291 I/InstantRun(4463): Instant Run Runtime started. Android package is app.harc.zhp.delete2, real application class is null.
10-06 23:46:04.533 W/System (4463): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:46:31.003 I/ActivityManager(894): Process app.harc.zhp.delete2 (pid 4463) has died
10-06 23:46:31.021 I/ActivityManager(894): Start proc 4979:app.harc.zhp.delete2/u0a166 for activity app.harc.zhp.delete2/.MainActivity
10-06 23:46:31.113 W/System (4979): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:46:31.115 I/InstantRun(4979): Instant Run Runtime started. Android package is app.harc.zhp.delete2, real application class is null.
10-06 23:46:31.297 W/System (4979): ClassLoader referenced unknown path: /data/app/app.harc.zhp.delete2-2/lib/arm
10-06 23:46:31.882 I/ActivityManager(894): Displayed app.harc.zhp.delete2/.MainActivity: +29s467ms
10-06 23:46:31.996 I/ActivityManager(894): Force stopping app.harc.zhp.delete2 appid=10166 user=0: from pid 4992
10-06 23:46:31.996 I/ActivityManager(894): Killing 4979:app.harc.zhp.delete2/u0a166 (adj 0): stop app.harc.zhp.delete2
10-06 23:46:32.011 I/WindowState(894): WIN DEATH: Window{7271944 u0 app.harc.zhp.delete2/app.harc.zhp.delete2.MainActivity}
10-06 23:46:32.083 W/ActivityManager(894): Force removing ActivityRecord{b4396be u0 app.harc.zhp.delete2/.MainActivity t2578}: app died, no saved state
10-06 23:46:32.098 W/ActivityManager(894): Spurious death for ProcessRecord{dabc29 0:app.harc.zhp.delete2/u0a166}, curProc for 4979: null
add this in dependencies --
'compile 'com.android.support:multidex:1.0.1'
and also add below code in application class --
MultiDex.install(this);
Related
I am currently testing an app. This is the test case. Load the app and then go to google leader board. Then press home button and do some other tasks. Then come back to the app again by clicking on the app icon. When I do this I still see the previously loaded leaderboard. Afterwards if I click back button on the leaderboard to resume the app following exception occurs.
I have also listed the logcat output. I can't debug this to see whats null because dubug has been detached before this event. What can I do to solve this?
ava.lang.RuntimeException: Unable to start activity ComponentInfo{XXX: java.lang.NullPointerException
11-03 16:30:04.877: E/AndroidRuntime(619): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
u=0} from pid 13361
11-09 22:51:02.015 3677-3677/? D/ChimeraCfgMgr﹕ Loading module com.google.android.gms.games from APK com.google.android.play.games
11-09 22:51:02.019 3677-3677/? D/ChimeraModuleLdr﹕ Module APK com.google.android.play.games already loaded
11-09 22:51:02.105 3677-13641/? V/BaseAuthAsyncOperation﹕ All scopes had been granted in the past, skip access token fetching
11-09 22:51:02.160 3677-13641/? V/BaseAuthAsyncOperation﹕ access token request successful
11-09 22:51:02.187 249-283/? I/ActivityManager﹕ Displayed invalid entry.
11-09 22:51:09.750 249-943/? I/WindowState﹕ WIN DEATH: Window{41fda2b8 com.champ/com.champ.controllers.MainActivity paused=false}
11-09 22:51:09.750 249-494/? I/ActivityManager﹕ Process com.champ (pid 13361) has died.
11-09 22:51:13.836 3677-3677/? D/ChimeraCfgMgr﹕ Loading module com.google.android.gms.games from APK com.google.android.play.games
11-09 22:51:13.836 3677-3677/? D/ChimeraModuleLdr﹕ Module APK com.google.android.play.games already loaded
11-09 22:51:14.773 456-456/? D/dalvikvm﹕ WAIT_FOR_CONCURRENT_GC blocked 0ms
11-09 22:51:21.773 249-943/? D/dalvikvm﹕ GC_FOR_ALLOC freed 1448K, 17% free 19437K/23303K, paused 82ms, total 91ms
11-09 22:51:21.804 13789-13789/? D/dalvikvm﹕ Late-enabling CheckJNI
11-09 22:51:21.816 249-953/? I/ActivityManager﹕ Start proc com.champ for activity com.champ/.controllers.MainActivity: pid=13789 uid=10063 gids={1015, 1028, 3003}
11-09 22:51:25.586 249-835/? I/ActivityManager﹕ Process com.champ (pid 13789) has died.
11-09 22:51:25.590 249-835/? W/ActivityManager﹕ Force removing ActivityRecord{415b2150 com.champ/.controllers.ErrorActivity}: app died, no saved state
11-09 22:51:25.617 13857-13857/? D/dalvikvm﹕ Late-enabling CheckJNI
11-09 22:51:25.621 249-835/? I/ActivityManager﹕ Start proc com.champ for activity com.champ/.controllers.MainActivity: pid=13857 uid=10063 gids={1015, 1028, 3003}
11-09 22:51:25.687 249-953/? W/InputMethodManagerService﹕ Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#41db2610 attribute=null
Use try catch to get more info.
Did You save some Data in Application or Static Utils?
Because the page before You leader board is kill by System. When you back from Leader board,System rebuild it.
But some data become null.
In this case , you may use some data is null.
Simplely:
Add a check before you get data from Util.
public getA(){
if(a = null){a = b;}
return a;
}
I have a question: is there somebody that use MVVMCross 3.5.1 with Api level android 21 and xamarin studio 5.9.3? I have a problem: I reference mvvmcross in an android app. I have a splashscreen and a firstview. When I tried to start with emulator I don't have any problem with level 15 emulator but when I tried it with the last version (Api 21) the app after splashscreen is closed without any error (not open the firstview).
Is there a solution?
UPDATE
I tried with logcat. In the following I attached the log:
W/AudioTrack( 394): AUDIO_OUTPUT_FLAG_FAST denied by client
I/ActivityManager( 394): START u0 {act=android.intent.action.MAIN cat=[android.
intent.category.LAUNCHER] flg=0x10000000 cmp=com.nowhere.nowhere/md51f5aeae0dbe3
fa3acab67292d41114d1.SplashScreen (has extras)} from uid 10007 on display 0
I/Choreographer( 824): Skipped 67 frames! The application may be doing too muc
h work on its main thread.
I/art ( 1716): Not late-enabling -Xcheck:jni (already on)
I/ActivityManager( 394): Start proc com.nowhere.nowhere for activity com.nowher
e.nowhere/md51f5aeae0dbe3fa3acab67292d41114d1.SplashScreen: pid=1716 uid=10056 g
ids={50056, 9997, 3003} abi=armeabi-v7a
I/Choreographer( 394): Skipped 32 frames! The application may be doing too muc
h work on its main thread.
F/MonoDroid( 1716): shared runtime initialization error: dlopen failed: library
"/data/app/Mono.Android.DebugRuntime-1/lib/arm/lib/libmonosgen-2.0.so" not found
I/Zygote ( 66): Process 1716 exited cleanly (1)
I/ActivityManager( 394): Process com.nowhere.nowhere (pid 1716) has died
I/art ( 1731): Not late-enabling -Xcheck:jni (already on)
I/ActivityManager( 394): Start proc com.nowhere.nowhere for activity com.nowher
e.nowhere/md51f5aeae0dbe3fa3acab67292d41114d1.SplashScreen: pid=1731 uid=10056 g
ids={50056, 9997, 3003} abi=armeabi-v7a
F/MonoDroid( 1731): shared runtime initialization error: dlopen failed: library
"/data/app/Mono.Android.DebugRuntime-1/lib/arm/lib/libmonosgen-2.0.so" not found
I/Zygote ( 66): Process 1731 exited cleanly (1)
I/ActivityManager( 394): Process com.nowhere.nowhere (pid 1731) has died
I/art ( 1746): Not late-enabling -Xcheck:jni (already on)
I/ActivityManager( 394): Start proc com.nowhere.nowhere for activity com.nowher
e.nowhere/md51f5aeae0dbe3fa3acab67292d41114d1.SplashScreen: pid=1746 uid=10056 g
ids={50056, 9997, 3003} abi=armeabi-v7a
F/MonoDroid( 1746): shared runtime initialization error: dlopen failed: library
"/data/app/Mono.Android.DebugRuntime-1/lib/arm/lib/libmonosgen-2.0.so" not found
I/Zygote ( 66): Process 1746 exited cleanly (1)
I/ActivityManager( 394): Process com.nowhere.nowhere (pid 1746) has died
W/ActivityManager( 394): Force removing ActivityRecord{27f513c9 u0 com.nowhere.
nowhere/md51f5aeae0dbe3fa3acab67292d41114d1.SplashScreen t8}: app died, no saved
state
W/WindowManager( 394): Failed looking up window
W/WindowManager( 394): java.lang.IllegalArgumentException: Requested window and
roid.view.ViewRootImpl$W#3c7a1def does not exist
W/WindowManager( 394): at com.android.server.wm.WindowManagerService.wi
ndowForClientLocked(WindowManagerService.java:8412)
W/WindowManager( 394): at com.android.server.wm.WindowManagerService.wi
ndowForClientLocked(WindowManagerService.java:8403)
W/WindowManager( 394): at com.android.server.wm.WindowManagerService.re
moveWindow(WindowManagerService.java:2558)
W/WindowManager( 394): at com.android.server.wm.Session.remove(Session.
java:186)
W/WindowManager( 394): at android.view.ViewRootImpl.dispatchDetachedFro
mWindow(ViewRootImpl.java:2920)
W/WindowManager( 394): at android.view.ViewRootImpl.doDie(ViewRootImpl.
java:5390)
W/WindowManager( 394): at android.view.ViewRootImpl$ViewRootHandler.han
dleMessage(ViewRootImpl.java:3223)
W/WindowManager( 394): at android.os.Handler.dispatchMessage(Handler.ja
va:102)
W/WindowManager( 394): at android.os.Looper.loop(Looper.java:135)
W/WindowManager( 394): at android.os.HandlerThread.run(HandlerThread.ja
va:61)
W/WindowManager( 394): at com.android.server.ServiceThread.run(ServiceT
hread.java:46)
W/InputMethodManagerService( 394): Window already focused, ignoring focus gain
of: com.android.internal.view.IInputMethodClient$Stub$Proxy#14f4aa0b attribute=n
ull, token = android.os.BinderProxy#5c9e508
I/Choreographer( 824): Skipped 56 frames! The application may be doing too muc
h work on its main thread.
D/TaskPersister( 394): removeObsoleteFile: deleting file=8_task.xml
UPDATE 2
The bind does not work. Inside the view..
UPDATE 3
I put the code in this repo:
https://onedrive.live.com/redir?resid=1E563B1D1AD8A1C!15847&authkey=!AII01sfuzToQiUQ&ithint=file%2czip
I used this configuration for the test:
1. Nexus 5,
2. Android 5.0-API Level 21,
3. CPU/ABI, I have chosen Google APIs Intel Atom(x86_64),
4. Use Host GPU.
UPDATE 4
new link for code: http://1drv.ms/1MZWf45
Thanks
Alessandro
I found the problem. The problem was the emulator. I tried to change the configuration and now run without problem.
Thanks
Al.
I have been confused by a random crash in my app since I updated to cordova 5 and started using crosswalk.
This is my logcat:
D/STATUSBAR-NetworkController( 1110): refreshSignalCluster - setNWBoosterIndicators(false)
D/STATUSBAR-NetworkController( 1110): refreshSignalCluster: data=-1 bt=false
D/STATUSBAR-IconMerger( 1110): checkOverflow(1344), More:false, Req:false Child:5
W/ActivityManager( 891): Permission Denial: getCurrentUser() from pid=32252, uid=10037 requires android.permission.INTERACT_ACROSS_USERS
I/ActivityManager( 891): Process com.tesingguru.tesing_Guru (pid 29852) (adj 0) has died.
I/WindowState( 891): WIN DEATH: Window{42fb82c0 u0 com.tesingguru.tesing_Guru/com.tesingguru.tesing_Guru.MainActivity}
I/SurfaceFlinger( 329): id=3847 Removed NainActivit (16/29)
I/SurfaceFlinger( 329): id=3847 Removed NainActivit (-2/29)
I/FactoryTest( 891): isRunningFactoryApp=false
I/FactoryTest( 891): isRunningFactoryApp=false
W/ActivityManager( 891): Force removing ActivityRecord{4303e860 u0 com.tesingguru.tesing_Guru/.MainActivity t221}: app died, no saved state
I am completely confused by this? The line I am suspecting is:
W/ActivityManager( 891): Permission Denial: getCurrentUser() from pid=32252, uid=10037 requires android.permission.
I need to subscribe to INotifyPropertyChanged of one of my models in my ViewModel. My research led me to: How do I update the parent viewmodel when child viewmodel is updated.
I tried using WeakSubscribe as suggested in #3 but after entering and leaving the view several times my whole application either freezes or crashes.
Here's my code from Init() in the ViewModel:
foreach (var sale in Model.Sales)
{
sale.WeakSubscribe(delegate
{
Model.CalculateSalesTotals();
});
}
when the app is crashing, I'm getting SIGSEGV:
I/mono-stdout(30334): mvx:Diagnostic:227.00 Showing ViewModel InvoiceAuthorizationViewModel
I/ActivityManager( 391): START u0 {flg=0x10000000 cmp=com.desco.escMobile/escmobile.android.views.InvoiceAuthorizationView (has extras)} from pid 30334
I/mono-stdout(30334): mvx:Diagnostic:227.19 Loading new ViewModel from Intent with Extras
D/dalvikvm(30334): GC_EXPLICIT freed 783K, 5% free 17252K/18068K, paused 2ms+8ms, total 53ms
I/mono-stdout(30334): MvxBind:Warning:227.59 Unable to bind: source property source not found Cirrious.MvvmCross.Binding.Parse.PropertyPath.PropertyTokens.MvxPr
opertyNamePropertyToken on null-object
I/mono-stdout(30334): MvxBind:Warning:227.61 Unable to bind: source property source not found Cirrious.MvvmCross.Binding.Parse.PropertyPath.PropertyTokens.MvxPr
opertyNamePropertyToken on null-object
I/mono-stdout(30334): MvxBind:Warning:227.63 Unable to bind: source property source not found Cirrious.MvvmCross.Binding.Parse.PropertyPath.PropertyTokens.MvxPr
opertyNamePropertyToken on null-object
I/dalvikvm(30334): Jit: resizing JitTable from 4096 to 8192
I/ActivityManager( 391): Displayed com.desco.escMobile/escmobile.android.views.InvoiceAuthorizationView: +755ms (total +1s259ms)
I/ActivityManager( 391): Displayed com.desco.escMobile/escmobile.android.views.InvoiceAuthorizationView: +1s279ms
I/ActivityManager( 391): Process com.android.vending (pid 30179) has died.
E/mono-rt (30334): Stacktrace:
E/mono-rt (30334):
E/mono-rt (30334):
E/mono-rt (30334): =================================================================
E/mono-rt (30334): Got a SIGSEGV while executing native code. This usually indicates
E/mono-rt (30334): a fatal error in the mono runtime or one of the native libraries
E/mono-rt (30334): used by your application.
E/mono-rt (30334): =================================================================
E/mono-rt (30334):
I/ActivityManager( 391): Process com.desco.escMobile (pid 30334) has died.
I/WindowState( 391): WIN DEATH: Window{42cf2e60 u0 com.desco.escMobile/escmobile.android.views.InvoiceAuthorizationView}
W/ActivityManager( 391): Force removing ActivityRecord{42e05b20 u0 com.desco.escMobile/escmobile.android.views.InvoiceAuthorizationView}: app died, no saved st
ate
I/WindowState( 391): WIN DEATH: Window{427bfbf0 u0 com.desco.escMobile/escmobile.android.views.DispatchListView}
I/WindowState( 391): WIN DEATH: Window{42b32b50 u0 com.desco.escMobile/escmobile.android.views.InvoiceDetailsView}
I/WindowState( 391): WIN DEATH: Window{43003e48 u0 com.desco.escMobile/escmobile.android.views.InvoiceAuthorizationView}
I/WindowState( 391): WIN DEATH: Window{42aea920 u0 com.desco.escMobile/escmobile.android.views.DispatchDetailsView}
D/dalvikvm(30434): Late-enabling CheckJNI
I/ActivityManager( 391): Start proc com.desco.escMobile for activity com.desco.escMobile/escmobile.android.views.InvoiceAuthorizationView: pid=30434 uid=10086
gids={50086, 3003, 1015, 1028}
D/Zygote ( 129): Process 30334 exited cleanly (255)
Any suggestions?
This only happens after the activity has been in the background for some time. It does not happen if I press the "home" button and then a few seconds later reopen the app, restoring the previous state. It does happen when I press the"home" button and then maybe an hour later reopen the app, trying to restore the previous state.
I think the WIN DEATH is causing it. I think it's the activity being garbage collected, but I'm not sure why it doesn't just restart.
Any insights into why this is happening?
note: Game implements Parcelable
05-22 20:43:14.343 I/ActivityManager(401): Start proc com.example.test for activity com.example.test/.ui.MainActivity: pid=12767 uid=10117 gids={50117, 3003, 1028}
05-22 20:48:22.914 I/ActivityManager(401): 43942 kB: com.example.test (pid 12767)
05-22 20:48:22.914 I/ActivityManager(401): 12767 62632K 62488K 44006K 40068K com.example.test
05-22 20:58:39.593 I/WindowState(401): WIN DEATH: Window{41b13370 u0 com.example.test/com.example.test.ui.MainActivity}
05-22 20:58:39.593 I/ActivityManager(401): Process com.example.test (pid 12767) has died.
05-23 11:12:25.469 I/ActivityManager(401): Start proc com.example.test for activity com.example.test/.ui.MainActivity: pid=6450 uid=10117 gids={50117, 3003, 1028}
05-23 11:12:25.696 E/AndroidRuntime(6450): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.test/com.example.test.ui.MainActivity}: java.lang.ClassCastException: java.lang.Object[] cannot be cast to java.util.ArrayList[]
05-23 11:12:25.696 E/AndroidRuntime(6450): at com.example.test.model.Game.(Game.java:241)
05-23 11:12:25.696 E/AndroidRuntime(6450): at com.example.test.model.Game.(Game.java:235)
05-23 11:12:25.696 E/AndroidRuntime(6450): at com.example.test.model.Game$1.createFromParcel(Game.java:228)
05-23 11:12:25.696 E/AndroidRuntime(6450): at com.example.test.model.Game$1.createFromParcel(Game.java:1)
05-23 11:12:25.696 E/AndroidRuntime(6450): at com.example.test.ui.MainActivity.onCreate(MainActivity.java:237)
05-23 11:12:25.798 W/ActivityManager(401): Force finishing activity com.example.test/.ui.MainActivity
05-23 11:12:26.352 W/ActivityManager(401): Activity pause timeout for ActivityRecord{4161a520 u0 com.example.test/.ui.MainActivity}
05-23 11:12:27.438 I/ActivityManager(401): Process com.example.test (pid 6450) has died.