Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(P1 BUG)xcode8.3 monkey存在几率性崩溃 #7

Open
hujiachun opened this issue Sep 11, 2017 · 8 comments
Open

(P1 BUG)xcode8.3 monkey存在几率性崩溃 #7

hujiachun opened this issue Sep 11, 2017 · 8 comments

Comments

@hujiachun
Copy link

t =  1606.79s             Assertion Failure: MonkeyXCTest.swift:47: Failed to get snapshot within 15.0s

2017-09-11 14:20:27.249872+0800 XCTRunner[485:38861] *** Terminating app due to uncaught exception '_XCTestCaseInterruptionException', reason: 'Interrupting test'
*** First throw call stack:
(0x1835d6fe0 0x182038538 0x1835d6f28 0x1001df1f0 0x1001f57c0 0x10021b69c 0x1001e5d2c 0x10021b484 0x10021a748 0x100218214 0x1001e5d2c 0x100218174 0x106e5c8c0 0x106e880c0 0x106e8744c 0x106e86d20 0x106e4e8a8 0x18249a43c 0x18248e9a0 0x18249f7a8 0x18248e9a0 0x1824935e8 0x1835850c8 0x183582ce4 0x1834b2da4 0x183fcddb4 0x184022704 0x106e649e4 0x106e92e60 0x106e92f6c 0x1835dce80 0x1834d22c4 0x1001e0a30 0x100224aac 0x1001e067c 0x10021bdac 0x1001e0430 0x1001e0d80 0x1001ddf44 0x1001ddb64 0x1001ddd54 0x1001ddf44 0x1001ddb64 0x1001ddd54 0x1001ddf44 0x1001ddb64 0x1001ddd54 0x100229a14 0x1001ec8dc 0x100229894 0x1001c8f70 0x10021f6f8 0x18358530c 0x183584b28 0x183582998 0x1834b2da4 0x184f1d074 0x18976dc9c 0x100034474 0x1824c159c)
libc++abi.dylib: terminating with uncaught exception of type _XCTestCaseInterruptionException
(lldb)

@zhangzhao4444
Copy link
Owner

麻烦描述下现象,有无跳出app?

@kekexiaoxiami
Copy link

我这里也会出现这个问题,其实是我自己本地写了一个崩溃,在发生崩溃的时候就出现了 Terminating app due to uncaught exception '_XCTestCaseInterruptionException', reason: 'Interrupting test'这个错误提示

@zhangzhao4444
Copy link
Owner

@kekexiaoxiami 你这个是正常的,待测app crash时会生成dump 然后xcode 就会认为run case 失败了就 报错误提示。
@hujiachun 问题不一样,他那个assertion MonkeyXCTest.swift:47: 是monkey crash了,当然xcode也会认为run失败,打印log类似的。 如果是发生在切回app 则有可能是个已知的缺陷。原因是app退的太慢了,退出检测已经完成而开始接下来的job,然后此时恰恰app退出了,application不存在所以crash

@kekexiaoxiami
Copy link

@zhangzhao4444 那这种情况下直接就Test Failed了,只能重新启动xcodebbuild重新进行test,有没有好一点的方式可以ignore crash能够继续跑monkey,直到手动或者点击次数足够之后将其停掉呢?

@zhangzhao4444
Copy link
Owner

不对。。我记错了crash完app退出,退出检测到的话还会拉活然后继续跑的,论坛里zwdlp520 是你吗? crash完的log 我看了,t = 42.96s napshot accessibility hierarchy for com.xxx 本质上也是同一个缺陷引起的

@kekexiaoxiami
Copy link

@zhangzhao4444 论坛里zwdlp520 是我,那原因就可能是一样的,因为我也遇到了Failed to get snapshot within 15.0s的问题

@hujiachun
Copy link
Author

@zhangzhao4444 没有跳出App, 报错就停止发送命令了

@zhangzhao4444
Copy link
Owner

@kekexiaoxiami @hujiachun 可以升到xcode9试试新方法 看还会崩溃吗

@zhangzhao4444 zhangzhao4444 changed the title 执行一段时间报错 xcode8.3 monkey存在几率性崩溃 Nov 24, 2017
@zhangzhao4444 zhangzhao4444 changed the title xcode8.3 monkey存在几率性崩溃 (P1)xcode8.3 monkey存在几率性崩溃 Nov 24, 2017
@zhangzhao4444 zhangzhao4444 changed the title (P1)xcode8.3 monkey存在几率性崩溃 (P1 BUG)xcode8.3 monkey存在几率性崩溃 Nov 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants