I have a simple app for android written in python 2.7.12 32-bit, kivy 1.9.1 on ubuntu 16.04 64. I am able to build the app with buildozer debug deploy but the app won't start. It crashes while loading itself but stays in the 'background'. I inspected the logcat and there seems to be only one error:
build.xml: Failed to find version-tag string. File must be updated.
In order to not erase potential customizations, the file will not be automatically regenerated.
If no changes have been made to the file, delete it manually and run the command again.
If you have made customizations to the build process, the file must be manually updated.
It is recommended to:
Copy current file to a safe location.
Delete original file.
Run command again to generate a new file.
Port customizations to the new file, by looking at the new rules
file located at /tools/ant/build.xml
Update file to contain version-tag: custom to prevent file from
being rewritten automatically by the SDK tools.
I have been searching for the solution and even found some related topics but none of them seems to be related to building with buildozer. I would do what the above list instructs but i was unable to locate the /tools/ant/build.xml.
I am adding the output of terminal where app dies or at least I think it happens here:
12-25 09:58:34.762 1142 1153 I ActivityManager: Start proc 4509:org.test.localmapper:python/u0a220 for activity org.test.localmapper/org.renpy.android.PythonActivity
12-25 09:58:34.920 1142 1152 I ActivityManager: Killing 4384:com.sonymobile.android.addoncamera.styleportrait/u0a67 (adj 15): empty #17
12-25 09:58:35.120 1142 1162 I WindowManager: Focus moving from null to Window{d1f6d91 u0 org.test.localmapper/org.renpy.android.PythonActivity}
12-25 09:58:35.121 1142 1162 I WindowManager: Gaining focus: Window{d1f6d91 u0 org.test.localmapper/org.renpy.android.PythonActivity}
12-25 09:58:35.140 1142 2380 I ActivityManager: Start proc 4532:com.swiftkey.swiftkeyconfigurator/u0a178 for broadcast com.swiftkey.swiftkeyconfigurator/.PackageRemovedReceiver
12-25 09:58:35.144 1142 2380 I ActivityManager: Killing 4399:com.sonymobile.cameracommon/u0a27 (adj 15): empty #17
12-25 09:58:35.265 1142 2140 I RuntimeSkinInfo: com.sonymobile.runtimeskinning.LAF_VERSION in android blocks runtime skin from being applied, version value=2
12-25 09:58:35.265 1142 2140 I RuntimeSkinInfo: com.sonymobile.runtimeskinning.LAF_VERSION in com.android.systemui blocks runtime skin from being applied, version value=2
12-25 09:58:35.343 1142 1568 W ActivityManager: Skip forceProcessStateUpTo() to newState 11
12-25 09:58:35.367 1142 1152 I ActivityManager: Killing 3951:com.android.exchange/u0a36 (adj 15): empty #17
12-25 09:58:35.436 1142 2383 I NetworkIdentity: buildNetworkIdentity:
12-25 09:58:35.436 1142 2383 I NetworkIdentity: networkId = GNX324C50
12-25 09:58:35.448 1142 1357 I ActivityManager: Start proc 4562:com.sony.nfx.app.sfrc/u0a182 for broadcast com.sony.nfx.app.sfrc/.SocialifeUpdateReceiver
12-25 09:58:35.633 1142 1152 W ActivityManager: Skip forceProcessStateUpTo() to newState 11
12-25 09:58:35.918 1142 2144 I ActivityManager: Start proc 4584:com.google.android.apps.photos/u0a132 for broadcast com.google.android.apps.photos/.backgroundsignin.BackgroundSignInBroadcastReceiver
12-25 09:58:35.920 1142 2144 I ActivityManager: Killing 4053:com.sonymobile.runtimeskinning.core/u0a185 (adj 15): empty #17
12-25 09:58:36.077 1142 2146 W ActivityManager: Skip forceProcessStateUpTo() to newState 11
12-25 09:58:36.522 1142 1569 I RuntimeSkinInfo: com.sonymobile.runtimeskinning.LAF_VERSION in android blocks runtime skin from being applied, version value=2
12-25 09:58:36.522 1142 1569 I RuntimeSkinInfo: com.sonymobile.runtimeskinning.LAF_VERSION in com.android.systemui blocks runtime skin from being applied, version value=2
12-25 09:58:36.720 1142 1152 I WindowState: WIN DEATH: Window{d1f6d91 u0 org.test.localmapper/org.renpy.android.PythonActivity}
12-25 09:58:36.721 1142 1152 W WindowManager: Force-removing child win Window{56b40f7 u0 SurfaceView} from container Window{d1f6d91 u0 org.test.localmapper/org.renpy.android.PythonActivity}
12-25 09:58:36.729 1142 1568 W WindowManager: Failed looking up window
12-25 09:58:36.729 1142 1568 W WindowManager: java.lang.IllegalArgumentException: Requested window android.os.BinderProxy#8ea04f6 does not exist
12-25 09:58:36.729 1142 1568 W WindowManager: at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9194)
12-25 09:58:36.729 1142 1568 W WindowManager: at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9185)
12-25 09:58:36.729 1142 1568 W WindowManager: at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1209)
12-25 09:58:36.729 1142 1568 W WindowManager: at android.os.BinderProxy.sendDeathNotice(Binder.java:566)
12-25 09:58:36.729 1142 1568 I WindowState: WIN DEATH: null
12-25 09:58:36.731 1142 2146 I ActivityManager: Process org.test.localmapper:python (pid 4509) has died
12-25 09:58:36.731 1142 2146 W ActivityManager: Force removing ActivityRecord{1afe009 u0 org.test.localmapper/org.renpy.android.PythonActivity t1334}: app died, no saved state
12-25 09:58:36.742 1142 1162 I WindowManager: Focus moving from Window{d1f6d91 u0 org.test.localmapper/org.renpy.android.PythonActivity} to null
12-25 09:58:36.742 1142 1162 I WindowManager: Losing focus: Window{d1f6d91 u0 org.test.localmapper/org.renpy.android.PythonActivity}
12-25 09:58:36.767 1142 1162 I WindowManager: Focus moving from null to Window{93f1d2e u0 com.sonyericsson.home/com.sonymobile.home.HomeActivity}
12-25 09:58:36.767 1142 1162 I WindowManager: Gaining focus: Window{93f1d2e u0 com.sonyericsson.home/com.sonymobile.home.HomeActivity}
12-25 09:58:36.777 1142 2377 W InputMethodManagerService: Got RemoteException sending setActive(false) notification to pid 4509 uid 10220
12-25 09:58:36.925 1142 1568 W BroadcastQueue: Permission Denial: broadcasting Intent { act=android.intent.action.USER_PRESENT flg=0x24000010 } from com.android.systemui (pid=14393, uid=10068) is not exported from uid 10048 due to receiver com.sonymobile.mx.android/.receivers.StopMessageReceiver
12-25 09:58:36.947 1142 2146 I ActivityManager: Start proc 4613:com.sonymobile.ree/u0a52 for broadcast com.sonymobile.ree/.service.UserPresentReceiver
12-25 09:58:37.122 1142 2382 W ActivityManager: Skip forceProcessStateUpTo() to newState 11
12-25 09:58:37.221 1142 1569 I ActivityManager: Killing 4066:com.sonyericsson.updatecenter/u0a71 (adj 15): empty #17
12-25 09:58:37.334 1142 2377 I ActivityManager: Start proc 4633:deezer.android.app/u0a200 for broadcast deezer.android.app/com.deezer.push.BootParseBroadcastReceiver
12-25 0
Thank you!
Sounds like version string in buildozer.spec
Explained here, answer by eviltnan : https://stackoverflow.com/a/20898873/7153696
Related
I was using Unity 3D 2018. But 2018 doesn't support Android SDK API 29. Because of that I upgraded my version to 2019.2.9f1
I created my project in 2018 version. And now, I'm using 2019 version for my project.
My problem started after the update. Game closes after the splash screen.
I've been trying for a long day for fix this problem.
I tried those things;
il2cpp and mono both of them doesn't help. Problem is not because of the il2cpp. (All the Internet are saying because of il2cpp but not for me, mono doesn't work to)
Trying Android backup to false (with Android manifest file)
Trying update all assets
I tried everything I saw in the Internet. But nothing works.
10-24 22:12:28.810: D/Launcher.CellLayout(2146): touch item:ShortcutInfo, id=246, itemType=0, user=UserHandle{0}, mIconType=0, mTitle=Şahin Uzayda, mLabel=Şahin Uzayda, pkgName=com.DeviserSoft.SahinUzayda, className=com.unity3d.player.UnityPlayerActivity, screenId=6, container=-100, cellX=1, cellY=0, spanX=1, spanY=1, isLandscapePos=false
10-24 22:12:28.926: I/Timeline(2146): Timeline: Activity_launch_request time:15228423 intent:Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity bnds=[331,101][499,269] (has extras) }
10-24 22:12:28.929: I/ActivityManager(1663): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity bnds=[331,101][499,269] (has extras)} from uid 10028 on display 0
10-24 22:12:28.937: I/ANDR-IOP(1663): MIUI-IOP pkg_name = com.DeviserSoft.SahinUzayda PID = -1
10-24 22:12:28.959: I/ActivityManager(1663): Start proc 22887:com.DeviserSoft.SahinUzayda/u0a241 for activity com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity caller=com.miui.home
10-24 22:12:28.960: D/PowerKeeper.Event(3220): notifyAMProcStart processName: 10241 reason: com.DeviserSoft.SahinUzayda, pid:0
10-24 22:12:28.960: I/ANDR-IOP(1663): MIUI-IOP pkg_name = com.DeviserSoft.SahinUzayda PID = 22887
10-24 22:12:29.048: D/GameBoosterService(2606): onGameStatusChange foreground:ForegroundInfo{mForegroundPackageName='com.DeviserSoft.SahinUzayda', mForegroundUid=10241, mForegroundPid=22887, mLastForegroundPackageName='com.miui.home', mLastForegroundUid=10028, mLastForegroundPid=2146, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=1}
10-24 22:12:29.133: D/AccessibilityManager(22887): current package=com.DeviserSoft.SahinUzayda, accessibility manager mIsFinalEnabled=false, mOptimizeEnabled=false, mIsUiAutomationEnabled=false, mIsInterestedPackage=false
10-24 22:12:29.264: I/ActivityManager(1663): Displayed com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity: +317ms
10-24 22:12:29.265: I/Timeline(1663): Timeline: Activity_windows_visible id: ActivityRecord{216ffa0 u0 com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity t136} time:15228762
10-24 22:12:29.265: D/PowerKeeper.Event(3220): notifyActivityLaunchTime: com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity totalTime: 317
10-24 22:12:29.273: I/Unity(22887): ApplicationInfo com.DeviserSoft.SahinUzayda version 2.5 build 0682396a-d6c8-44ad-b159-8749835ed3df
10-24 22:12:29.280: I/WindowManager(1663): Destroying surface Surface(name=Starting com.DeviserSoft.SahinUzayda) called by com.android.server.wm.WindowStateAnimator.destroySurface:2045 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:897 com.android.server.wm.WindowState.removeLocked:1460 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2635 com.android.server.wm.WindowManagerService.removeWindowLocked:2593 com.android.server.wm.WindowManagerService.removeWindowLocked:2462 com.android.server.wm.WindowManagerService.removeWindow:2457 com.android.server.wm.Session.remove:202
10-24 22:12:29.295: I/WindowManager(1663): Screen frozen for +329ms due to Window{288d3f7 u0 Starting com.DeviserSoft.SahinUzayda}
10-24 22:12:32.156: E/AndroidRuntime(22887): Process: com.DeviserSoft.SahinUzayda, PID: 22887
10-24 22:12:32.163: W/ActivityManager(1663): Force finishing activity com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity
10-24 22:12:32.238: I/WindowManager(1663): WIN DEATH: Window{fd0a70b u0 com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity}
10-24 22:12:32.238: I/ActivityManager(1663): Process com.DeviserSoft.SahinUzayda (pid 22887) has died: vis +99T
10-24 22:12:32.238: W/WindowManager(1663): Force-removing child win Window{203d6b5 u0 SurfaceView - com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity} from container Window{fd0a70b u0 com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity}
10-24 22:12:32.238: I/WindowManager(1663): Destroying surface Surface(name=SurfaceView - com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2045 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:897 com.android.server.wm.WindowState.removeLocked:1460 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2635 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2614 com.android.server.wm.WindowManagerService.removeWindowLocked:2593 com.android.server.wm.WindowState$DeathRecipient.binderDied:1791 android.os.BinderProxy.sendDeathNotice:701
10-24 22:12:32.239: D/PowerKeeper.Event(3220): notifyAMProcDied pacakageName: com.DeviserSoft.SahinUzayda, pid:22887
10-24 22:12:32.241: I/WindowManager(1663): Destroying surface Surface(name=com.DeviserSoft.SahinUzayda/com.unity3d.player.UnityPlayerActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2045 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:897 com.android.server.wm.WindowState.removeLocked:1460 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2635 com.android.server.wm.WindowManagerService.removeWindowLocked:2593 com.android.server.wm.WindowState$DeathRecipient.binderDied:1791 android.os.BinderProxy.sendDeathNotice:701 <bottom of call stack>
10-24 22:12:32.315: D/GameBoosterService(2606): onGameStatusChange foreground:ForegroundInfo{mForegroundPackageName='com.miui.home', mForegroundUid=10028, mForegroundPid=2146, mLastForegroundPackageName='com.DeviserSoft.SahinUzayda', mLastForegroundUid=10241, mLastForegroundPid=22887, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=0}
We're working on an Android game, developing with Cocos2d-x.
Our game seems to be killed by android, but we can't find the root cause about the game close. The adb's log is dumped as follows:
adb's log
Critical portion:
D/dalvikvm( 501): GC_CONCURRENT freed 875K, 19% free 4478K/5464K, paused 2ms+2ms, total 22ms
E/Surface ( 965): queueBuffer: error queuing buffer to SurfaceTexture, -12
W/dalvikvm( 965): trying to work around app JNI bugs, but didn't find 0x41906cd8 in table!
W/dalvikvm( 965): JNI WARNING: DeleteLocalRef(0x41906cd8) failed to find entry
I/FrameQueueManage( 174): FrameQueueManage::~FrameQueueManage end!
D/Zygote ( 172): Process 965 terminated by signal (11)
I/ActivityManager( 501): Process igs.rd5.SuperSoccer (pid 965) has died.
I/WindowState( 501): WIN DEATH: Window{41a365d8 u0 igs.rd5.SuperSoccer/org.cocos2dx.cpp.AppActivity}
W/WindowManager( 501): Force-removing child win Window{41a4fcb0 u0 SurfaceView} from container Window{41a365d8 u0 igs.rd5.SuperSoccer/org.cocos2dx.cpp.AppActivity}
W/ActivityManager( 501): Force removing ActivityRecord{41975d20 u0 igs.rd5.SuperSoccer/org.cocos2dx.cpp.AppActivity t2}: app died, no saved state
W/WindowManager( 501): Failed looking up window
W/WindowManager( 501): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy#41a4be58 does not exist
W/WindowManager( 501): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8102)
W/WindowManager( 501): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8093)
W/WindowManager( 501): at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1047)
W/WindowManager( 501): at android.os.BinderProxy.sendDeathNotice(Binder.java:493)
W/WindowManager( 501): at dalvik.system.NativeStart.run(Native Method)
I/WindowState( 501): WIN DEATH: null
D/mali_winsys( 680): new_window_surface returns 0x3000
W/InputMethodManagerService( 501): Got RemoteException sending setActive(false) notification to pid 965 uid 10047
W/Binder ( 652): Caught a RuntimeException from the binder stub implementation.
W/Binder ( 652): java.lang.NullPointerException
W/Binder ( 652): at android.inputmethodservice.IInputMethodWrapper.setSessionEnabled(IInputMethodWrapper.java:284)
W/Binder ( 652): at com.android.internal.view.IInputMethod$Stub.onTransact(IInputMethod.java:129)
W/Binder ( 652): at android.os.Binder.execTransact(Binder.java:404)
W/Binder ( 652): at dalvik.system.NativeStart.run(Native Method)
We don't see any native library's crash dump, and nearly can't see any java's exception that has senses. Cound anybody tell us why our game is killed by android?
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.
So, I was testing my app out on various devices, and on some with less memory, it decides to crash after playing for a while. I think I have a memory leak somewhere, but that isn't the issue.
When it dies, it doesn't throw any exceptions, this is what the logcat gave me:
07-16 14:05:55.424 1318 1318 I ActivityManager: Starting: Intent {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=org.waldev.platformer/.Menu } from pid 4631
07-16 14:05:56.213 1318 1349 I ActivityManager: Displayed org.waldev.platformer/.Menu: +613ms
07-16 14:05:58.252 1318 1509 I ActivityManager: Starting: Intent { cmp=org.waldev.platformer/.Platformer } from pid 4623
07-16 14:05:58.510 1220 1316 I ExtendFileSource: filename = /data/app/org.waldev.platformer-1.apk
07-16 14:05:58.533 1220 10962 I ExtendFileSource: filename = /data/app/org.waldev.platformer-1.apk
07-16 14:05:58.549 1220 7923 I ExtendFileSource: filename = /data/app/org.waldev.platformer-1.apk
07-16 14:05:58.557 1220 1220 I ExtendFileSource: filename = /data/app/org.waldev.platformer-1.apk
07-16 14:05:58.783 1318 1349 I ActivityManager: Resumed Activity: org.waldev.platformer/.Menu totalTime: 3361 ms
07-16 14:05:58.783 1318 1349 I ActivityManager: Displayed org.waldev.platformer/.Platformer: +496ms
07-16 14:05:59.682 1220 1220 I ExtendFileSource: filename = /data/app/org.waldev.platformer-1.apk
07-16 14:08:04.619 1220 10961 I ExtendFileSource: filename = /data/app/org.waldev.platformer-1.apk
07-16 14:09:56.283 1318 1551 I ActivityManager: Process org.waldev.platformer (pid 4623) has died.
07-16 14:09:56.369 1318 1351 E InputDispatcher: channel '405409f8 org.waldev.platformer/org.waldev.platformer.Menu (server)' ~ Consumer closed input channel or an error occurred. events=0x8
07-16 14:09:56.369 1318 1351 E InputDispatcher: channel '405409f8 org.waldev.platformer/org.waldev.platformer.Menu (server)' ~ Channel is unrecoverably broken and will be disposed!
07-16 14:09:56.416 1318 6514 I WindowManager: WIN DEATH: Window{40576908 org.waldev.platformer/org.waldev.platformer.Menu paused=false}
07-16 14:09:56.557 1318 1537 I WindowManager: WIN DEATH: Window{405409f8 org.waldev.platformer/org.waldev.platformer.Menu paused=false}
07-16 14:09:56.572 1318 2103 I WindowManager: WIN DEATH: Window{409f0b80 org.waldev.platformer/org.waldev.platformer.Menu paused=false}
07-16 14:09:56.580 1318 1464 I WindowManager: WIN DEATH: Window{40543cf0 org.waldev.platformer/org.waldev.platformer.Menu paused=false}
07-16 14:09:56.603 1318 1509 I WindowManager: WIN DEATH: Window{4090ec68 org.waldev.platformer/org.waldev.platformer.Platformer paused=false}
07-16 14:09:56.853 1318 1551 I ActivityManager: Start proc org.waldev.platformer for activity org.waldev.platformer/.Menu: pid=5332 uid=10103 gids={1015}
07-16 14:09:58.291 1318 1349 I ActivityManager: Displayed org.waldev.platformer/.Menu: +1s677ms
It just seems like it decided to destroy my process without it ever telling me why. I looked around to see what causes android to do this, but I didn't see anything.
I saw the other questions about this on here, but none of them seemed to really answer why it was doing it, and that's more of what I am looking for. Does anyone know?