shakebugs / shake-ios Goto Github PK
View Code? Open in Web Editor NEWBug and crash reporting SDK for iOS apps.
Home Page: https://shakebugs.com
License: Other
Bug and crash reporting SDK for iOS apps.
Home Page: https://shakebugs.com
License: Other
Trying to update and hopefully won’t see the crash anymore (will keep you updated), but here’s the crash report:
Fatal Exception: NSRangeException
0 CoreFoundation 0x9cb4 __exceptionPreprocess
1 libobjc.A.dylib 0x183d0 objc_exception_throw
2 CoreFoundation 0x1aff84 -[__NSCFString characterAtIndex:].cold.1
3 CoreFoundation 0x16fcc -[NSConstantArray objectAtIndex:]
4 Shake 0x90f88 -[SHKShakeReportData trimActivityHistoryRecords] + 661 (SHKShakeReportData.m:661)
5 Shake 0x90890 -[SHKShakeReportData constructActivityLogData:] + 590 (SHKShakeReportData.m:590)
6 Shake 0x8f274 __70-[SHKShakeReportData populateGatheredDataDictWithReportConfiguration:]_block_invoke + 299 (SHKShakeReportData.m:299)
7 libdispatch.dylib 0x2320 _dispatch_call_block_and_release
8 libdispatch.dylib 0x3eac _dispatch_client_callout
9 libdispatch.dylib 0xb534 _dispatch_lane_serial_drain
10 libdispatch.dylib 0xc0a4 _dispatch_lane_invoke
11 libdispatch.dylib 0x16cdc _dispatch_workloop_worker_thread
12 libsystem_pthread.dylib 0xddc _pthread_wqthread
13 libsystem_pthread.dylib 0xb7c start_wqthread
Occurred three times to 3 different users of all different devices (SE, 14, 11)
Hi guys, I see on https://www.npmjs.com/package/@shakebugs/react-native-shake that you're hosted on Bitbucket for your React Native SDK. However, when attempting to look at it (while logged into the Bitbucket), I just get a "We can't let you see this page" error.
Is there a reason it's not hosted on Github? Please consider moving it here. Thanks!
Crash happens on startup. Not consistent -- maybe 20% of the time.
Called on non-main thread, started by Shake.start(clientId:clientSecret:)
.
Backtrace:
(lldb) thread backtrace all
thread #1, queue = 'com.apple.main-thread'
frame #0: 0x00007fff6bf997c6 libsystem_kernel.dylib`stat$INODE64 + 10
frame #1: 0x000000011b22c692 libsqlite3.dylib`findReusableFd + 66
frame #2: 0x000000011b1f6171 libsqlite3.dylib`unixOpen + 305
frame #3: 0x000000011b2317b0 libsqlite3.dylib`sqlite3BtreeOpen + 2992
frame #4: 0x000000011b20f2dc libsqlite3.dylib`openDatabase + 2268
frame #5: 0x00000001111519f0 Shake`-[SHKSqliteDatabase init] + 548
frame #6: 0x00000001111517b7 Shake`__27+[SHKSqliteDatabase shared]_block_invoke + 29
frame #7: 0x000000011b133c0c libdispatch.dylib`_dispatch_client_callout + 8
frame #8: 0x000000011b13516d libdispatch.dylib`_dispatch_once_callout + 66
frame #9: 0x0000000111151798 Shake`+[SHKSqliteDatabase shared] + 97
frame #10: 0x0000000111114efd Shake`-[SHKDatabaseAdaptor initWithTableName:parameterAdaptor:recordAdaptor:keys:] + 199
frame #11: 0x00000001110b6d4f Shake`-[SHKConsoleLogReporter instantiateAdaptor] + 292
frame #12: 0x00000001110b5f98 Shake`-[SHKConsoleLogReporter init] + 257
frame #13: 0x00000001110b5e82 Shake`__31+[SHKConsoleLogReporter shared]_block_invoke + 29
frame #14: 0x000000011b133c0c libdispatch.dylib`_dispatch_client_callout + 8
frame #15: 0x000000011b13516d libdispatch.dylib`_dispatch_once_callout + 66
frame #16: 0x00000001110b5e63 Shake`+[SHKConsoleLogReporter shared] + 97
frame #17: 0x00000001110a5c81 Shake`-[SHKShake reapplyConfiguration] + 627
frame #18: 0x00000001110a6129 Shake`-[SHKShake setIsTrackingResumed:] + 664
frame #19: 0x00000001110a138e Shake`+[SHKShake startWithClientId:clientSecret:] + 490
frame #20: 0x000000010efe69f0 Tome`AppDelegate.application(launchOptions=nil, self=0x0000600003eac600) at AppDelegate.swift:27:19
frame #21: 0x000000010efe7d77 Tome`@objc AppDelegate.application(_:didFinishLaunchingWithOptions:) at <compiler-generated>:0
frame #22: 0x0000000131050e21 UIKitCore`-[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 216
frame #23: 0x0000000131052a91 UIKitCore`-[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 4115
frame #24: 0x0000000131058403 UIKitCore`-[UIApplication _runWithMainScene:transitionContext:completion:] + 1221
frame #25: 0x00000001305d96a1 UIKitCore`-[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 179
frame #26: 0x0000000131054ab6 UIKitCore`-[UIApplication _compellApplicationLaunchToCompleteUnconditionally] + 59
frame #27: 0x0000000131054e55 UIKitCore`-[UIApplication _run] + 914
frame #28: 0x0000000131059a53 UIKitCore`UIApplicationMain + 101
frame #29: 0x000000010efe5162 Tome`main at main.swift:4:1
frame #30: 0x000000011069de1e dyld_sim`start_sim + 10
thread #2, queue = 'shk_CrashReporterLogQueue'
frame #0: 0x00007fff6bf98b52 libsystem_kernel.dylib`__open + 10
frame #1: 0x00007fff6bfa0f42 libsystem_kernel.dylib`open + 205
frame #2: 0x0000000111f864a4 Foundation`_NSOpenFileDescriptor + 35
frame #3: 0x0000000111eeda75 Foundation`-[NSConcreteFileHandle initWithURL:flags:createMode:error:] + 118
frame #4: 0x0000000111eec29e Foundation`+[NSFileHandle fileHandleForWritingAtPath:] + 41
frame #5: 0x00000001110b33fc Shake`-[SHKLogger writeString:toFileHandleAtURL:] + 330
frame #6: 0x000000011b132a28 libdispatch.dylib`_dispatch_call_block_and_release + 12
frame #7: 0x000000011b133c0c libdispatch.dylib`_dispatch_client_callout + 8
frame #8: 0x000000011b13a60f libdispatch.dylib`_dispatch_lane_serial_drain + 858
frame #9: 0x000000011b13b2fe libdispatch.dylib`_dispatch_lane_invoke + 436
frame #10: 0x000000011b14759b libdispatch.dylib`_dispatch_workloop_worker_thread + 900
frame #11: 0x00007fff6bfeb45d libsystem_pthread.dylib`_pthread_wqthread + 314
frame #12: 0x00007fff6bfea42f libsystem_pthread.dylib`start_wqthread + 15
thread #3
frame #0: 0x00007fff6bfea420 libsystem_pthread.dylib`start_wqthread
thread #4
frame #0: 0x00007fff6bfea420 libsystem_pthread.dylib`start_wqthread
thread #5, name = 'com.apple.uikit.eventfetch-thread'
frame #0: 0x00007fff6bf982ba libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x00007fff6bf9862c libsystem_kernel.dylib`mach_msg + 60
frame #2: 0x0000000113b36450 CoreFoundation`__CFRunLoopServiceMachPort + 319
frame #3: 0x0000000113b30af3 CoreFoundation`__CFRunLoopRun + 1293
frame #4: 0x0000000113b30103 CoreFoundation`CFRunLoopRunSpecific + 567
frame #5: 0x0000000111fb341c Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 213
frame #6: 0x0000000111fb3693 Foundation`-[NSRunLoop(NSRunLoop) runUntilDate:] + 72
frame #7: 0x00000001311150b9 UIKitCore`-[UIEventFetcher threadMain] + 491
frame #8: 0x0000000111fdc142 Foundation`__NSThread__start__ + 999
frame #9: 0x00007fff6bfee8fc libsystem_pthread.dylib`_pthread_start + 224
frame #10: 0x00007fff6bfea443 libsystem_pthread.dylib`thread_start + 15
* thread #6, queue = 'com.apple.NSURLSession-work', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
* frame #0: 0x00007fff6bfe4525 libsystem_platform.dylib`_os_unfair_lock_unowned_abort + 23
frame #1: 0x00007fff6bfdf1a3 libsystem_platform.dylib`_os_unfair_lock_unlock_slow + 91
frame #2: 0x000000011b22c928 libsqlite3.dylib`fillInUnixFile + 456
frame #3: 0x000000011b1f6ec8 libsqlite3.dylib`unixOpen + 3720
frame #4: 0x000000011b23afe5 libsqlite3.dylib`pagerOpenWal + 293
frame #5: 0x000000011b221b47 libsqlite3.dylib`sqlite3PagerSharedLock + 2679
frame #6: 0x000000011b1faf58 libsqlite3.dylib`sqlite3BtreeBeginTrans + 1480
frame #7: 0x000000011b24787e libsqlite3.dylib`sqlite3VdbeExec + 7918
frame #8: 0x000000011b1f84c1 libsqlite3.dylib`sqlite3_step + 705
frame #9: 0x00000001125d901a CFNetwork`___lldb_unnamed_symbol6649$$CFNetwork + 73
frame #10: 0x00000001124ca25b CFNetwork`___lldb_unnamed_symbol1746$$CFNetwork + 279
frame #11: 0x00000001124ce6cf CFNetwork`___lldb_unnamed_symbol1770$$CFNetwork + 959
frame #12: 0x00000001126762ab CFNetwork`___lldb_unnamed_symbol10307$$CFNetwork + 63
frame #13: 0x00000001125f0267 CFNetwork`___lldb_unnamed_symbol7265$$CFNetwork + 257
frame #14: 0x00000001126b1262 CFNetwork`___lldb_unnamed_symbol11669$$CFNetwork + 156
frame #15: 0x00000001125eb3fd CFNetwork`___lldb_unnamed_symbol7072$$CFNetwork + 895
frame #16: 0x00000001124ffcd5 CFNetwork`___lldb_unnamed_symbol2681$$CFNetwork + 110
frame #17: 0x00000001124ff0cf CFNetwork`___lldb_unnamed_symbol2659$$CFNetwork + 608
frame #18: 0x00000001125015bf CFNetwork`___lldb_unnamed_symbol2736$$CFNetwork + 27
frame #19: 0x000000011b142bf7 libdispatch.dylib`_dispatch_block_async_invoke2 + 83
frame #20: 0x000000011b133c0c libdispatch.dylib`_dispatch_client_callout + 8
frame #21: 0x000000011b13a60f libdispatch.dylib`_dispatch_lane_serial_drain + 858
frame #22: 0x000000011b13b334 libdispatch.dylib`_dispatch_lane_invoke + 490
frame #23: 0x000000011b14759b libdispatch.dylib`_dispatch_workloop_worker_thread + 900
frame #24: 0x00007fff6bfeb45d libsystem_pthread.dylib`_pthread_wqthread + 314
frame #25: 0x00007fff6bfea42f libsystem_pthread.dylib`start_wqthread + 15
thread #7, queue = 'AXCodeLoader'
frame #0: 0x0000000113c3916c CoreFoundation`-[__NSDictionaryM objectForKeyedSubscript:] + 222
frame #1: 0x00000001483e878a AccessibilityUtilities`-[AXCodeLoader _accessibilityCodeItemMatchingName:type:path:] + 542
frame #2: 0x00000001483e8998 AccessibilityUtilities`-[AXCodeLoader _associateAccessibilityCodeItemWithLoadedCodeItem:] + 194
frame #3: 0x00000001483e71e2 AccessibilityUtilities`__36-[AXCodeLoader _addTrackedCodeItem:]_block_invoke + 224
frame #4: 0x000000011b132a28 libdispatch.dylib`_dispatch_call_block_and_release + 12
frame #5: 0x000000011b133c0c libdispatch.dylib`_dispatch_client_callout + 8
frame #6: 0x000000011b13a60f libdispatch.dylib`_dispatch_lane_serial_drain + 858
frame #7: 0x000000011b13b2fe libdispatch.dylib`_dispatch_lane_invoke + 436
frame #8: 0x000000011b14759b libdispatch.dylib`_dispatch_workloop_worker_thread + 900
frame #9: 0x00007fff6bfeb45d libsystem_pthread.dylib`_pthread_wqthread + 314
frame #10: 0x00007fff6bfea42f libsystem_pthread.dylib`start_wqthread + 15
thread #8
frame #0: 0x00007fff6bf9abb2 libsystem_kernel.dylib`__semwait_signal + 10
frame #1: 0x000000011ca6c5f2 libsystem_c.dylib`nanosleep + 196
frame #2: 0x000000011ca6c45a libsystem_c.dylib`sleep + 41
frame #3: 0x0000000111179dee Shake`monitorCachedData + 753
frame #4: 0x00007fff6bfee8fc libsystem_pthread.dylib`_pthread_start + 224
frame #5: 0x00007fff6bfea443 libsystem_pthread.dylib`thread_start + 15
I tried latest version 16.2.3. I can see the Shake report screen on Simulator, but when I tried on a real device, it doesnt work.
Do I have to configure any additional thing?
We are getting app terminations due to the app becoming unresponsive. It appears to have something to do with Shake. About 80 occurrences every 24hrs right now. It generally seems to happen within 15 seconds of the app moving to foreground. I will attach a couple of the reports.
Shake SDK 15.1.1
Example 1:
CrashReporter Key: 947726ed7c2b01c53ece6ef2ecf847b702a1639f
Hardware Model: iPhone11,6
Process: Route
Identifier: io.routeapp.route
Version: 2.18.0
Role: Background
OS Version: iOS 15.1
App Hang: The app was terminated while unresponsive
0 libsystem_kernel.dylib _guarded_pwrite_np
1 libsqlite3.dylib 0x19ece5ee4 (0x19ece5e70 + 116)
2 libsqlite3.dylib 0x19ec9d294 (0x19ec9d1e4 + 176)
3 libsqlite3.dylib 0x19ecf0b4c (0x19ecf09e4 + 360)
4 libsqlite3.dylib 0x19ec98d80 (0x19ec98c60 + 288)
5 libsqlite3.dylib 0x19ecc6cdc (0x19ecc6ad8 + 516)
6 libsqlite3.dylib _sqlite3_backup_step
7 libsqlite3.dylib 0x19ecf95e0 (0x19ecf8b04 + 2780)
8 libsqlite3.dylib 0x19ec74644 (0x19ec73890 + 3508)
9 libsqlite3.dylib _sqlite3_step
10 Route -[SHKSqliteDatabase SQL_Execute:] (SHKSqliteDatabase.m:237:22)
11 Route -[SHKSqliteDatabase defragmentTheDatabase] (SHKSqliteDatabase.m:116:24)
12 Route -[SHKSqliteDatabase init] (SHKSqliteDatabase.m:73:9)
13 Route __27+[SHKSqliteDatabase shared]_block_invoke (SHKSqliteDatabase.m:42:26)
14 libdispatch.dylib __dispatch_client_callout
15 libdispatch.dylib __dispatch_once_callout
16 Route _dispatch_once (once.h:84:3)
17 Route -[SHKShake configureAPIWithClientId:clientSecret:] (SHKShake+Internal.m:780:108)
18 Route +[SHKShake startWithClientId:clientSecret:] (SHKShake+Internal.m:752:5)
19 Route init (ShakeIssueReporter.swift:46:15)
20 Route init (ShakeIssueReporter.swift)
21 Route init (<compiler-generated>)
22 Route init (AppDelegate.swift:21:44)
23 Route init (<compiler-generated>)
24 UIKitCore _UIApplicationMain
25 Route main (DrawerContainerViewModel.swift:19:7)
26 dyld start
Example 2:
CrashReporter Key: f22ed1daccad80f46ea7fda0e5f838fb1fb52623
Hardware Model: iPhone12,5
Process: Route
Identifier: io.routeapp.route
Version: 2.18.0
Role: Foreground
OS Version: iOS 14.8.1
App Hang: The app was terminated while unresponsive
0 CoreFoundation _CFAllocatorAllocate
1 CoreFoundation __CFRuntimeCreateInstance
2 CoreFoundation _CFStringCreateMutable
3 CoreFoundation __CFStringCreateWithFormatAndArgumentsReturningMetadata
4 Foundation +[NSString stringWithFormat:]
5 UIKitCore ____UIImageCollectImagePathsForPath_block_invoke.139
6 UIKitCore ____UIImageCollectImagePathsForPath_block_invoke_2.158
7 UIKitCore ____UIImageCollectImagePathsForPath_block_invoke
8 UIKitCore __UIImageCollectImagePathsForPath
9 UIKitCore +[_UIAssetManager newAssetNamed:fromBundle:]
10 UIKitCore +[UIImage imageNamed:inBundle:withConfiguration:]
11 UIKitCore +[UIImage imageNamed:inBundle:compatibleWithTraitCollection:]
12 Route init (RouteImage.swift)
13 Route init (<compiler-generated>)
14 Route init (LoadingView.swift:12:27)
15 Route init (<compiler-generated>)
16 SwiftUI PlatformViewRepresentableAdaptor.makeViewProvider(context:)
17 SwiftUI protocol witness for PlatformViewRepresentable.makeViewProvider(context:) in conformance PlatformViewRepresentableAdaptor<A>
18 SwiftUI closure #1 in closure #2 in closure #1 in PlatformViewChild.updateValue()
19 SwiftUI partial apply for closure #1 in closure #2 in closure #1 in PlatformViewChild.updateValue()
20 SwiftUI partial apply for thunk for @callee_guaranteed () -> (@owned PlatformViewHost<A>)
21 SwiftUI PlatformViewRepresentableValues.asCurrent<A>(do:)
22 SwiftUI closure #2 in closure #1 in PlatformViewChild.updateValue()
23 SwiftUI closure #1 in PlatformViewChild.updateValue()
24 SwiftUI PlatformViewChild.updateValue()
25 SwiftUI partial apply for implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>(_:)
26 AttributeGraph AG::Graph::UpdateStack::update()
27 AttributeGraph AG::Graph::update_attribute(AG::data::ptr<AG::Node>, bool)
28 AttributeGraph AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, bool*, long)
29 AttributeGraph _AGGraphGetValue
30 SwiftUI AlignmentModifiedLayoutComputer.updateValue()
31 SwiftUI partial apply for specialized implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>(_:)
32 AttributeGraph AG::Graph::UpdateStack::update()
33 AttributeGraph AG::Graph::update_attribute(AG::data::ptr<AG::Node>, bool)
34 AttributeGraph AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, bool*, long)
35 AttributeGraph _AGGraphGetInputValue
36 SwiftUI LayoutProxy.layoutComputer.getter
37 SwiftUI specialized FrameLayoutCommon.commonPlacement(of:in:)
38 SwiftUI protocol witness for UnaryLayout.placement(of:in:) in conformance _FrameLayout
39 SwiftUI closure #1 in UnaryLayoutEngine.childPlacement(at:)
40 SwiftUI UnaryLayoutEngine.childPlacement(at:)
41 SwiftUI UnaryLayoutEngine.explicitAlignment(_:at:)
42 SwiftUI protocol witness for LayoutEngineProtocol.explicitAlignment(_:at:) in conformance UnaryLayoutEngine<A>
43 SwiftUI LayoutComputer.EngineDelegate.explicitAlignment(_:at:)
44 SwiftUI closure #4 in _ZStackLayout.sizeThatFits(in:context:children:)
45 SwiftUI _ZStackLayout.sizeThatFits(in:context:children:)
46 SwiftUI closure #1 in _LayoutEngine.sizeThatFits(_:)
47 SwiftUI _LayoutEngine.sizeThatFits(_:)
48 SwiftUI LayoutComputer.EngineDelegate.sizeThatFits(_:)
49 SwiftUI RootGeometry.value.getter
50 SwiftUI specialized implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>(_:)
51 SwiftUI partial apply for specialized implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>(_:)
52 AttributeGraph AG::Graph::UpdateStack::update()
53 AttributeGraph AG::Graph::update_attribute(AG::data::ptr<AG::Node>, bool)
54 AttributeGraph AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, bool*, long)
55 AttributeGraph _AGGraphGetValue
56 SwiftUI DynamicLayoutViewChildGeometry.childGeometries.getter
57 SwiftUI DynamicLayoutViewChildGeometry.updateValue()
58 SwiftUI partial apply for specialized implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>(_:)
59 AttributeGraph AG::Graph::UpdateStack::update()
60 AttributeGraph AG::Graph::update_attribute(AG::data::ptr<AG::Node>, bool)
61 AttributeGraph AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, bool*, long)
62 AttributeGraph _AGGraphGetValue
63 SwiftUI LayoutPositionQuery.localPosition.getter
64 SwiftUI LayoutPositionQuery.updateValue()
65 SwiftUI partial apply for specialized implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>(_:)
66 AttributeGraph AG::Graph::UpdateStack::update()
67 AttributeGraph AG::Graph::update_attribute(AG::data::ptr<AG::Node>, bool)
68 AttributeGraph AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, bool*, long)
69 AttributeGraph _AGGraphGetValue
70 SwiftUI AnimatableFrameAttribute.updateValue()
71 SwiftUI partial apply for specialized implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init<A>(_:)
72 AttributeGraph AG::Graph::UpdateStack::update()
73 AttributeGraph AG::Graph::update_attribute(AG::data::ptr<AG::Node>, bool)
74 AttributeGraph AG::Subgraph::update(unsigned int)
75 SwiftUI GraphHost.runTransaction()
76 SwiftUI GraphHost.runTransaction(_:)
77 SwiftUI GraphHost.flushTransactions()
78 SwiftUI closure #1 in closure #1 in GraphHost.asyncTransaction<A>(_:mutation:style:)
79 SwiftUI partial apply for closure #1 in ViewGraphDelegate.updateGraph<A>(body:)
80 SwiftUI closure #1 in ViewRendererHost.updateViewGraph<A>(body:)
81 SwiftUI ViewRendererHost.updateViewGraph<A>(body:)
82 SwiftUI ViewGraphDelegate.updateGraph<A>(body:)
83 SwiftUI closure #1 in GraphHost.init(data:)
84 SwiftUI _$s7SwiftUI9GraphHostC16asyncTransaction_8mutation5styleyAA0F0V_xAA01_C14Mutation_StyleOtAA0cI0RzlFyycfU_TA.15
85 SwiftUI thunk for @escaping @callee_guaranteed () -> ()
86 SwiftUI static NSRunLoop.flushObservers()
87 SwiftUI closure #1 in closure #1 in static NSRunLoop.addObserver(_:)
88 SwiftUI specialized thunk for @callee_guaranteed () -> (@error @owned Error)
89 libswiftObjectiveC.dylib autoreleasepool<A>(invoking:)
90 SwiftUI closure #1 in static NSRunLoop.addObserver(_:)
91 SwiftUI @objc closure #1 in static NSRunLoop.addObserver(_:)
92 CoreFoundation ___CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
93 CoreFoundation ___CFRunLoopDoObservers
94 CoreFoundation ___CFRunLoopRun
95 CoreFoundation _CFRunLoopRunSpecific
96 GraphicsServices _GSEventRunModal
97 UIKitCore -[UIApplication _run]
98 UIKitCore _UIApplicationMain
99 Route main (DrawerContainerViewModel.swift:19:7)
100 libdyld.dylib _start
• Reporter: Preslav - [email protected]
• Product: Bug found in “QuickNote” iOS app.
• Version: 2.3.1
• Component: Note Saving Module
• Platform: iOS
• Operating System: iOS 15.3
• Priority: P1
• Severity:
• Blocker: Hinders additional testing.
• Critical: App crashes upon saving, potential data loss.
• Status: New/Open
• Assigned to: Mary Johnson
• URL: N/A
• Summary: Bug causing app to crash when saving notes.
• Description:
• Reproducible Steps:
1. Open QuickNote app.
2. Create a new note.
3. Add some text and tap the save button.
• Expected Result: Note should be saved without any issues.
• Actual Result: App crashes upon attempting to save the note.
• Type: Code issue
Apple is soon (Spring 2024) going to require every app to declare App Privacy Manifest files in their app submissions. These declare the privacy use of the app including 3rd Party Libraries like Shake. Are there any plans to add one to this library?
https://developer.apple.com/documentation/bundleresources/privacy_manifest_files
Thanks
public func toggleShakeBugs() -> AnyPublisher<Void, Error> {
Future<Void, Error> {
Shake.isPaused.toggle() // <- Segmentation fault: 11
Shake.isPaused = !Shake.isPaused // <- this compiles fine
$0(.success(()))
}
.eraseToAnyPublisher()
}
Hi!
We updated our project to run on Xcode 13.3 (13E113) and the Shake.isPaused.toggle()
line causes Segfault 11 buildtime error.
The issue can be fixed from our side using Shake.isPaused = !Shake.isPaused
approach. But it's not an ideal solution.
Shake version: 15.1.2
Stackstrace:
- While evaluating request IRGenRequest(IR Generation for file "/Users/zsomborrajki/Documents/bkk-ios/Data/Data/Profile/MockServices/MockProfileService.swift")
- While emitting IR SIL function "@$s4Data18MockProfileServiceC15toggleShakeBugs7Combine12AnyPublisherVyyts5Error_pGyFyys6ResultOyytsAH_pGccfU_".
for expression at [/Users/zsomborrajki/Documents/bkk-ios/Data/Data/Profile/MockServices/MockProfileService.swift:45:29 - line:49:9] RangeText="{
Shake.isPaused.toggle() // <- Segmentation fault: 11
Shake.isPaused = !Shake.isPaused // <- this compiles fine
$0(.success(()))
"
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment varLLVM_SYMBOLIZER_PATH
to point to it):
0 swift-frontend 0x0000000105ea3de7 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39
1 swift-frontend 0x0000000105ea2e38 llvm::sys::RunSignalHandlers() + 248
2 swift-frontend 0x0000000105ea4440 SignalHandler(int) + 288
3 libsystem_platform.dylib 0x00007ff80a792dfd _sigtramp + 29
4 libsystem_platform.dylib 000000000000000000 _sigtramp + 18446603370405220896
5 swift-frontend 0x000000010115711a swift::SILInstructionVisitor<(anonymous namespace)::IRGenSILFunction, void>::visit(swift::SILInstruction*) + 65402
6 swift-frontend 0x0000000101141e32 swift::irgen::IRGenModule::emitSILFunction(swift::SILFunction*) + 10530
7 swift-frontend 0x0000000100feb708 swift::irgen::IRGenerator::emitLazyDefinitions() + 1496
8 swift-frontend 0x000000010110c9a5 swift::IRGenRequest::evaluate(swift::Evaluator&, swift::IRGenDescriptor) const + 9797
9 swift-frontend 0x000000010113f1ec swift::SimpleRequest<swift::IRGenRequest, swift::GeneratedModule (swift::IRGenDescriptor), (swift::RequestFlags)9>::evaluateRequest(swift::IRGenRequest const&, swift::Evaluator&) + 204
10 swift-frontend 0x000000010111747c llvm::Expectedswift::IRGenRequest::OutputType swift::Evaluator::getResultUncachedswift::IRGenRequest(swift::IRGenRequest const&) + 828
11 swift-frontend 0x000000010111116c swift::performIRGeneration(swift::FileUnit*, swift::IRGenOptions const&, swift::TBDGenOptions const&, std::__1::unique_ptr<swift::SILModule, std::__1::default_deleteswift::SILModule >, llvm::StringRef, swift::PrimarySpecificPaths const&, llvm::StringRef, llvm::GlobalVariable**) + 348
12 swift-frontend 0x0000000100bda3b3 performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_deleteswift::SILModule >, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 2499
13 swift-frontend 0x0000000100bcc261 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 15233
14 swift-frontend 0x0000000100b8b5d4 swift::mainEntry(int, char const**) + 1108
15 dyld 0x000000010e6bb51e start + 462
error: Segmentation fault: 11 (in target 'Data' from project 'Data')
Hey Shake dev team 👋
We update your SDK from 15.3.0 to 16.1.0 and got the following crash popin on Crashlytics. Have you any information about it? Thanks for your help 🙏
# Crashlytics - Stack trace
# Application: ************
# Platform: apple
# Version: 7.5.0 (1)
# Issue: 8a00dc7ad73e349383f27d6c41432fd6
# Session: 8a34029f97524598849730322c106eba_DNE_0_v2
# Date: Sun May 07 2023 01:45:53 GMT+0200 (Central European Summer Time)
Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x9d94 __exceptionPreprocess
1 libobjc.A.dylib 0x183d0 objc_exception_throw
2 CoreFoundation 0x17eb14 +[NSObject(NSObject) _copyDescription]
3 CoreFoundation 0x201c8 ___forwarding___
4 CoreFoundation 0x869f0 _CF_forwarding_prep_0
5 CoreNFC 0x2879c -[NFCHardwareManager areFeaturesSupported:outError:]
6 CoreNFC 0x26974 +[NFCReaderSession featureAvailable:]
7 Shake 0xb0fc __16-[SHKShake init]_block_invoke + 853 (SHKShake+Internal.m:853)
8 libdispatch.dylib 0x2320 _dispatch_call_block_and_release
9 libdispatch.dylib 0x3eac _dispatch_client_callout
10 libdispatch.dylib 0x15a64 _dispatch_root_queue_drain
11 libdispatch.dylib 0x16158 _dispatch_worker_thread2
12 libsystem_pthread.dylib 0xda0 _pthread_wqthread
13 libsystem_pthread.dylib 0xb7c start_wqthread
It seems that from version 14.1.0, the XCFramework no longer has the correct arvm7 slice and it fails to compile with the following message.
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_SHKShake", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture armv7
Version 12.1.0 is properly generated though.
Crashytics log:
Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x9cb4 __exceptionPreprocess
1 libobjc.A.dylib 0x183d0 objc_exception_throw
2 CoreFoundation 0x17eab8 +[NSObject(NSObject) _copyDescription]
3 CoreFoundation 0x200e8 ___forwarding___
4 CoreFoundation 0x86900 _CF_forwarding_prep_0
5 Shake 0xf7aa8 (Missing UUID 1bcebc1001bc3155926f947f695b5c25)
6 Shake 0x95fc (Missing UUID 1bcebc1001bc3155926f947f695b5c25)
7 Shake 0x94b4 (Missing UUID 1bcebc1001bc3155926f947f695b5c25)
8 GasBuddy 0xd81234 -[RNShake log::] + 233 (RNShake.m:233)
9 CoreFoundation 0x72c04 __invoking___
10 CoreFoundation 0x20cb4 -[NSInvocation invoke]
11 CoreFoundation 0x206cc -[NSInvocation invokeWithTarget:]
12 GasBuddy 0x5e13b4 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 587 (RCTModuleMethod.mm:587)
13 GasBuddy 0x5e3598 facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext) + 196 (RCTNativeModule.mm:196)
14 GasBuddy 0x5e3220 invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int) + 419 (Optional.h:419)
15 libdispatch.dylib 0x2320 _dispatch_call_block_and_release
16 libdispatch.dylib 0x3eac _dispatch_client_callout
17 libdispatch.dylib 0x126a4 _dispatch_main_queue_drain
18 libdispatch.dylib 0x122f4 _dispatch_main_queue_callback_4CF
19 CoreFoundation 0x98c28 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
20 CoreFoundation 0x7a560 __CFRunLoopRun
21 CoreFoundation 0x7f3ec CFRunLoopRunSpecific
22 GraphicsServices 0x135c GSEventRunModal
23 UIKitCore 0x39cf58 -[UIApplication _run]
24 UIKitCore 0x39cbbc UIApplicationMain
25 GasBuddy 0xacac main + 8 (main.m:8)
26 ??? 0x1e9778dec (Missing)
We are at the latest version 16.1.0:
"@shakebugs/react-native-shake": ^16.1.0
Calling Shake.start() takes a while to complete and blocks the main thread (calling it on a background thread triggers the Main Thread Checker for accessing various UIKit calls).
Is there any way we can delay the initialization of any UIKit classes on starting Shake?
In Xcode it compiles and runs. Version 11.6
In Bitrise it doesn't. Version 11.1
This is Bitrise log ouput:
❌ error: exportArchive: ipatool failed with an exception: #<CmdSpec::NonZeroExitException: $ /Applications/Xcode.app/Contents/Developer/usr/bin/bitcode-build-tool -v -t /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk -o /var/folders/6q/wgy6jtp12w5gzgm9lzcglpqw0000gn/T/ipatool20200913-11727-fx8cxd/thinned-out/arm64/Payload/Livemetric.app/Frameworks/Shake.framework/Shake --generate-dsym /var/folders/6q/wgy6jtp12w5gzgm9lzcglpqw0000gn/T/ipatool20200913-11727-fx8cxd/thinned-out/arm64/Payload/Livemetric.app/Frameworks/Shake.framework/Shake.dSYM --strip-swift-symbols /var/folders/6q/wgy6jtp12w5gzgm9lzcglpqw0000gn/T/ipatool20200913-11727-fx8cxd/thinned-in/arm64/Payload/Livemetric.app/Frameworks/Shake.framework/Shake
Would it be possible to add support for integrating this framework with Swift Package Manager? The trend seems to be moving away from Cocoapods, as well as even Carthage.
The SPM package pulls down and compiles fine but seems to get an error during deployment:
[03:09:07]: ERROR ITMS-90680: "Invalid directory. The bundle Payload/Airchat.app/PlugIns/Shake.framework is not contained in a correctly named directory. It should be under "Frameworks"."
After install shake and implemented initial of it, App Hanging when received new notification from Firebase in active App state.
In background and inactive states is working fine, but when app is in active state, App hanging!
My XCODE return this from debug:
EXC_BAD_ACCESS
__52-[FIRMessagingRmqManager querySyncMessageWithRmqID:]_block_invoke
#app_hanging
#firebase
#crash
on Shake SDK v15.1.1, we use isPaused
property to temporary disable auto recording on some screens for using device rotation in our apps.
Have you got a way to get around this known limitation, on SDK v16 ?
We look forward to your response 😌
It looks like there's a bug in the iOS SDK where if you start with the description empty and paste text into it, the report will have an empty description.
Steps to Reproduce:
0. Put text on your clipboard.
Expected Result:
The pasted text is submitted as the description as part of the report.
Actual Result:
The description for the report is blank.
This is another app termination from becoming unresponsive. This appears to always happen on launch and seems like it may be new with SDK 15.1.1
CrashReporter Key: 20a2c3485fe44efef49b09ffa0ab47b6d943dcca
Hardware Model: iPhone9,1
Process: Route
Identifier: io.routeapp.route
Version: 2.18.0
Role: Background
OS Version: iOS 15.2.1
App Hang: The app was terminated while unresponsive
0 libFontParser.dylib TSFNTFont::GetFormat() const
1 libFontParser.dylib TSFNTFont::GetFormat() const
2 libFontParser.dylib TFont::CreateFontEntities(char const*, timespec, bool&, short, char const*, int)
3 libFontParser.dylib TFont::CreateFontEntitiesForFile(char const*, timespec, bool, short, char const*)
4 libFontParser.dylib _FPFontCreateFontsWithPath
5 CoreGraphics _create_private_data_array_with_path
6 CoreGraphics _CGFontCreateFontsWithPath
7 CoreGraphics _CGFontCreateFontsWithURL
8 libGSFont.dylib _AddFontsFromURLOrPath
9 libGSFont.dylib ___Initialize_block_invoke
10 libdispatch.dylib __dispatch_client_callout
11 libdispatch.dylib __dispatch_once_callout
12 libGSFont.dylib _Initialize
13 CoreGraphics _initialize_font_database_once
14 CoreGraphics _CGFontCreate
15 CoreGraphics _CGFontCreateWithDataProviderAndData
16 Route +[SHKFonts loadMyCustomFont:] (SHKFonts.m:28:22)
17 Route +[SHKFonts registerFonts] (SHKFonts.m:15:5)
18 Route -[SHKInvocationManager init] (SHKInvocationManager.m:57:9)
19 Route __38+[SHKInvocationManager sharedInstance]_block_invoke (SHKInvocationManager.m:37:26)
20 libdispatch.dylib __dispatch_client_callout
21 libdispatch.dylib __dispatch_once_callout
22 Route _dispatch_once (once.h:84:3)
23 Route -[SHKShake reapplyConfiguration] (SHKShake+Internal.m:846:26)
24 Route -[SHKShake setIsTrackingResumed:] (SHKShake+Internal.m:881:5)
25 Route +[SHKShake startWithClientId:clientSecret:] (SHKShake+Internal.m:754:21)
26 Route init (ShakeIssueReporter.swift:46:15)
27 Route init (ShakeIssueReporter.swift)
28 Route init (<compiler-generated>)
29 Route init (AppDelegate.swift:21:44)
30 Route init (<compiler-generated>)
31 UIKitCore _UIApplicationMain
32 Route main (DrawerContainerViewModel.swift:19:7)
33 dyld start
Hi! Do you have any plans to introduce support for macCatalyst platform? It would be very nice to have, and your direct competitor does not have this feature 🙃
It would be nice if Shake supported an option to enable a simple onboarding.
The onboarding process would explain the user that they can shake or take a screenshot of a scene to report a bug.
If this existed, I think it would drive the users engagement with Shake up because it would alert them that it exists.
Our leading crash right now is from inside the Shake SDK. 180 occurrences a day right now. There isn't much in our stack trace to help debug the issue it seems. Let us know if we can help resolve this somehow or provide more useful information.
Exception Type: NSGenericException
Exception Subtype: *** Collection <__NSArrayM: 0x2830abab0> was mutated while being enumerated.
Thread 3 name:
Thread 3 Crashed:
0 CoreFoundation 0x00000001833dc05c __exceptionPreprocess (CoreFoundation)
1 libobjc.A.dylib 0x000000019b8f6f54 objc_exception_throw (libobjc.A.dylib)
2 CoreFoundation 0x00000001834b20e8 -[__NSSingleObjectEnumerator init] (CoreFoundation)
3 CoreFoundation 0x0000000183397830 -[NSArray containsObject:] (CoreFoundation)
4 Shake 0x000000010244f38c _hidden#3237_ (__hidden#3283_:442)
5 Shake 0x000000010244eb2c _hidden#3231_ (__hidden#3283_:319)
6 libdispatch.dylib 0x000000018304cc04 _dispatch_call_block_and_release (libdispatch.dylib)
7 libdispatch.dylib 0x000000018304e950 _dispatch_client_callout (libdispatch.dylib)
8 libdispatch.dylib 0x00000001830560ac _dispatch_lane_serial_drain (libdispatch.dylib)
9 libdispatch.dylib 0x0000000183056c10 _dispatch_lane_invoke (libdispatch.dylib)
10 libdispatch.dylib 0x0000000183061318 _dispatch_workloop_worker_thread (libdispatch.dylib)
11 libsystem_pthread.dylib 0x00000001f38191b0 _pthread_wqthread (libsystem_pthread.dylib)
12 libsystem_pthread.dylib 0x00000001f3818f50 start_wqthread (libsystem_pthread.dylib)
After adding Shakebugs sdk to my SwiftUI project I'm getting spammed with com.apple.coretelephony error warnings in Xcode.
Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service with pid 99 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service with pid 99 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}
I'm starting Shakebugs with
Shake.start(clientId: XXXX, clientSecret: XXXX)
removing Shake.start also removes the coretelephony warning
Using Shake 16.2.3
Installed using Swift Package Manager
Xcode version: Version 15.2 (15C500b)
Tested on iPhone 14 Pro Max, with iOS: 17.3.1
Hello
the release Page is Outdated
it is missing releases since 15.0.2
can you please update it
Shake.registerUser
is called with the emailemail
should be populated?email
is not populatedShake.registerUser does not show up email in bug report - Watch Video
This happened recently so not sure whats going on here. When invoked from the screenshot, the UI is unresponsive. In Profiler, it looks like its hanging collecting activity information. V 15.3.0
Hi, are you planning to support SwiftUI apps?
Temporary solution:
extension NSNotification.Name {
public static let deviceDidShakeNotification = NSNotification.Name("MyDeviceDidShakeNotification")
}
extension UIWindow {
open override func motionEnded(_ motion: UIEvent.EventSubtype, with event: UIEvent?) {
super.motionEnded(motion, with: event)
NotificationCenter.default.post(name: .deviceDidShakeNotification, object: event)
}
}
Source:
https://stackoverflow.com/questions/58549151/how-to-detect-shake-gesture-in-swiftui
and
.onReceive(NotificationCenter.default.publisher(for: .deviceDidShakeNotification)) { _ in
Shake.show()
}
• Reporter: Preslav - [email protected]
• Product: Bug found in “HealthTrack” iOS app.
• Version: 1.5.0
• Component: Exercise Tracking Module
• Platform: iOS
• Operating System: iOS 14.8
• Priority: P3
• Severity:
• Significant: Unable to record exercise duration accurately.
• Status: New/Open
• Assigned to: Development Team
• URL: N/A
• Summary: Bug causing incorrect exercise duration calculation.
• Description:
• Reproducible Steps:
1. Open HealthTrack app.
2. Start a new exercise session (e.g., running).
3. Track exercise duration.
4. Finish exercise session and save.
• Expected Result: App should accurately record exercise duration.
• Actual Result: Exercise duration recorded is inconsistent and inaccurate.
• Type: Code issue
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.