mozilla-mobile / firefox-ios

Firefox for iOS
Mozilla Public License 2.0
12.21k stars 2.93k forks source link

Firefox crashes intermittently on iPhone and iPad #11233

Closed ericswpark closed 2 years ago

ericswpark commented 2 years ago

Steps to reproduce

Start typing into the address bar

Expected behavior

Firefox shouldn’t crash

Actual behavior

On some occasions, Firefox crashes. I’m not sure what the trigger is though. Firefox crashes about 2-3 seconds into me typing something into the address bar. When I relaunch the app and type the exact same query out in full it doesn’t crash, until some time elapses and I come back to Firefox and try and go somewhere else. Then the crash reoccurs.

Device & build information

Also they are the “Client-*.ips” files, right? I haven’t found any other Firefox logs in the list.

┆Issue is synchronized with this Jira Task

SimonBasca commented 2 years ago

@ericswpark the crash logs are the “Client-*.ips” files and they can be attached here. Linking other reports of this crash https://github.com/mozilla-mobile/firefox-ios/issues/11077

ericswpark commented 2 years ago

Great, attaching some of the crash logs on iPhone from the past couple of days. For some reason GitHub won't accept .ips files, so I've zipped them up into one archive.

iphone-crash-logs.zip

It'd be great if someone could figure out what's going on here as I'm getting like ten crashes every day from my iPhone and iPad. Makes Firefox unusable, which is sad because I like Firefox on all the other platforms.

EDIT: also crash logs from iPad:

ipad-crash-logs.zip

lmarceau commented 2 years ago

Looking at the logs this really seems to be https://github.com/mozilla-mobile/firefox-ios/issues/11193 Hopefully this will be fixed in v102.1. @ericswpark this release will be out soon, it would help us a lot if you check once upgraded if you still have the same issue!

lmarceau commented 2 years ago

@ericswpark 102.1 is available on the App Store. If you are able to download it (by going to the Firefox for iOS App Store page directly and clicking on "Update") and test it it would be great! Let us know if it solved this issue 🙏

ericswpark commented 2 years ago

I updated to 102.1 and initially thought the bug was fixed. It's a good thing I kept this issue open because it happened again.

It really is sporadic, but I'm starting to find specific conditions where Firefox will crash. The app must've been open in the background for a long period of time (not sure how long, but even about an hour or two was enough to trigger). Once you get into the app and start typing into the address bar then it will crash. This part is random, too, but sometimes it will crash after you type a single keystroke, sometimes it will crash halfway through your query sentence, and sometimes it will crash after you press enter and it begins to load, about two or three seconds in.

Anyway, logs attached below:

