Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/192.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android应用程序在成功执行所有所需操作后崩溃_Android_Delphi_Firemonkey - Fatal编程技术网

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

Android应用程序在成功执行所有所需操作后崩溃,android,delphi,firemonkey,Android,Delphi,Firemonkey,我正在用RAD Studio XE7开发一个Android应用程序。在应用程序因seg-fault11崩溃之前,一切都进展顺利。我追溯到最后;执行系统内存释放的过程。 在系统中,清除程序在寄存器r1为0的ldr.w r1[r1,-60]处停止 硬件:索尼Xperia Z2平板电脑SGP511 安卓:4.4.2 内核:3.4.0-perf-g46a79a0 它有霓虹灯和ArmV7 编译并作为.exe运行是完美的 我使用运行时创建的Indy TCPComponents。也许这会引起一些问题 如果缺少

我正在用RAD Studio XE7开发一个Android应用程序。在应用程序因seg-fault11崩溃之前,一切都进展顺利。我追溯到最后;执行系统内存释放的过程。 在系统中,清除程序在寄存器r1为0的ldr.w r1[r1,-60]处停止

硬件:索尼Xperia Z2平板电脑SGP511 安卓:4.4.2 内核:3.4.0-perf-g46a79a0 它有霓虹灯和ArmV7


编译并作为.exe运行是完美的

我使用运行时创建的Indy TCPComponents。也许这会引起一些问题

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

编辑:添加了Logcat输出

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

日志表明应用程序在超过5秒的时间内不再响应:

I/InputDispatcher 966:应用程序未响应: AppWindowToken{447e94b0 token=标记{44808ad0 ActivityRecord{44bc8ea0 u0 com.android.systemui/.recent.RecentsActivity t269}- 窗口{44fdfe90 u0 com.embarcadero.Project1/com.embarcadero.firemankey.FMXNativeActivity}。自事件发生以来已持续5007.3毫秒, 等待开始后5005.6ms。原因:正在等待,因为聚焦窗口尚未完成对已被激活的输入事件的处理 以前交给它的

然后

W/InputDispatcher 966:异步输入事件注入已计时 出去

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

应用程序是否在Indy组件中间接使用线程,而没有正确终止和释放线程


您能否将显示错误的应用程序减少到最低程度?

编译并作为.exe运行是完美的。你是说,apk,对吗?发布一些崩溃日志。此外,如果可能,请尝试其他硬件。索尼Xperia设备有一些已知的网络硬件问题。不,我是说.exe。我只是想指出,它在Windows下运行得完美无缺。所以我明白了。抱歉,RAD Studio XE7上没有经验。但是如果你发布了安卓系统上的崩溃日志,你可以为你解释它们。谢谢你的回答。我应该更多地遵循最小错误生成代码的概念。这是销毁本地生成的indy组件,封装在我自己的类中。我给我的班级打了电话。