gpt4 book ai didi

当内置 MonkeyTalk 最小化应用程序时,iOS 应用程序崩溃

转载 作者:行者123 更新时间:2023-12-01 23:15:14 26 4
gpt4 key购买 nike

我正在使用 Monkey Talk 版本 2.0.3.a

我已将 MonkeyTalk 集成到我的 iPhone 应用程序中,在设备和模拟器上一切都按预期运行良好。

但我发现应用程序在最小化或按下主页按钮时崩溃(即每当应用程序发送到后台时)。

我有另一个没有 MonkeyTalk 的相同应用程序版本,它没有集成 MonkeyTalk 并且不会发生这种崩溃,因此合并 MonkeyTalk 会导致它崩溃。

当我通过 Xcode 调试器和日志记录运行它时,我可以看到当应用程序发送到后台时 MonkeyTalk 中的某些内容出现故障(它只显示出现故障的汇编代码)。

如果有人对正在发生的事情或为什么会发生这种情况有任何见解,我将不胜感激!

Stack Trace :

Incident Identifier: CA1FB909-46AC-45AB-9DFE-62F7D7A60B30
CrashReporter Key: 29e221ff825afca768fe1cba2cf6aea7ac922060
Hardware Model: iPhone5,2
Process: AppName MonkeyTalkcopy [5269]
Path: /var/mobile/Applications/4430DBD0-10DA-4F61-B20D-9424C6F760AD/AppName MonkeyTalkcopy.app/AppName MonkeyTalkcopy
Identifier: se.appName.test
Version: 1.9.9 (1.9.9)
Code Type: ARM (Native)
Parent Process: launchd [1]

Date/Time: 2014-04-29 11:49:13.872 +0530
OS Version: iOS 7.1 (11D167)
Report Version: 104

Exception Type: 00000020
Exception Codes: 0x000000008badf00d
Highlighted Thread: 0

Application Specific Information:
se.appName.test failed to resume in time

Elapsed total CPU time (seconds): 13.510 (user 13.510, system 0.000), 56% CPU
Elapsed application CPU time (seconds): 6.379, 27% CPU

Thread 0:
0 libsystem_platform.dylib 0x3a7636f8 _sigtramp + 0
1 ??? 0x00356a7c 0 + 3500668
2 AppName MonkeyTalkcopy 0x0011b260 -[UIApplication(MTReady) mtApplicationDidEnterBackground:] (UIApplication+MTReady.m:95)
3 UIKit 0x3226950c -[UIApplication _handleApplicationSuspend:eventInfo:] + 876
4 UIKit 0x321eb22e -[UIApplication handleEvent:withNewEvent:] + 886
5 UIKit 0x321eadf4 -[UIApplication sendEvent:] + 68
6 AppName MonkeyTalkcopy 0x0011b3b8 -[UIApplication(MTReady) mtSendEvent:] (UIApplication+MTReady.m:108)
7 UIKit 0x3224f400 _UIApplicationHandleEvent + 612
8 GraphicsServices 0x34858b52 _PurpleEventCallback + 606
9 GraphicsServices 0x3485873a PurpleEventCallback + 30
10 CoreFoundation 0x2f98183c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
11 CoreFoundation 0x2f9817d6 __CFRunLoopDoSource1 + 342
12 CoreFoundation 0x2f97ffa2 __CFRunLoopRun + 1402
13 CoreFoundation 0x2f8ea7a4 CFRunLoopRunSpecific + 520
14 CoreFoundation 0x2f8ea586 CFRunLoopRunInMode + 102
15 GraphicsServices 0x348576ce GSEventRunModal + 134
16 UIKit 0x3224988c UIApplicationMain + 1132
17 AppName MonkeyTalkcopy 0x0000dd5a main (main.m:16)
18 AppName MonkeyTalkcopy 0x0000d164 start + 36

