Genymotion:“不幸的是<app>已停止”

时间:2016-05-16 03:40:39

标签: android react-native genymotion

我在React Native中创建了一个在iOS中运行良好的应用程序。我已经将代码复制到它的Android部分,并将特定于平台的组件分离出来。当我点击某个组件时,该应用程序崩溃时出现“遗憾已停止”。

控制台中没有日志,没有错误,没有。我该寻找什么,我在哪里可以看到?日志?代码中的某个地方?

在〜/ genymotion-log / Google Nexus 6&lt; ...&gt; -logcat.txt中,我看到以下内容:

05-15 23:50:14.379 D/OpenGLRenderer(  620): Use EGL_SWAP_BEHAVIOR_PRESERVED: true
05-15 23:50:14.380 D/Atlas   (  620): Validating map...
05-15 23:50:14.429 I/OpenGLRenderer(  620): Initialized EGL, version 1.4
05-15 23:50:14.429 D/        (  620): HostConnection::get() New Host Connection established 0xaf31ca40, tid 1876
05-15 23:50:14.463 D/OpenGLRenderer(  620): Enabling debug mode 0
05-15 23:50:14.489 W/EGL_emulation(  620): eglSurfaceAttrib not implemented
05-15 23:50:14.490 W/OpenGLRenderer(  620): Failed to set EGL_SWAP_BEHAVIOR on surface 0x9e45dfc0, error=EGL_SUCCESS
05-15 23:50:14.490 W/EGL_emulation(  941): eglSurfaceAttrib not implemented
05-15 23:50:14.490 W/OpenGLRenderer(  941): Failed to set EGL_SWAP_BEHAVIOR on surface 0xb43e44a0, error=EGL_SUCCESS
05-15 23:50:14.952 I/ActivityManager(  620): Killing 1492:com.android.onetimeinitializer/u0a10 (adj 15): empty #17
05-15 23:50:15.219 W/OpenGLRenderer(  941): Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
05-15 23:50:15.440 W/ResourceType(  724): No package identifier when getting value for resource number 0x00000000
05-15 23:50:15.442 W/PackageManager(  724): Failure retrieving resources for com.bidsmart: Resource ID #0x0
05-15 23:50:18.400 W/AudioTrack(  620): AUDIO_OUTPUT_FLAG_FAST denied by client
05-15 23:50:18.424 I/Process ( 1805): Sending signal. PID: 1805 SIG: 9
05-15 23:50:18.463 D/OpenGLRenderer(  620): endAllStagingAnimators on 0xa1a6f780 (RippleDrawable) with handle 0xaf3be470
05-15 23:50:18.468 I/ActivityManager(  620): Process com.bidsmart (pid 1805) has died
05-15 23:50:18.472 W/InputMethodManagerService(  620): Got RemoteException sending setActive(false) notification to pid 1805 uid 10061

1 个答案:

答案 0 :(得分:0)

没有修复,但原因是我将太多数据从服务器推送到客户端。一旦我运行了adb logcat,我得到了这个:

java.lang.OutOfMemoryError: Failed to allocate a 2470012 byte allocation with 48508 free bytes and 47KB until OOM

原来我一遍又一遍地将我的图像推到客户端,直到它破裂。 iOS可以处理它但RN无法处理。

链接到StackOverflow相关主题:Android:java.lang.OutOfMemoryError: Failed to allocate a 23970828 byte allocation with 2097152 free bytes and 2MB until OOM