Crash due to HttpParser.readHttpRequest ?
Hi everyone
I'm currently investigating a crash that happens randomly.
My app uses Swifter to receive photos / videos before restoring them via the system API. I have a crash log, but this is not very useful. Most of the lines are "hidden".
I don't really have experience reading these logs, but if I understood correctly, the crash would come from Swifter?
Would anyone have had this same problem? Or have a idea?
Sorry for my English and thanks in advance for the help
My crash log
Power Source: 0 samples on Battery, 101 samples on AC 99 _pthread_wqthread + 211 (libsystem_pthread.dylib + 46440) [0x18e5b0568] 99 _dispatch_worker_thread2 + 123 (libdispatch.dylib + 80104) [0x18e50b8e8] 67 _dispatch_root_queue_drain + 687 (libdispatch.dylib + 78424) [0x18e50b258] 67 _dispatch_client_callout + 15 (libdispatch.dylib + 397952) [0x18e559280] 67 _dispatch_call_block_and_release + 23 (libdispatch.dylib + 393880) [0x18e558298] 67 hidden#2043 (_hidden#528:0 in Swifter + 134900) [0x105298ef4] 67 hidden#2042 (_hidden#2162:89 in Swifter + 134604) [0x105298dcc] 34 hidden#1912 (_hidden#2162:124 in Swifter + 128564) [0x105297634] 34 HttpParser.readHttpRequest (_hidden#1210:33) (_hidden#1210:33 in Swifter + 56004) [0x105285ac4] 34 hidden#1142 (_hidden#1210:88 in Swifter + 57820) [0x1052861dc] 34 CFWriteStreamWrite + 343 (CoreFoundation + 734876) [0x18e83269c] 34 fileWrite + 23 (CoreFoundation + 347452) [0x18e7d3d3c] 34 write + 8 (libsystem_kernel.dylib + 169724) [0x18e69f6fc] 33 hidden#1912 (_hidden#2162:128 in Swifter + 129400) [0x105297978] 33 hidden#2518 (_hidden#2615:208 in XXX + 118676) [0x104eacf94] 33 HttpRequest.parseMultiPartFormData (_hidden#1401:160) (_hidden#1401:160 in Swifter + 74640) [0x10528a390] 33 hidden#1326 (_hidden#1401:169 in Swifter + 75364) [0x10528a664] 33 hidden#1327 (_hidden#1401:194 in Swifter + 77516) [0x10528aecc] 33 hidden#1328 (_hidden#1401:259 in Swifter + 79656) [0x10528b728] 33 CFWriteStreamWrite + 343 (CoreFoundation + 734876) [0x18e83269c] 33 fileWrite + 23 (CoreFoundation + 347452) [0x18e7d3d3c] 33 write + 8 (libsystem_kernel.dylib + 169724) [0x18e69f6fc] 32 _dispatch_root_queue_drain + 375 (libdispatch.dylib + 78112) [0x18e50b120] 32 _dispatch_async_redirect_invoke + 595 (libdispatch.dylib + 23732) [0x18e4fdcb4] 32 _dispatch_continuation_pop$VARIANT$mp + 411 (libdispatch.dylib + 25968) [0x18e4fe570] 32 _dispatch_client_callout + 15 (libdispatch.dylib + 397952) [0x18e559280] 32 _dispatch_call_block_and_release + 23 (libdispatch.dylib + 393880) [0x18e558298] 32 hidden#5 (_hidden#392:0 in XXX + 258408) [0x104ecf168] 32 hidden#2549 (_hidden#392:0 in XXX + 128404) [0x104eaf594] 32 hidden#2520 (_hidden#2615:228 in XXX + 121992) [0x104eadc88] 32 HttpRequest.MultiPart.file.getter (_hidden#1401:0 in Swifter + 71588) [0x1052897a4] 32 CFWriteStreamWrite + 343 (CoreFoundation + 734876) [0x18e83269c] 32 fileWrite + 23 (CoreFoundation + 347452) [0x18e7d3d3c] 32 write + 8 (libsystem_kernel.dylib + 169724) [0x18e69f6fc] 2 start + 3 (libdyld.dylib + 5572) [0x18e6a75c4] 2 main (_hidden#390:14 in XXX + 31088) [0x104e97970] 2 UIApplicationMain + 163 (UIKitCore + 11633988) [0x192fd9544] 2 -[UIApplication _run] + 1051 (UIKitCore + 11612016) [0x192fd3f70] 2 GSEventRunModal + 159 (GraphicsServices + 13720) [0x19a533598] 2 CFRunLoopRunSpecific + 571 (CoreFoundation + 601564) [0x18e811ddc] 2 __CFRunLoopRun + 2479 (CoreFoundation + 605380) [0x18e812cc4] 2 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 11 (CoreFoundation + 628748) [0x18e81880c] 2 _dispatch_main_queue_callback_4CF$VARIANT$mp + 895 (libdispatch.dylib + 66112) [0x18e508240] 2 _dispatch_client_callout + 15 (libdispatch.dylib + 397952) [0x18e559280] 2 _dispatch_call_block_and_release + 23 (libdispatch.dylib + 393880) [0x18e558298] 2 hidden#5 (_hidden#392:0 in XXX + 258408) [0x104ecf168] 2 hidden#4022 (_hidden#392:0 in XXX + 228508) [0x104ec7c9c] 2 hidden#2536 (_hidden#2615:306 in XXX + 126956) [0x104eaefec] 2 autoreleasepool<A> + 55 (libswiftObjectiveC.dylib + 8000) [0x1ca3e3f40] 2 hidden#2539 (_hidden#392:0 in XXX + 127160) [0x104eaf0b8] 2 hidden#2529 (_hidden#2615:313 in XXX + 125592) [0x104eaea98] 2 _NSWriteDataToFileWithExtendedAttributes + 559 (Foundation + 1221712) [0x18ecc9450] 2 -[_NSDispatchData enumerateByteRangesUsingBlock:] + 83 (Foundation + 381228) [0x18ebfc12c] 2 __49-[_NSDispatchData enumerateByteRangesUsingBlock:]_block_invoke + 59 (Foundation + 2256676) [0x18edc5f24] 2 ___NSWriteDataToFileWithExtendedAttributes_block_invoke + 75 (Foundation + 1222876) [0x18ecc98dc] 2 write + 8 (libsystem_kernel.dylib + 169724) [0x18e69f6fc] 2 <Effective Thread QoS User Interactive, Requested Thread QoS User Interactive>
Hey, @xNarCiik Thanks for reporting this. Unfortunately, the stack trace is not very helpful. Are you able to reproduce this issue in a sample project?
Those _hidden lines you're experiencing means the Crash Report Tool you're using couldn't link the *.dcsymbols with the dSYM correctly. If you're using fastlane and gym to archive your app, fastlane takes care of this using dwarfdump at the end of the archive process.