Thread 1:
0 libsystem_kernel.dylib 0x3a6ed804 kevent64 + 24
1 libdispatch.dylib 0x3a63c050 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3a6362de _dispatch_mgr_thread + 34

Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x3a6eda50 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3a6ed848 mach_msg + 36
2 CoreFoundation 0x2f98161c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2f97fd3c __CFRunLoopRun + 788
4 CoreFoundation 0x2f8ea7a4 CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2f8ea586 CFRunLoopRunInMode + 102
6 WebCore 0x37c1bee0 RunWebThread(void*) + 416
7 libsystem_pthread.dylib 0x3a767956 _pthread_body + 138
8 libsystem_pthread.dylib 0x3a7678c6 _pthread_start + 98
9 libsystem_pthread.dylib 0x3a765ae4 thread_start + 4

Thread 3:
0 libsystem_kernel.dylib 0x3a700c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3a765c1e _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3a765ad8 start_wqthread + 4

最佳答案

通过升级到最新版本的 MonkeyTalk v2.0.4,问题已解决

https://www.cloudmonkeymobile.com/monkeytalk-documentation/whats-new

Bug Fixes

iOS agent:
Crash when application is sent into background

在新的 MonkeyTalk 版本 V2.0.4 中解决了最小化或按 Home 按钮(应用程序发送到后台)时应用程序崩溃的问题。

But now there is one more issue App crashes in touch event when recording or executing in device/Simulator

In iphone device/simulator when I try to record an action in my app with a touch event it crashes. Also when I try to use a recorded script while executing touch event it make the app to crash. Below is my crash report.

Incident Identifier: 5F4C1528-D282-41BE-95B4-15F059CC37BE
CrashReporter Key: 29e221ff825afca768fe1cba2cf6aea7ac922060
Hardware Model: iPhone5,2
Process: App copy [5567]
Path: /var/mobile/Applications/E7177F26-8A2C-4B1D-87FD-3D99A4A7D1DD/APP copy.app/APP copy
Identifier: se.AppName.timereport
Version: 2.0.0 (2.0.0)
Code Type: ARM (Native)
Parent Process: launchd [1]

Date/Time: 2014-04-29 17:26:12.393 +0530
OS Version: iOS 7.1 (11D167)
Report Version: 104

Exception Type: 00000020
Exception Codes: 0x000000008badf00d
Highlighted Thread: 0

Application Specific Information: se.AppName.timereport failed to exit in time

Elapsed total CPU time (seconds): 7.690 (user 7.690, system 0.000), 61% CPU
Elapsed application CPU time (seconds): 3.366, 27% CPU

Thread 0:
0 libsystem_platform.dylib 0x3a7636f8 _sigtramp + 0
1 APP copy 0x0022ffd2 -[UIView(MTReady) propertyName:parent:] (UIView+MTReady.m:643)
2 APP copy 0x00230144 -[UIView(MTReady) iVarName] (UIView+MTReady.m:660)
3 APP copy 0x0022f822 -[UIView(MTReady) rawMonkeyIDCandidates] (UIView+MTReady.m:578)
4 APP copy 0x00230ac2 -[UIView(MTReady) baseMonkeyID] (UIView+MTReady.m:755)
5 APP copy 0x0022fb3c -[UIView(MTReady) monkeyID] (UIView+MTReady.m:609)
6 APP copy 0x0022bf24 -[UIView(MTReady) handleMonkeyTouchEvent:withEvent:] (UIView+MTReady.m:220)
7 APP copy 0x0021a608 -[MonkeyTalk handleEvent:] (MonkeyTalk.m:609)
8 APP copy 0x0022965e -[UIApplication(MTReady) mtSendEvent:] (UIApplication+MTReady.m:100)
9 UIKit 0x321e953c _UIApplicationHandleEventQueue + 7116
10 CoreFoundation 0x2f981fe4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
11 CoreFoundation 0x2f9814aa __CFRunLoopDoSources0 + 202
12 CoreFoundation 0x2f97fc9a __CFRunLoopRun + 626
13 CoreFoundation 0x2f8ea7a4 CFRunLoopRunSpecific + 520
14 CoreFoundation 0x2f8ea586 CFRunLoopRunInMode + 102
15 GraphicsServices 0x348576ce GSEventRunModal + 134
16 UIKit 0x3224988c UIApplicationMain + 1132
17 APP copy 0x0004dc64 main (main.m:16)
18 App copy 0x0004c87c start + 36

Any help to fix this will much appericiated

关于当内置 MonkeyTalk 最小化应用程序时,iOS 应用程序崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23344374/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com