Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
343 views
in Technique[技术] by (71.8m points)

react native - Detox and Apollo v3 crash

Description

We recently upgraded from Apollo v2 to v3 in our React Native app. Ever since our Detox tests have been failing on Bitrise CI but they work fine locally. We get this odd crash report when we run them on Bitrise CI.

I can run old code and it passes fine but any new code using Apollo v3 fails.

Note: We have some websockets / subscriptions that might be the cause of this. Seems like it doesn't release the lock here: willReleaseLock.

Logs

detox[24921] INFO:  Group message notification tests: should log in
detox[24921] ERROR: [Detox.js/APP_CRASH] App crashed in test 'Group message notification tests should log in', here are the crash details: 
Signal 5 was raised
(
    0   Detox                               0x000000010a612bd5 __DTXHandleSignal + 59
    1   libsystem_platform.dylib            0x00007fff5e7305fd _sigtramp + 29
    2   ???                                 0x0000000113e51a60 0x0 + 4628748896
    3   JavaScriptCore                      0x00007fff316bd2c6 JSC::JSLock::willReleaseLock() + 246
    4   JavaScriptCore                      0x00007fff316bd174 JSC::JSLock::unlock(long) + 68
    5   JavaScriptCore                      0x00007fff316bd461 JSC::JSLock::DropAllLocks::DropAllLocks(JSC::VM*) + 257
    6   JavaScriptCore                      0x00007fff30d37687 JSC::JSCallbackObject<JSC::JSNonFinalObject>::call(JSC::JSGlobalObject*, JSC::CallFrame*) + 599
    7   JavaScriptCore                      0x00007fff313fb9e1 JSC::handleHostCall(JSC::JSGlobalObject*, JSC::CallFrame*, JSC::JSValue, JSC::CallLinkInfo*) + 353
    8   JavaScriptCore                      0x00007fff313fb34f operationLinkCall + 127
    9   ???                                 0x000027b243202d67 0x0 + 43646583844199
    10  ???                                 0x000027b24339b6e5 0x0 + 43646585517797
    11  ???                                 0x000027b2433987c4 0x0 + 43646585505732
    12  ???                                 0x000027b2436c021c 0x0 + 43646588813852
    13  ???                                 0x000027b243658b6e 0x0 + 43646588390254
    14  JavaScriptCore                      0x00007fff30cdaf09 llint_entry + 104453

Versions

    "detox": "^17.3.6",
    "react-native": "0.63.3",
    "@apollo/client": "^3.2.9",

enter image description here

question from:https://stackoverflow.com/questions/65910413/detox-and-apollo-v3-crash

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...