click for full log ``` {"app_name":"Client","timestamp":"2022-07-12 20:23:31.00 +0900","app_version":"102.1","slice_uuid":"1cb1a231-6424-3704-854a-386f5aaee842","adam_id":"989804926","build_version":"12709","platform":2,"bundleID":"org.mozilla.ios.Firefox","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"iPhone OS 15.5 (19F77)","incident_id":"D9E2C0B9-6E97-408F-B3BB-C35C6D35A83D","name":"Client"} { "uptime" : 100000, "procLaunch" : "2022-07-12 17:47:54.8784 +0900", "procRole" : "Foreground", "version" : 2, "userID" : 501, "deployVersion" : 210, "modelCode" : "iPhone11,6", "procStartAbsTime" : 2208814755800, "coalitionID" : 1036, "osVersion" : { "isEmbedded" : true, "train" : "iPhone OS 15.5", "releaseType" : "User", "build" : "19F77" }, "captureTime" : "2022-07-12 20:23:30.5691 +0900", "incident" : "D9E2C0B9-6E97-408F-B3BB-C35C6D35A83D", "bug_type" : "309", "pid" : 8829, "procExitAbsTime" : 2412040819816, "cpuType" : "ARM-64", "procName" : "Client", "procPath" : "\/private\/var\/containers\/Bundle\/Application\/DA5A7AD0-2491-4084-B843-194A608C0C29\/Client.app\/Client", "bundleInfo" : {"CFBundleShortVersionString":"102.1","CFBundleVersion":"12709","CFBundleIdentifier":"org.mozilla.ios.Firefox","DTAppStoreToolsBuild":"13F100"}, "storeInfo" : {"storeCohortMetadata":"10|date=1656117000000&sf=143466&pgtp=Search&pgid=ee365cf0-ed19-4cd5-bed1-6e43f77e341a&prpg=Genre_179183&ctxt=Search&issrch=1&imptyp=card&kind=iosSoftware&itpltyp=PI3&lngid=2","itemID":"989804926","deviceIdentifierForVendor":"518D8000-B333-4035-AFF8-84E4D5C6FFE0","softwareVersionExternalIdentifier":"850660999","thirdParty":true,"applicationVariant":"1:iPhone11,6:15"}, "parentProc" : "launchd", "parentPid" : 1, "coalitionName" : "org.mozilla.ios.Firefox", "crashReporterKey" : "63ece537ca3192c2c015d500687b785399bf48d2", "basebandVersion" : "4.04.02", "isCorpse" : 1, "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"}, "ktriageinfo" : "VM - Compressor failed a blocking pager_get\nVM - Compressor failed a blocking pager_get\nVM - Compressor failed a blocking pager_get\nVM - Compressor failed a blocking pager_get\n", "asi" : {"libsystem_c.dylib":["abort() called"]}, "lastExceptionBacktrace" : [{"imageOffset":627336,"symbol":"__exceptionPreprocess","symbolLocation":220,"imageIndex":6},{"imageOffset":91972,"symbol":"objc_exception_throw","symbolLocation":60,"imageIndex":4},{"imageOffset":1254240,"symbol":"_userInfoForFileAndLine","symbolLocation":0,"imageIndex":11},{"imageOffset":8633716,"symbol":"-[_UICollectionCompositionalLayoutSolver _queryClientForSectionDefinitionForSectionIndex:]","symbolLocation":664,"imageIndex":8},{"imageOffset":8634012,"symbol":"-[_UICollectionCompositionalLayoutSolver _solveRetainingPreferredSizes:]","symbolLocation":236,"imageIndex":8},{"imageOffset":2990468,"symbol":"-[_UICollectionCompositionalLayoutSolver initWithContainer:traitCollection:layoutAxis:dataSourceSnapshot:options:sectionProvider:]","symbolLocation":476,"imageIndex":8},{"imageOffset":5531284,"symbol":"-[UICollectionViewCompositionalLayout _fullResolve]","symbolLocation":1204,"imageIndex":8},{"imageOffset":3407704,"symbol":"-[UICollectionViewCompositionalLayout invalidateLayoutWithContext:]","symbolLocation":572,"imageIndex":8},{"imageOffset":4023168,"symbol":"-[UICollectionViewLayout _invalidateLayoutUsingContext:]","symbolLocation":64,"imageIndex":8},{"imageOffset":3947932,"symbol":"-[UICollectionView _invalidateLayoutIfNecessaryForReload]","symbolLocation":136,"imageIndex":8},{"imageOffset":2378040,"symbol":"-[UICollectionView reloadData]","symbolLocation":1816,"imageIndex":8},{"imageOffset":3595964,"symbol":"FirefoxHomeViewModel.reloadSection(_:with:)","symbolLocation":444,"imageIndex":9},{"imageOffset":2843396,"symbol":"closure #1 in FirefoxHomeViewController.reloadSection(section:)","symbolLocation":172,"imageIndex":9},{"imageOffset":330996,"symbol":"thunk for @escaping @callee_guaranteed () -> ()","symbolLocation":20,"imageIndex":9},{"imageOffset":330996,"symbol":"thunk for @escaping @callee_guaranteed () -> ()","symbolLocation":20,"imageIndex":9},{"imageOffset":7788,"symbol":"_dispatch_call_block_and_release","symbolLocation":32,"imageIndex":5},{"imageOffset":14896,"symbol":"_dispatch_client_callout","symbolLocation":20,"imageIndex":5},{"imageOffset":73544,"symbol":"_dispatch_main_queue_drain","symbolLocation":928,"imageIndex":5},{"imageOffset":72600,"symbol":"_dispatch_main_queue_callback_4CF","symbolLocation":44,"imageIndex":5},{"imageOffset":333824,"symbol":"__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__","symbolLocation":16,"imageIndex":6},{"imageOffset":46852,"symbol":"__CFRunLoopRun","symbolLocation":2532,"imageIndex":6},{"imageOffset":125896,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":6},{"imageOffset":4980,"symbol":"GSEventRunModal","symbolLocation":164,"imageIndex":7},{"imageOffset":5326408,"symbol":"-[UIApplication _run]","symbolLocation":1100,"imageIndex":8},{"imageOffset":2710928,"symbol":"UIApplicationMain","symbolLocation":364,"imageIndex":8},{"imageOffset":36472,"symbol":"main","symbolLocation":260,"imageIndex":9},{"imageOffset":105700,"symbol":"start","symbolLocation":520,"imageIndex":10}], "faultingThread" : 0, "threads" : [{"triggered":true,"id":789576,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":8133697781},{"value":6124741664},{"value":110},{"value":40704},{"value":771828207419037388},{"value":771828211783701324},{"value":512},{"value":11},{"value":11},{"value":7719725727},{"value":8133697819},{"value":0},{"value":328},{"value":4364731776,"symbolLocation":0,"symbol":"_main_thread"},{"value":0},{"value":6},{"value":259},{"value":4364732000,"symbolLocation":224,"symbol":"_main_thread"},{"value":0},{"value":276},{"value":0},{"value":4364732000,"symbolLocation":224,"symbol":"_main_thread"},{"value":10787499072},{"value":15},{"value":50331647}],"flavor":"ARM_THREAD_STATE64","lr":{"value":9613632444},"cpsr":{"value":1073741824},"fp":{"value":6124741520},"sp":{"value":6124741488},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":8649808696,"matchesCrashFrame":1},"far":{"value":9177455056}},"queue":"com.apple.main-thread","frames":[{"imageOffset":31544,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":0},{"imageOffset":29628,"symbol":"pthread_kill","symbolLocation":268,"imageIndex":1},{"imageOffset":132388,"symbol":"abort","symbolLocation":168,"imageIndex":2},{"imageOffset":72572,"symbol":"abort_message","symbolLocation":132,"imageIndex":3},{"imageOffset":6596,"symbol":"demangling_terminate_handler()","symbolLocation":336,"imageIndex":3},{"imageOffset":117864,"symbol":"_objc_terminate()","symbolLocation":144,"imageIndex":4},{"imageOffset":69400,"symbol":"std::__terminate(void (*)())","symbolLocation":20,"imageIndex":3},{"imageOffset":69300,"symbol":"std::terminate()","symbolLocation":64,"imageIndex":3},{"imageOffset":14916,"symbol":"_dispatch_client_callout","symbolLocation":40,"imageIndex":5},{"imageOffset":73544,"symbol":"_dispatch_main_queue_drain","symbolLocation":928,"imageIndex":5},{"imageOffset":72600,"symbol":"_dispatch_main_queue_callback_4CF","symbolLocation":44,"imageIndex":5},{"imageOffset":333824,"symbol":"__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__","symbolLocation":16,"imageIndex":6},{"imageOffset":46852,"symbol":"__CFRunLoopRun","symbolLocation":2532,"imageIndex":6},{"imageOffset":125896,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":6},{"imageOffset":4980,"symbol":"GSEventRunModal","symbolLocation":164,"imageIndex":7},{"imageOffset":5326408,"symbol":"-[UIApplication _run]","symbolLocation":1100,"imageIndex":8},{"imageOffset":2710928,"symbol":"UIApplicationMain","symbolLocation":364,"imageIndex":8},{"imageOffset":36472,"symbol":"main","symbolLocation":260,"imageIndex":9},{"imageOffset":105700,"symbol":"start","symbolLocation":520,"imageIndex":10}]},{"id":789598,"name":"com.apple.uikit.eventfetch-thread","frames":[{"imageOffset":5280,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":6884,"symbol":"mach_msg","symbolLocation":76,"imageIndex":0},{"imageOffset":27952,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":372,"imageIndex":6},{"imageOffset":45500,"symbol":"__CFRunLoopRun","symbolLocation":1180,"imageIndex":6},{"imageOffset":125896,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":6},{"imageOffset":103524,"symbol":"-[NSRunLoop(NSRunLoop) runMode:beforeDate:]","symbolLocation":236,"imageIndex":11},{"imageOffset":372268,"symbol":"-[NSRunLoop(NSRunLoop) runUntilDate:]","symbolLocation":92,"imageIndex":11},{"imageOffset":4777840,"symbol":"-[UIEventFetcher threadMain]","symbolLocation":524,"imageIndex":8},{"imageOffset":431164,"symbol":"__NSThread__start__","symbolLocation":808,"imageIndex":11},{"imageOffset":6572,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":3688,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":789607,"name":"reqwest-internal-sync-runtime","frames":[{"imageOffset":11800,"symbol":"kevent","symbolLocation":8,"imageIndex":0},{"imageOffset":2041744,"symbol":"mio::sys::unix::selector::kqueue::Selector::select::h9bea34ff66fc8d1e","symbolLocation":104,"imageIndex":12},{"imageOffset":4932700,"symbol":"tokio::io::driver::Driver::turn::h0ef5d7e95ba05a52","symbolLocation":148,"imageIndex":12},{"imageOffset":4952816,"symbol":"_$LT$tokio..park..either..Either$LT$A$C$B$GT$$u20$as$u20$tokio..park..Park$GT$::park_timeout::hd9f19b1201b3a7ab","symbolLocation":64,"imageIndex":12},{"imageOffset":4969224,"symbol":"tokio::time::driver::Driver$LT$P$GT$::park_internal::ha8d862edf059c8b9","symbolLocation":340,"imageIndex":12},{"imageOffset":4952644,"symbol":"_$LT$tokio..park..either..Either$LT$A$C$B$GT$$u20$as$u20$tokio..park..Park$GT$::park::h7c6e485685c86a76","symbolLocation":56,"imageIndex":12},{"imageOffset":4897376,"symbol":"tokio::runtime::basic_scheduler::Context::enter::h72eb949311c6b2ae","symbolLocation":84,"imageIndex":12},{"imageOffset":4895672,"symbol":"tokio::runtime::basic_scheduler::Context::park::h82fe6c588e88bcde","symbolLocation":172,"imageIndex":12},{"imageOffset":3643820,"symbol":"tokio::macros::scoped_tls::ScopedKey$LT$T$GT$::set::h431fcbb83c55c0ac","symbolLocation":400,"imageIndex":12},{"imageOffset":3731108,"symbol":"tokio::runtime::basic_scheduler::CoreGuard::enter::h2cf516e2b0fe2fd7","symbolLocation":84,"imageIndex":12},{"imageOffset":3728324,"symbol":"tokio::runtime::basic_scheduler::BasicScheduler::block_on::h412c64bc2f232650","symbolLocation":308,"imageIndex":12},{"imageOffset":4061304,"symbol":"tokio::runtime::Runtime::block_on::h70b080949dc61bf3","symbolLocation":136,"imageIndex":12},{"imageOffset":3888088,"symbol":"std::sys_common::backtrace::__rust_begin_short_backtrace::h6fe692738339bd1a","symbolLocation":592,"imageIndex":12},{"imageOffset":3890480,"symbol":"std::panicking::try::h4d40278bfb362c47","symbolLocation":52,"imageIndex":12},{"imageOffset":3770520,"symbol":"core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h9661a0019dcd079f","symbolLocation":132,"imageIndex":12},{"imageOffset":4521164,"symbol":"std::sys::unix::thread::Thread::new::thread_start::h49ca4bd5bb922d11","symbolLocation":36,"imageIndex":12},{"imageOffset":6572,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":3688,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":790775,"frames":[{"imageOffset":3668,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":791010,"name":"AVAudioSession Notify Thread","frames":[{"imageOffset":5280,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":6884,"symbol":"mach_msg","symbolLocation":76,"imageIndex":0},{"imageOffset":27952,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":372,"imageIndex":6},{"imageOffset":45500,"symbol":"__CFRunLoopRun","symbolLocation":1180,"imageIndex":6},{"imageOffset":125896,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":6},{"imageOffset":28420,"symbol":"CADeprecated::GenericRunLoopThread::Entry(void*)","symbolLocation":164,"imageIndex":13},{"imageOffset":67824,"symbol":"CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*)","symbolLocation":92,"imageIndex":13},{"imageOffset":6572,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":3688,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":791026,"name":"com.apple.NSURLConnectionLoader","frames":[{"imageOffset":5280,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":6884,"symbol":"mach_msg","symbolLocation":76,"imageIndex":0},{"imageOffset":27952,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":372,"imageIndex":6},{"imageOffset":45500,"symbol":"__CFRunLoopRun","symbolLocation":1180,"imageIndex":6},{"imageOffset":125896,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":6},{"imageOffset":2589244,"imageIndex":14},{"imageOffset":431164,"symbol":"__NSThread__start__","symbolLocation":808,"imageIndex":11},{"imageOffset":6572,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":3688,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":792137,"frames":[{"imageOffset":3668,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":792169,"name":"JavaScriptCore libpas scavenger","frames":[{"imageOffset":7972,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":33432,"symbol":"_pthread_cond_wait","symbolLocation":1236,"imageIndex":1},{"imageOffset":950904,"symbol":"scavenger_thread_main","symbolLocation":1232,"imageIndex":15},{"imageOffset":6572,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":3688,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":823846,"frames":[{"imageOffset":3668,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":849604,"frames":[{"imageOffset":3668,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":849605,"frames":[{"imageOffset":3668,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":849606,"frames":[{"imageOffset":3668,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":849607,"frames":[{"imageOffset":3668,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":849653,"name":"tokio-runtime-worker","frames":[{"imageOffset":7972,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":33432,"symbol":"_pthread_cond_wait","symbolLocation":1236,"imageIndex":1},{"imageOffset":4512856,"symbol":"std::sys::unix::condvar::Condvar::wait_timeout::h4f36c101232ac871","symbolLocation":252,"imageIndex":12},{"imageOffset":4928236,"symbol":"std::sync::condvar::Condvar::wait_timeout::h4abc3328e50c0ed6","symbolLocation":84,"imageIndex":12},{"imageOffset":4975184,"symbol":"tokio::runtime::blocking::pool::Inner::run::h2e7f751d97a7bc47","symbolLocation":276,"imageIndex":12},{"imageOffset":4887652,"symbol":"std::sys_common::backtrace::__rust_begin_short_backtrace::h490df8d6a13aebdf","symbolLocation":244,"imageIndex":12},{"imageOffset":4921384,"symbol":"std::panicking::try::h53113f2be9f01f5f","symbolLocation":44,"imageIndex":12},{"imageOffset":4979840,"symbol":"core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h8705f96b586b2526","symbolLocation":132,"imageIndex":12},{"imageOffset":4521164,"symbol":"std::sys::unix::thread::Thread::new::thread_start::h49ca4bd5bb922d11","symbolLocation":36,"imageIndex":12},{"imageOffset":6572,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":1},{"imageOffset":3688,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]}], "usedImages" : [ { "source" : "P", "arch" : "arm64e", "base" : 8649777152, "size" : 221184, "uuid" : "1db00c91-6ad8-3840-8503-0c6fbffa8e0b", "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib", "name" : "libsystem_kernel.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 9613602816, "size" : 49152, "uuid" : "1026e3a4-d3c0-3b0d-a552-f185d6772a29", "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib", "name" : "libsystem_pthread.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 7901818880, "size" : 524288, "uuid" : "9bd1e199-40a3-3e4a-8a78-271281c0cf0d", "path" : "\/usr\/lib\/system\/libsystem_c.dylib", "name" : "libsystem_c.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 8133611520, "size" : 98304, "uuid" : "0f95258e-8769-39b4-b537-9093fd3c3048", "path" : "\/usr\/lib\/libc++abi.dylib", "name" : "libc++abi.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 8132497408, "size" : 249856, "uuid" : "b1fc4376-8314-31da-bfc2-95e703398d4e", "path" : "\/usr\/lib\/libobjc.A.dylib", "name" : "libobjc.A.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 7712542720, "size" : 286720, "uuid" : "355accf4-3917-3730-bc55-ef7003887abe", "path" : "\/usr\/lib\/system\/libdispatch.dylib", "name" : "libdispatch.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 7715700736, "size" : 4546560, "uuid" : "5198fb57-5645-3b34-a49f-f32b52256cf3", "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/CoreFoundation", "name" : "CoreFoundation" }, { "source" : "P", "arch" : "arm64e", "base" : 8186843136, "size" : 36864, "uuid" : "260f066e-c5de-3844-967e-483985448f21", "path" : "\/System\/Library\/PrivateFrameworks\/GraphicsServices.framework\/GraphicsServices", "name" : "GraphicsServices" }, { "source" : "P", "arch" : "arm64e", "base" : 7753949184, "size" : 25804800, "uuid" : "3ed35565-456d-33cb-b554-6c567fa81585", "path" : "\/System\/Library\/PrivateFrameworks\/UIKitCore.framework\/UIKitCore", "name" : "UIKitCore" }, { "source" : "P", "arch" : "arm64", "base" : 4342136832, "size" : 5914624, "uuid" : "1cb1a231-6424-3704-854a-386f5aaee842", "path" : "\/private\/var\/containers\/Bundle\/Application\/DA5A7AD0-2491-4084-B843-194A608C0C29\/Client.app\/Client", "name" : "Client" }, { "source" : "P", "arch" : "arm64e", "base" : 4364288000, "size" : 360448, "uuid" : "7c9c7851-8237-38a7-b1eb-9cd2deb4b746", "path" : "\/usr\/lib\/dyld", "name" : "dyld" }, { "source" : "P", "arch" : "arm64e", "base" : 7740817408, "size" : 3190784, "uuid" : "ac6ad2f3-c7b1-38aa-8588-57036a663180", "path" : "\/System\/Library\/Frameworks\/Foundation.framework\/Foundation", "name" : "Foundation" }, { "source" : "P", "arch" : "arm64", "base" : 4388962304, "size" : 9371648, "uuid" : "14aacc77-f53d-36e8-92fc-bebe6cac2ffa", "path" : "\/private\/var\/containers\/Bundle\/Application\/DA5A7AD0-2491-4084-B843-194A608C0C29\/Client.app\/Frameworks\/RustMozillaAppServices.framework\/RustMozillaAppServices", "name" : "RustMozillaAppServices" }, { "source" : "P", "arch" : "arm64e", "base" : 7873134592, "size" : 176128, "uuid" : "517338a2-8315-3b61-b47f-5cb914d4fcec", "path" : "\/System\/Library\/PrivateFrameworks\/AudioSession.framework\/AudioSession", "name" : "AudioSession" }, { "source" : "P", "arch" : "arm64e", "base" : 7724216320, "size" : 4988928, "uuid" : "7072273c-58d2-3dc2-9e98-a6ed768544d8", "path" : "\/System\/Library\/Frameworks\/CFNetwork.framework\/CFNetwork", "name" : "CFNetwork" }, { "source" : "P", "arch" : "arm64e", "base" : 7902703616, "size" : 21495808, "uuid" : "62eb08d2-3ec0-33a3-9789-1fc94458f203", "path" : "\/System\/Library\/Frameworks\/JavaScriptCore.framework\/JavaScriptCore", "name" : "JavaScriptCore" } ], "sharedCache" : { "base" : 7712210944, "size" : 2561490944, "uuid" : "dcf05a3f-ea3e-3537-9d2c-1d123a87470d" }, "vmSummary" : "ReadOnly portion of Libraries: Total=961.7M resident=0K(0%) swapped_out_or_unallocated=961.7M(100%)\nWritable regions: Total=821.3M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=821.3M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nAccelerate framework 128K 1 \nActivity Tracing 256K 1 \nCG raster data 15.9M 49 \nColorSync 128K 8 \nCoreAnimation 6640K 169 \nFoundation 16K 1 \nImage IO 288K 6 \nKernel Alloc Once 32K 1 \nMALLOC 609.7M 225 \nMALLOC guard page 192K 12 \nSQLite page cache 64K 1 \nSTACK GUARD 224K 14 \nStack 10.9M 15 \nVM_ALLOCATE 10.7M 6 \nWebKit Malloc 192.0M 5 \n__AUTH 5426K 615 \n__AUTH_CONST 29.2M 780 \n__CTF 756 1 \n__DATA 21.0M 784 \n__DATA_CONST 33.0M 796 \n__DATA_DIRTY 3057K 660 \n__FONT_DATA 4K 1 \n__LINKEDIT 216.2M 14 \n__OBJC_CONST 7844K 580 \n__OBJC_RO 92.1M 1 \n__OBJC_RW 3536K 1 \n__TEXT 745.5M 808 \n__UNICODE 592K 1 \ndyld private memory 1392K 19 \nlibnetwork 1664K 24 \nmapped file 452.6M 102 \nshared memory 48K 3 \n=========== ======= ======= \nTOTAL 2.4G 5704 \n", "legacyInfo" : { "threadTriggered" : { "queue" : "com.apple.main-thread" } }, "trialInfo" : { "rollouts" : [ { "rolloutId" : "5fc94383418129005b4e9ae0", "factorPackIds" : { "SIRI_UNDERSTANDING_ASR_HAMMER" : "62c4347f87beda2658c8f0ad" }, "deploymentId" : 240000397 }, { "rolloutId" : "61af99aeda72d16a4beb7756", "factorPackIds" : { "SIRI_DIALOG_ASSETS" : "62b9afba7e9ada388efffaa0" }, "deploymentId" : 240000240 } ], "experiments" : [ { "treatmentId" : "06dd09ac-4929-4c36-8aa5-454eba81318c", "experimentId" : "60cb9b8392f6a873b12a8ba6", "deploymentId" : 400000038 } ] } } ```

