首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Android应用程序在成功执行所有所需的操作后崩溃。

Android应用程序在成功执行所有所需的操作后崩溃。
EN

Stack Overflow用户
提问于 2014-11-03 14:43:57
回答 1查看 1.9K关注 0票数 0

我是用RAD XE7开发的,这是一个用于安卓的应用程序。一切都进行得很好,以至于应用程序因seg-故障而崩溃(11)。我将其追溯到一个过程的“结束”,在这个过程中,系统内存释放被执行。在System._InstClear中,程序停留在寄存器r1为0的"ldr.w R1 r1,#-60“处。

  • 硬件:索尼Xperia Z2平板(SGP511)
  • Android: 4.4.2
  • 内核: 3.4.0-perf-g46a79a0

它有霓虹灯和ArmV7。

编译并作为一个.exe运行是完美无缺的。

我正在使用运行时创建的。也许这会引起问题。

如果缺少一些有用的信息,我很乐意提供。

编辑:添加了Logcat输出

代码语言:javascript
运行
复制
I/ActivityManager(  966): START u0 {act=com.android.systemui.recent.action.TOGGL
E_RECENTS flg=0x10800000 cmp=com.android.systemui/.recent.RecentsActivity} from
pid 1274
D/dalvikvm( 1274): GC_FOR_ALLOC freed 7K, 6% free 56524K/60036K, paused 25ms, to
tal 26ms
I/dalvikvm-heap( 1274): Grow heap (frag case) to 56.458MB for 280156-byte alloca
tion
I/ActivityManager(  966): Start proc com.sony.smallapp.managerservice for servic
e com.sony.smallapp.managerservice/.SmallAppManagerService: pid=5678 uid=10158 g
ids={50158, 3003}
D/dalvikvm( 1274): GC_FOR_ALLOC freed 3K, 6% free 56835K/60312K, paused 29ms, to
tal 30ms
I/dalvikvm-heap( 1274): Grow heap (frag case) to 56.762MB for 280156-byte alloca
tion
W/GAV2    ( 5678): Thread[main,5,main]: Need to call initialize() and be in fall
back mode to start dispatch.
I/ActivityManager(  966): Killing 3056:com.sonyericsson.album/u0a41 (adj 15): em
pty #17
D/dalvikvm( 1274): GC_FOR_ALLOC freed 32K, 6% free 57158K/60588K, paused 20ms, t
otal 21ms
I/dalvikvm-heap( 1274): Grow heap (frag case) to 57.079MB for 280156-byte alloca
tion
I/ActivityManager( 1274): Timeline: Activity_idle id: android.os.BinderProxy@44a
cb540 time:225750587
I/ActivityManager(  966): Timeline: Activity_windows_visible id: ActivityRecord{
44bc8ea0 u0 com.android.systemui/.recent.RecentsActivity t269} time:225750612
E/AdvWidget( 6877): Unknown function: onTrimMemory
I/        (  304): 'usb' is online
D/SonySWEffect(  297): PARAM_CA_CHSEP Clear Stereo Off(0x80000001)
I/        (  304): 'usb' is online
D/SonySWEffect(  297): Unsupported frame count 240
D/dalvikvm( 1274): GC_FOR_ALLOC freed 40K, 6% free 57539K/60864K, paused 34ms, t
otal 34ms
D/StatusBar.NetworkController( 1274): refreshViews: Data not connected!! Set no
data type icon / Roaming
D/ConnectivityServiceHSM(  966): Actual State: DefaultConnectivityState, Current
 State: DefaultConnectivityState.processMessage what=115
