2

I installed my application and the application is running well already. But after sometime, the app can't be opened and the error is "error opening trace file: No such file or directory". What could be the problem? I installed the same app to Samsung Note2 with Android version 4.1.2. I don't have any problem. I installed to another device with Android version 4.1.1, and that device has problem. My LogCat message is as shown below.

10-07 20:51:50.910: W/System.err(19785): Invalid int: ""
10-07 20:51:51.140: W/dalvikvm(19785): threadid=1: thread exiting with uncaught exception (group=0x40e97438)
10-07 20:52:09.510: E/Trace(19817): error opening trace file: No such file or directory (2)
10-07 20:52:09.530: W/dalvikvm(19817): Refusing to reopen boot DEX '/system/framework/hwframework.jar'
10-07 20:52:09.750: W/System.err(19817): Invalid int: ""
10-07 20:52:09.910: I/Adreno200-EGL(19817): <qeglDrvAPI_eglInitialize:299>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB_REL_2.0.3.04.01.01.21.010_msm8625_JB_REL_2.0.3_Merge_release_AU (Merge)
10-07 20:52:09.910: I/Adreno200-EGL(19817): Build Date: 10/26/12 Fri
10-07 20:52:09.910: I/Adreno200-EGL(19817): Local Branch: 
10-07 20:52:09.910: I/Adreno200-EGL(19817): Remote Branch: quic/jb_rel_2.0.3
10-07 20:52:09.910: I/Adreno200-EGL(19817): Local Patches: NONE
10-07 20:52:09.910: I/Adreno200-EGL(19817): Reconstruct Branch: AU_LINUX_ANDROID_JB_REL_2.0.3.04.01.01.21.010 +  NOTHING
10-07 20:52:09.970: W/dalvikvm(19817): threadid=1: thread exiting with uncaught exception (group=0x40e97438)
4

1 回答 1

1

“错误打开跟踪文件”消息是一个红鲱鱼- 它只是意味着您的设备不支持 systrace。

“Invalid int”消息可能与问题有关,但实际上正在发生的事情是抛出未捕获的异常。

通常,当线程以未捕获的异常退出时,您会在日志中看到异常,但这里似乎有些东西阻止了这种情况。如果您在调试器中运行应用程序,并在所有未捕获的异常上设置异常断点,您应该能够看到它的来源。(或者,尝试追踪“Invalid int”消息的来源并在那里设置断点。)

于 2013-10-07T20:58:34.590 回答