@lmarceau it really doesn't seem related to the issue you linked, as the trigger is different. Firefox works as expected from a cold start (like, if I quit it from the app switcher and launch it fresh), but it will crash if I come back to it after leaving it open for an extended period of time and start typing into the address bar.

I don't think it has to do with what I'm typing into the address bar, as after the crash I can cold-start Firefox and write out my original query in full.

Because the app needs to be open for a while to trigger the crash I'm wondering if there's an overflow problem somewhere, or maybe the app isn't properly handling resource allocation/deallocation and iOS is killing it? Wild guess though.

lmarceau commented 2 years ago

Most of the crash logs you previously included refers to UICompositionalLayout being wrong, hence why I thought it could relate to the other issue.

Looking a bit more into the crash logs you linked, I see one interesting that relates to the search view controller:

Last Exception Backtrace:
0   CoreFoundation                         0x18048e288 __exceptionPreprocess + 220
1   libobjc.A.dylib                        0x199188744 objc_exception_throw + 60
2   CoreFoundation                         0x1804e5390 __CFDictionaryCreateGeneric + 0
3   UIKitCore                              0x182bbcb40 -[UITableView _contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:usingPresentationValues:] + 472
4   UIKitCore                              0x182ba13ac -[UITableView _scrollToRowAtIndexPath:atScrollPosition:animated:usingPresentationValues:] + 192
5   UIKitCore                              0x183929314 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:isCellMultiSelect:deselectPrevious:] + 1092
6   UIKitCore                              0x182b94af8 -[UITableView selectRowAtIndexPath:animated:scrollPosition:] + 116
7   Client                                 0x1049564a4 SearchViewController.handleKeyCommands(sender:) + 1564
8   Client                                 0x10495671c @objc SearchViewController.handleKeyCommands(sender:) + 48
9   Client                                 0x104c80490 @objc BrowserViewController.moveURLCompletionKeyCommand(sender:) + 104
10  CoreFoundation                         0x180416b24 __invoking___ + 148
11  CoreFoundation                         0x180434610 -[NSInvocation invoke] + 468
12  UIKitCore                              0x183a74900 -[UIRepeatedAction invoke] + 280
13  UIKitCore                              0x183a74b18 -[UIRepeatedAction _preInvocationTimerFire] + 56
14  UIKitCore                              0x1837d4bc8 -[UIApplication handleKeyCommand:repeatable:beforeKeyEvent:] + 528
15  UIKitCore                              0x1837d54cc -[UIApplication _handleKeyboardPressEvent:] + 1908
16  UIKitCore                              0x1837c919c -[UIApplication pressesBegan:withEvent:] + 412
17  UIKitCore                              0x182a62160 forwardTouchMethod + 344
18  UIKitCore                              0x182a62160 forwardTouchMethod + 344
19  UIKitCore                              0x182a62160 forwardTouchMethod + 344
20  UIKitCore                              0x182a62160 forwardTouchMethod + 344
21  UIKitCore                              0x182a62160 forwardTouchMethod + 344
22  UIKitCore                              0x182a62160 forwardTouchMethod + 344
23  UIKitCore                              0x182a62160 forwardTouchMethod + 344
24  UIKitCore                              0x182a62160 forwardTouchMethod + 344
25  UIKitCore                              0x182a62160 forwardTouchMethod + 344
26  UIKitCore                              0x182a62160 forwardTouchMethod + 344
27  Client                                 0x104c10164 @objc BrowserViewController.pressesBegan(_:with:) + 316
28  UIKitCore                              0x182a62160 forwardTouchMethod + 344
29  UIKitCore                              0x182a62160 forwardTouchMethod + 344
30  UIKitCore                              0x182a62160 forwardTouchMethod + 344
31  UIKitCore                              0x182a62160 forwardTouchMethod + 344
32  UIKitCore                              0x182a62160 forwardTouchMethod + 344
33  UIKitCore                              0x1839f2f90 -[UITextField pressesBegan:withEvent:] + 372
34  UIKitCore                              0x182c6b588 -[UIWindow _sendButtonsForEvent:] + 336
35  UIKitCore                              0x182a114dc -[UIWindow sendEvent:] + 3492
36  UIKitCore                              0x182bbf288 -[UIApplication sendEvent:] + 824
37  UIKitCore                              0x1837d4478 -[UIApplication _handleKeyUIEvent:] + 188
38  UIKitCore                              0x1837e4b98 -[UIResponder _handleKeyUIEvent:] + 84
39  UIKitCore                              0x1837e4b98 -[UIResponder _handleKeyUIEvent:] + 84
40  UIKitCore                              0x1837e4b98 -[UIResponder _handleKeyUIEvent:] + 84
41  UIKitCore                              0x1837e4b98 -[UIResponder _handleKeyUIEvent:] + 84
42  UIKitCore                              0x1837e4b98 -[UIResponder _handleKeyUIEvent:] + 84
43  UIKitCore                              0x1837e4b98 -[UIResponder _handleKeyUIEvent:] + 84
44  UIKitCore                              0x1837e4b98 -[UIResponder _handleKeyUIEvent:] + 84
45  UIKitCore                              0x1837e4b98 -[UIResponder _handleKeyUIEvent:] + 84
46  UIKitCore                              0x1837e4b98 -[UIResponder _handleKeyUIEvent:] + 84
47  UIKitCore                              0x1837e4b98 -[UIResponder _handleKeyUIEvent:] + 84
48  UIKitCore                              0x1837e4b98 -[UIResponder _handleKeyUIEvent:] + 84
49  UIKitCore                              0x1837e4b98 -[UIResponder _handleKeyUIEvent:] + 84
50  UIKitCore                              0x1837e4b98 -[UIResponder _handleKeyUIEvent:] + 84
51  UIKitCore                              0x1837e4b98 -[UIResponder _handleKeyUIEvent:] + 84
52  UIKitCore                              0x1837e4b98 -[UIResponder _handleKeyUIEvent:] + 84
53  UIKitCore                              0x1837d452c -[UIApplication handleKeyUIEvent:] + 84
54  UIKitCore                              0x1837d438c -[UIApplication _handleKeyHIDEvent:usingSyntheticEvent:] + 788
55  UIKitCore                              0x1829e43a0 __dispatchPreprocessedEventFromEventQueue + 4352
56  UIKitCore                              0x1829d9ea8 __processEventQueue + 6616
57  UIKitCore                              0x1829df428 __eventFetcherSourceCallback + 172
58  CoreFoundation                         0x1804b0414 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
59  CoreFoundation                         0x1804c11a0 __CFRunLoopDoSource0 + 208
60  CoreFoundation                         0x1803fa694 __CFRunLoopDoSources0 + 268
61  CoreFoundation                         0x18040005c __CFRunLoopRun + 828
62  CoreFoundation                         0x180413bc8 CFRunLoopRunSpecific + 600
63  GraphicsServices                       0x19c547374 GSEventRunModal + 164
64  UIKitCore                              0x182d83648 -[UIApplication _run] + 1100
65  UIKitCore                              0x182b04d90 UIApplicationMain + 364
66  Client                                 0x104848f20 main + 260
67  dyld                                   0x106025ce4 start + 520

