在智能手机上的活动之间切换时崩溃但在仿真器上工作正常

时间:2017-01-08 15:20:47

标签: android emulation

所以我在我的电脑上使用Android Studio并在模拟器中测试应用程序,该模拟器完全正常。 但是,当我尝试使用连接到电脑的智能手机时,当我尝试切换活动时,应用程序总是崩溃。

其他一切似乎都运转良好。 任何人都知道为什么会发生这种情况?

这是一个例外,当应用程序崩溃时我得到:

[ 01-08 16:31:19.455  2922: 2922 E/         ]
                                                                           process stopped due to unexpected signal 13
E/HAL: load: id=gralloc != hmi->id=gralloc
I/OpenGLRenderer: Initialized EGL, version 1.4
I/HwSecImmHelper: mSecurityInputMethodService is null
I/HwSecImmHelper: mSecurityInputMethodService is null
I/System: core_booster, getBoosterConfig = false
I/System: core_booster, getBoosterConfig = false
I/art: Starting a blocking GC Alloc
I/art: Starting a blocking GC Alloc
I/art: Starting a blocking GC Alloc
I/art: Alloc partial concurrent mark sweep GC freed 20(944B) AllocSpace objects, 0(0B) LOS objects, 4% free, 240MB/252MB, paused 251us total 9.704ms
I/art: Starting a blocking GC Alloc
I/art: Alloc concurrent mark sweep GC freed 11(12KB) AllocSpace objects, 0(0B) LOS objects, 4% free, 240MB/252MB, paused 252us total 16.452ms
I/art: Forcing collection of SoftReferences for 91MB allocation
I/art: Starting a blocking GC Alloc
I/art: Alloc concurrent mark sweep GC freed 11(352B) AllocSpace objects, 0(0B) LOS objects, 4% free, 240MB/252MB, paused 343us total 16.178ms
W/art: Throwing OutOfMemoryError "Failed to allocate a 96412692 byte allocation with 12582912 free bytes and 15MB until OOM"

0 个答案:

没有答案