D/QcConnectivityService(  966): Sampling interval elapsed, updating statistics .
.
D/QcConnectivityService(  966): Done.
D/QcConnectivityService(  966): Setting timer for 720seconds
D/Ulp_jni (  966): Location CB invoked
D/effect_intf(  297): remove_active_usecase: Remove effect handle, usecase ID 1
D/hardware_info(  297): hw_info_append_hw_type : device_name = speaker
D/audio_hw_extn(  297): audio_extn_get_anc_enabled: anc_enabled:0
I/        (  304): 'usb' is online
W/ContextImpl( 5678): Implicit intents with startService are not safe: Intent {
act=com.google.android.gms.analytics.service.START (has extras) } android.conten
t.ContextWrapper.bindService:517 com.google.analytics.tracking.android.Analytics
GmsCoreClient.connect:82 com.google.analytics.tracking.android.GAServiceProxy.co
nnectToService:279
I/GAV2    ( 5678): Thread[GAThread,5,main]: No campaign data found.
I/        (  304): 'usb' is online
I/        (  304): 'usb' is online
D/StatusBar.NetworkController( 1274): refreshViews: Data not connected!! Set no
data type icon / Roaming
I/        (  304): 'usb' is online
I/InputDispatcher(  966): Dropped event because the current application is not responding and the user has started interacting with a different application.
I/InputDispatcher(  966): Dropped event because the current application is not r
esponding and the user has started interacting with a different application.
I/InputDispatcher(  966): Dropped event because the current application is not r
esponding and the user has started interacting with a different application.
I/InputDispatcher(  966): Dropped event because the current application is not r
esponding and the user has started interacting with a different application.
I/InputDispatcher(  966): Dropped event because the current application is not r
esponding and the user has started interacting with a different application.
I/InputDispatcher(  966): Dropped event because the current application is not r
esponding and the user has started interacting with a different application.
I/InputDispatcher(  966): Dropped event because the current application is not r
esponding and the user has started interacting with a different application.
V/DeadZone( 1274): consuming errant click: (849.0,8.0)
W/InputDispatcher(  966): Asynchronous input event injection failed.
I/InputDispatcher(  966): Dropped event because the current application is not r
esponding and the user has started interacting with a different application.
I/InputDispatcher(  966): Dropped event because the current application is not r
esponding and the user has started interacting with a different application.
W/InputDispatcher(  966): Asynchronous input event injection failed.
I/InputDispatcher(  966): Dropped event because the current application is not r
esponding and the user has started interacting with a different application.
I/InputDispatcher(  966): Dropped event because the current application is not r
esponding and the user has started interacting with a different application.
W/InputDispatcher(  966): Asynchronous input event injection failed.
I/InputDispatcher(  966): Dropped event because the current application is not r
esponding and the user has started interacting with a different application.
I/InputDispatcher(  966): Dropped event because the current application is not r
esponding and the user has started interacting with a different application.
W/ActivityManager(  966): Launch timeout has expired, giving up wake lock!
I/        (  304): 'usb' is online
I/InputDispatcher(  966): Application is not responding: AppWindowToken{447e94b0
 token=Token{44808ad0 ActivityRecord{44bc8ea0 u0 com.android.systemui/.recent.Re
centsActivity t269}}} - Window{44fdfe90 u0 com.embarcadero.Project1/com.embarcad
ero.firemonkey.FMXNativeActivity}.  It has been 5007.3ms since event, 5005.6ms s
ince wait started.  Reason: Waiting because the focused window has not finished
processing the input events that were previously delivered to it.
I/WindowManager(  966): Input event dispatching timed out sending to com.embarca
dero.Project1/com.embarcadero.firemonkey.FMXNativeActivity.  Reason: Waiting bec
ause the focused window has not finished processing the input events that were p
reviously delivered to it.
W/InputDispatcher(  966): Asynchronous input event injection timed out.
I/Process (  966): Sending signal. PID: 3838 SIG: 3
I/dalvikvm( 3838): threadid=3: reacting to signal 3
I/        (  304): 'usb' is online
I/dalvikvm( 3838): Wrote stack traces to '/data/anr/traces.txt'
I/Process (  966): Sending signal. PID: 966 SIG: 3
I/dalvikvm(  966): threadid=3: reacting to signal 3
D/Ulp_jni (  966): Location CB invoked
I/Process (  966): Sending signal. PID: 10458 SIG: 3
I/dalvikvm(10458): threadid=3: reacting to signal 3
I/dalvikvm(  966): Wrote stack traces to '/data/anr/traces.txt'
I/Process (  966): Sending signal. PID: 1553 SIG: 3
I/dalvikvm( 1553): threadid=3: reacting to signal 3
I/dalvikvm( 1553): Wrote stack traces to '/data/anr/traces.txt'
I/Process (  966): Sending signal. PID: 1540 SIG: 3
I/dalvikvm( 1540): threadid=3: reacting to signal 3
I/dalvikvm( 1540): Wrote stack traces to '/data/anr/traces.txt'
I/Process (  966): Sending signal. PID: 1525 SIG: 3
I/dalvikvm( 1525): threadid=3: reacting to signal 3
I/dalvikvm(10458): Wrote stack traces to '/data/anr/traces.txt'
I/Process (  966): Sending signal. PID: 1512 SIG: 3
I/dalvikvm( 1512): threadid=3: reacting to signal 3
I/dalvikvm( 1525): Wrote stack traces to '/data/anr/traces.txt'
I/Process (  966): Sending signal. PID: 1499 SIG: 3
I/dalvikvm( 1499): threadid=3: reacting to signal 3
I/dalvikvm( 1512): Wrote stack traces to '/data/anr/traces.txt'
I/Process (  966): Sending signal. PID: 1274 SIG: 3
I/dalvikvm( 1274): threadid=3: reacting to signal 3
I/dalvikvm( 1499): Wrote stack traces to '/data/anr/traces.txt'
I/dalvikvm( 1274): Wrote stack traces to '/data/anr/traces.txt'
I/        (  304): 'usb' is online
I/        (  304): 'usb' is online
D/StatusBar.NetworkController( 1274): refreshViews: Data not connected!! Set no
data type icon / Roaming
D/dalvikvm(  966): GC_CONCURRENT freed 3782K, 19% free 65487K/80412K, paused 3ms
+11ms, total 130ms
D/dalvikvm(  966): WAIT_FOR_CONCURRENT_GC blocked 97ms
D/dalvikvm(  966): WAIT_FOR_CONCURRENT_GC blocked 113ms
D/dalvikvm(  966): GC_EXPLICIT freed 701K, 19% free 65613K/80412K, paused 3ms+9m
s, total 123ms
EN

Stack Overflow用户

发布于 2014-11-03 19:16:24

日志指示应用程序在几秒钟(> 5秒)内不再响应:

I/InputDispatcher( 966):应用程序没有响应:AppWindowToken{447e94b0 token=Token{44808ad0 token=Token{44b8ad0 ActivityRecord{44bc8ea0 u0 com.android.systemui/.recent.Recent.Activity t269}}-窗口{44fdfe90 u0 ActivityRecord自从事件发生以来,已经是5007.3ms,5005.6ms的ince等待开始了。原因:等待是因为焦点窗口尚未完成以前交付给它的输入事件的处理,

然后

W/InputDispatcher( 966):异步输入事件注入超时

因此,在成功执行了所需的操作之后,应用程序似乎停止了对输入的响应。

应用程序是否使用线程(可能是间接的,在Indy组件中)而不正确地终止和释放它们?

您能否将应用程序降到显示错误的最小值?

票数 0
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26716529

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档