Could be that particular bug you're having? Needs to be investigated.

lmarceau commented 2 years ago

@SimonBasca Do you have an idea of STR for this issue, as you said it seems to relate to https://github.com/mozilla-mobile/firefox-ios/issues/11077 ?

WeTheDylan commented 2 years ago

I’m having the exact same issue, crashes and closes itself randomly, usually within typing the first few characters in the search bar. I have version 102.1

ericswpark commented 2 years ago

The crashes are becoming much more frequent. I get one roughly every five to ten minutes or so. Repro steps are the same: start typing into the address bar. It's getting seriously annoying to use Firefox on iOS when it eats up my query, especially if I can't remember what it was after Firefox takes about five seconds to open back up (blame my goldfish memory).

@lmarceau @SimonBasca do you guys need more logs or is the cause already identified?

SimonBasca commented 2 years ago

@ericswpark thanks for all your involvement. We are still investigating this issue but so far we had no luck in reproducing it. You can attach any the logs if you have, I'm sure they will be helpful. Also if you are able to catch the issue with a screen recording you can send it to sbasca@mozilla.com so I can figure out how to find steps to reproduce.

ericswpark commented 2 years ago

@SimonBasca cool, here's a Google Drive link with all the crash logs and one video recording I made demonstrating the crash on my iPhone. (The crash log for that recording is iphone-xs-max/Client-2022-07-20-225325.ips)

In the video recording you can see the app immediately kicks me back to Springboard as soon as I type the last character of "test 123" (again, completely arbitrary on when it will decide to crash, not dependent on text). And when I open it back up you can see I can type out the query again and Firefox will not crash this time around.

https://drive.google.com/drive/folders/1gcCADHXkjZMhHqRhD6HzQGHDIEI_d24h

Will continuously add as I encounter more crashes.

SimonBasca commented 2 years ago

@ericswpark thanks for all the help. @lmarceau here are my STR for this issue:

  1. Disable "Shortcuts" from Homepage Settings
  2. Leave app in background -> In my case it's happening after leaving the app in background for ~ 30 min - 1h
  3. Open app
  4. Start typing in the URL bar
  5. Wait a few seconds

Actual:

Reproducible on v102.2 and v103.0

@ericswpark could you please go to settings - homepage - Enable Shortcuts. Let me know if the crash is still happening. My suspicion is that this might be the same as https://github.com/mozilla-mobile/firefox-ios/issues/11359

Client-2022-07-21-105247.ips.zip

ericswpark commented 2 years ago

@SimonBasca I think you've nailed down where it is happening. I've enabled Shortcuts on both my iPhone and iPad. I'll keep an eye out for crashes, but the STR (what's it stand for, by the way?) seems similar to when I encounter crashes.

(Before enabling Shortcuts) I've even had Firefox crash when I opened a new tab and just left the cursor blinking there without typing in anything.

Really looking forward to the fix, although now that there is a (potential) workaround I'm quite happy that Firefox won't crash every five to ten minutes. Thank you @SimonBasca!

ericswpark commented 2 years ago

Just realized some of the iPad crash logs I've shared might be due to #11355, as I use a keyboard to go down the entries and might have gone past the last entry causing Firefox to crash. Please ignore the iPad crash logs for this bug report, sorry.

SimonBasca commented 2 years ago

Based on the previous comment I'm marking this issue as duplicate of https://github.com/mozilla-mobile/firefox-ios/issues/11359. We've landed a fix for v102.2. Please re-open if the issue is reproducible again on v102.2 (13909)