this is about an AngularJS app crashing Safari.The app crashes Safari on randomly on desktop and iPad. I understand that something is calling a non-existing record in memory. How can I trace that log to JavaScript / HTML / CSS actions?
Below is the output from Safari error report. I found that calls 22 and 44 in the thread that crashed look somewhat different than the others. I removed the reports for the threads that didn't crash. I also removed the thread state (it exceeded the character limit).
Process: WebProcess [44604]
Path: /System/Library/PrivateFrameworks/WebKit2.framework/WebProcess.app/Contents/MacOS/WebProcess
Identifier: com.apple.WebProcess
Version: 8536 (8536.30.1)
Build Info: WebKit2-7536030001000000~9
Code Type: X86-64 (Native)
Parent Process: ??? [1]
User ID: 502
Date/Time: 2014-10-07 11:20:38.251 +0100
OS Version: Mac OS X 10.8.5 (12F45)
Report Version: 10
Interval Since Last Report: 5675572 sec
Crashes Since Last Report: 18
Per-App Interval Since Last Report: 412893 sec
Per-App Crashes Since Last Report: 8
Anonymous UUID: [xxx removed]
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
VM Regions Near 0:
-->
__TEXT 0000000100a14000-0000000100a15000 [ 4K] r-x/rwx SM=COW /System/Library/PrivateFrameworks/WebKit2.framework/WebProcess.app/Contents/MacOS/WebProcess
Application Specific Information:
Bundle controller class:
BrowserBundleController
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.WebCore 0x00007fff83c98a19 WebCore::Length::incrementCalculatedRef() const + 25
1 com.apple.WebCore 0x00007fff838ec186 bool compareEqual<WebCore::Length, WebCore::Length>(WebCore::Length const&, WebCore::Length const&) + 70
2 com.apple.WebCore 0x00007fff8339aa01 WebCore::RenderStyle::setPaddingLeft(WebCore::Length) + 33
3 com.apple.WebCore 0x00007fff8347242b WebCore::PropertyWrapper<WebCore::Length>::blend(WebCore::AnimationBase const*, WebCore::RenderStyle*, WebCore::RenderStyle const*, WebCore::RenderStyle const*, double) const + 155
4 com.apple.WebCore 0x00007fff83ef8b2b WebCore::CSSPropertyAnimation::blendProperties(WebCore::AnimationBase const*, WebCore::CSSPropertyID, WebCore::RenderStyle*, WebCore::RenderStyle const*, WebCore::RenderStyle const*, double) + 123
5 com.apple.WebCore 0x00007fff83473079 WebCore::ImplicitAnimation::animate(WebCore::CompositeAnimation*, WebCore::RenderObject*, WebCore::RenderStyle const*, WebCore::RenderStyle*, WTF::RefPtr<WebCore::RenderStyle>&) + 233
6 com.apple.WebCore 0x00007fff8346bfe0 WebCore::CompositeAnimation::animate(WebCore::RenderObject*, WebCore::RenderStyle*, WebCore::RenderStyle*) + 208
7 com.apple.WebCore 0x00007fff8333b7df WebCore::AnimationController::updateAnimations(WebCore::RenderObject*, WebCore::RenderStyle*) + 239
8 com.apple.WebCore 0x00007fff8333b6d0 WebCore::RenderObject::setAnimatableStyle(WTF::PassRefPtr<WebCore::RenderStyle>) + 144
9 com.apple.WebCore 0x00007fff83348d16 WebCore::Node::setRenderStyle(WTF::PassRefPtr<WebCore::RenderStyle>) + 38
10 com.apple.WebCore 0x00007fff83348606 WebCore::Element::recalcStyle(WebCore::Node::StyleChange) + 854
11 com.apple.WebCore 0x00007fff833489a2 WebCore::Element::recalcStyle(WebCore::Node::StyleChange) + 1778
12 com.apple.WebCore 0x00007fff833489a2 WebCore::Element::recalcStyle(WebCore::Node::StyleChange) + 1778
13 com.apple.WebCore 0x00007fff833489a2 WebCore::Element::recalcStyle(WebCore::Node::StyleChange) + 1778
14 com.apple.WebCore 0x00007fff8331805f WebCore::Document::recalcStyle(WebCore::Node::StyleChange) + 559
15 com.apple.WebCore 0x00007fff833420c3 WebCore::Document::updateStyleIfNeeded() + 67
16 com.apple.WebCore 0x00007fff8334dcb7 WebCore::Document::updateLayout() + 55
17 com.apple.WebCore 0x00007fff8334dc65 WebCore::Document::updateLayoutIgnorePendingStylesheets() + 133
18 com.apple.WebCore 0x00007fff838851d7 WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue(WebCore::CSSPropertyID, WebCore::EUpdateLayout) const + 71
19 com.apple.WebCore 0x00007fff83898a56 WebCore::CSSComputedStyleDeclaration::getPropertyCSSValueInternal(WebCore::CSSPropertyID) + 22
20 com.apple.WebCore 0x00007fff83b3400c WebCore::cssPropertyGetter(JSC::ExecState*, WebCore::JSCSSStyleDeclaration*, unsigned int) + 44
21 com.apple.JavaScriptCore 0x00007fff8ce06cbe cti_op_get_by_val + 942
22 ??? 0x0000000100ef9d7f 0 + 4310670719
23 com.apple.JavaScriptCore 0x00007fff8cde1d70 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 912
24 com.apple.JavaScriptCore 0x00007fff8cde19d4 JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 52
25 com.apple.WebCore 0x00007fff83b240a1 WebCore::JSCallbackData::invokeCallback(JSC::JSValue, JSC::MarkedArgumentBuffer&, bool*) + 593
26 com.apple.WebCore 0x00007fff83be0383 WebCore::JSRequestAnimationFrameCallback::handleEvent(unsigned long long) + 275
27 com.apple.WebCore 0x00007fff83d8270b WebCore::ScriptedAnimationController::serviceScriptedAnimations(unsigned long long) + 203
28 com.apple.WebCore 0x00007fff838e1d9d WebCore::DisplayRefreshMonitor::notifyClients() + 93
29 com.apple.JavaScriptCore 0x00007fff8cdcba3a WTF::dispatchFunctionsFromMainThread() + 266
30 com.apple.Foundation 0x00007fff8939d5ca __NSThreadPerformPerform + 225
31 com.apple.CoreFoundation 0x00007fff8a882b31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
32 com.apple.CoreFoundation 0x00007fff8a88251d __CFRunLoopDoSources0 + 445
33 com.apple.CoreFoundation 0x00007fff8a8a57f5 __CFRunLoopRun + 789
34 com.apple.CoreFoundation 0x00007fff8a8a50e2 CFRunLoopRunSpecific + 290
35 com.apple.HIToolbox 0x00007fff8c823eb4 RunCurrentEventLoopInMode + 209
36 com.apple.HIToolbox 0x00007fff8c823c52 ReceiveNextEventCommon + 356
37 com.apple.HIToolbox 0x00007fff8c823ae3 BlockUntilNextEventMatchingListInMode + 62
38 com.apple.AppKit 0x00007fff8d4ce533 _DPSNextEvent + 685
39 com.apple.AppKit 0x00007fff8d4cddf2 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
40 com.apple.AppKit 0x00007fff8d4c51a3 -[NSApplication run] + 517
41 com.apple.WebCore 0x00007fff83d7a4ff WebCore::RunLoop::run() + 63
42 com.apple.WebKit2 0x00007fff89fe1462 WebKit::WebProcessMain(WebKit::CommandLine const&) + 2586
43 com.apple.WebKit2 0x00007fff89fa7bfd WebKitMain + 285
44 com.apple.WebProcess 0x0000000100a14e7b 0x100a14000 + 3707
45 libdyld.dylib 0x00007fff853717e1 start + 1
What version of Safari are you seeing this on? And does it happen with Dev tools open or closed?
Safari 7.0.1 is buggy, I'm betting upgrading to a later version will fix it.
See: https://github.com/angular/angularjs.org/issues/70
Related
My iOS App is getting crash developed using React Native. Below is the stack trace of crash.
Crashed: com.apple.root.default-qos
0 libsystem_kernel.dylib 0x7b78 __pthread_kill + 8
1 libsystem_pthread.dylib 0x73bc pthread_kill + 268
2 libsystem_c.dylib 0x2051c abort + 168
3 RCTImage 0x5d44 RCTBlurredImageWithRadius + 914
4 RCTImage 0x145d4 __68-[RCTImageView imageLoaderLoadedImage:error:forImageSource:partial:]_block_invoke.109 + 44
5 libdispatch.dylib 0x1e68 _dispatch_call_block_and_release + 32
6 libdispatch.dylib 0x3a2c _dispatch_client_callout + 20
7 libdispatch.dylib 0x6b44 _dispatch_queue_override_invoke + 784
8 libdispatch.dylib 0x15164 _dispatch_root_queue_drain + 396
9 libdispatch.dylib 0x1596c _dispatch_worker_thread2 + 164
10 libsystem_pthread.dylib 0x1080 _pthread_wqthread + 228
11 libsystem_pthread.dylib 0xe5c start_wqthread + 8
Any idea what is the reason for this issue.
ScrollView(.horizontal, showsIndicators: false, content: {
LazyHGrid(rows: gridLayout2, alignment: .center, spacing: columnSpacing, pinnedViews: [], content: {
Section(
header: SectionView(rotateClockwise: false, headerText: "Premium Store"),
footer: SectionView(rotateClockwise: true, headerText: "Premium Store")) {
ForEach(premiumStoreItems) { item in
StoreItemView(storeItem: item)
}
}
}) //: LAZYHGRID
.frame(height: 200)
.padding(15)
})
The crash is occurring in the ForEach loop.
If I comment the ForEach and pass in 1 specific item from my array, it works fine. However I need to display all my items in my array.
I am not sure what to do here.
The following code works fine.
//ForEach(premiumStoreItems) { item in
StoreItemView(storeItem: premiumStoreItems[0])
//}
CRASH LOG (sorry I didnt know where to get it)
Application Specific Information:
Fatal error: each layout item may only occur once: file SwiftUI, line 0
------ FULL CRASH LOG
Process: AppExample001 [3525]
Path: /Users/USER/Library/Developer/Xcode/UserData/Previews/Simulator Devices/C93C2BE8-C23A-4813-9D6C-110E87786FFE/data/Containers/Bundle/Application/40562FF7-7B66-4BE4-915A-5A2A35AD3EC2/AppExample001.app/AppExample001
Identifier: AppExample001
Version: 1.0 (1)
Code Type: X86-64 (Native)
Parent Process: launchd_sim [2488]
Responsible: SimulatorTrampoline [611]
User ID: 501
Date/Time: 2021-04-07 12:23:50.173 -0400
OS Version: macOS 11.2.3 (20D91)
Report Version: 12
Bridge OS Version: 5.2 (18P4347)
Anonymous UUID: 5A68DF80-DD1B-1132-4597-BBC26C334627
Time Awake Since Boot: 7000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Illegal instruction: 4
Termination Reason: Namespace SIGNAL, Code 0x4
Terminating Process: exc handler [3525]
ID Vend/Dev
95f5 687f1002
Seconds Ago ID Type
6900.0 95f5 Attach
Application Specific Information:
Fatal error: each layout item may only occur once: file SwiftUI, line 0
CoreSimulator 732.18.6 - Device: iPhone SE (2nd generation) (C93C2BE8-C23A-4813-9D6C-110E87786FFE) - Runtime: iOS 14.4 (18D46) - DeviceType: iPhone SE (2nd generation)
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libswiftCore.dylib 0x00007fff2fc85004 assertionFailure(::file:line:flags:) + 532
1 com.apple.SwiftUI 0x00007fff572e9d24 ViewCache.commitPlacedChildren(from:to:) + 4020
2 com.apple.SwiftUI 0x00007fff571a1f16 specialized IncrementalChildPlacements.updateValue() + 1558
3 com.apple.SwiftUI 0x00007fff572be37f partial apply for specialized implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init(:) + 15
4 com.apple.AttributeGraph 0x00007fff4cd78723 AG::Graph::UpdateStack::update() + 505
5 com.apple.AttributeGraph 0x00007fff4cd78bb9 AG::Graph::update_attribute(AG::data::ptr<AG::Node>, bool) + 335
6 com.apple.AttributeGraph 0x00007fff4cd7d85f AG::Graph::input_value_ref_slow(AG::data::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, bool*, long) + 523
7 com.apple.AttributeGraph 0x00007fff4cd8edc5 AGGraphGetValue + 203
8 com.apple.SwiftUI 0x00007fff572edac0 IncrementalPreference.children.getter + 48
9 com.apple.SwiftUI 0x00007fff572edb95 IncrementalPreference.value.getter + 85
10 com.apple.SwiftUI 0x00007fff572ede1c protocol witness for Rule.value.getter in conformance IncrementalPreference + 28
11 com.apple.AttributeGraph 0x00007fff4cd91907 dispatch thunk of Rule.value.getter + 7
12 com.apple.SwiftUI 0x00007fff570e9a18 implicit closure #2 in implicit closure #1 in closure #1 in closure #1 in Attribute.init(_:) + 56
13 com.apple.AttributeGraph 0x00007fff4cd78723 AG::Graph::UpdateStack::update() + 505
14 com.apple.AttributeGraph 0x00007fff4cd78bb9 AG::Graph::update_attribute(AG::data::ptr<AG::Node>, bool) + 335
15 com.apple.AttributeGraph 0x00007fff4cd7d318 AG::Graph::value_ref(AG::AttributeID, AGSwiftMetadata const*, bool*) + 130
16 com.apple.AttributeGraph 0x00007fff4cd8ee13 AGGraphGetValue + 281
17 com.apple.SwiftUI 0x00007fff57987807 GraphHost.updatePreferences() + 39
18 com.apple.SwiftUI 0x00007fff57458cbf ViewGraph.updateOutputs(at:) + 95
19 com.apple.SwiftUI 0x00007fff573f04e4 specialized closure #1 in ViewRendererHost.render(interval:updateDisplayList:) + 1316
20 com.apple.SwiftUI 0x00007fff573ed28e specialized ViewRendererHost.render(interval:updateDisplayList:) + 366
21 com.apple.SwiftUI 0x00007fff57a59c0e specialized UIHostingController._render(seconds:) + 46
22 com.apple.dt.XCPreviewKit 0x000000010c117536 0x10c10a000 + 54582
23 com.apple.dt.XCPreviewKit 0x000000010c1246eb 0x10c10a000 + 108267
24 com.apple.dt.XCPreviewKit 0x000000010c11b91f 0x10c10a000 + 71967
25 com.apple.dt.XCPreviewKit 0x000000010c11bc08 0x10c10a000 + 72712
26 com.apple.dt.XCPreviewKit 0x000000010c11ddff 0x10c10a000 + 81407
27 com.apple.dt.XCPreviewKit 0x000000010c11c274 0x10c10a000 + 74356
28 com.apple.dt.XCPreviewKit 0x000000010c1134e3 0x10c10a000 + 38115
29 com.apple.dt.XCPreviewKit 0x000000010c112eee 0x10c10a000 + 36590
30 libdispatch.dylib 0x00007fff2010532f _dispatch_call_block_and_release + 12
31 libdispatch.dylib 0x00007fff20106508 _dispatch_client_callout + 8
32 libdispatch.dylib 0x00007fff20112ff7 dispatch_main_queue_callback_4CF + 1045
33 com.apple.CoreFoundation 0x00007fff2038fdbb CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
34 com.apple.CoreFoundation 0x00007fff2038a63e __CFRunLoopRun + 2685
35 com.apple.CoreFoundation 0x00007fff203896d6 CFRunLoopRunSpecific + 567
36 com.apple.GraphicsServices 0x00007fff2c257db3 GSEventRunModal + 139
37 com.apple.UIKitCore 0x00007fff24696cf7 -[UIApplication run] + 912
38 com.apple.UIKitCore 0x00007fff2469bba8 UIApplicationMain + 101
39 com.apple.SwiftUI 0x00007fff5791abc7 closure #1 in KitRendererCommon(:) + 119
40 com.apple.SwiftUI 0x00007fff5791ab3f runApp(:) + 143
41 com.apple.SwiftUI 0x00007fff5745212d static App.main() + 61
42 com.oneorangetree.AppExample001 0x000000010bfcaf4e static AppExample001App.$main() + 78
43 com.oneorangetree.AppExample001 0x000000010bfcafd4 main + 20
44 libdyld.dylib 0x00007fff2025a3e9 start + 1
ForEach is unable to identify the each item uniquely,
make sure your data model struct is confirm to identifiable protocol
try this on
ForEach(premiumStoreItems, id:\.self)
ForEach(premiumStoreItems, id:\.id) // if you've unique identifier with the name of "id"
I am fetching a list of items from an API. This works fine. I have a local variable in my view controller such that upon successfully fetch of the items from API, I am reloading my table view.
Recently in the line where I am appending contents of the array from API to my local array variable, I am now getting a crash. I have research severally on SO with no success. I keep getting the thesame error
This is code causing the crash
Irrelevant API fetch code
if refresh {
self?.items = ticketItems
}
else {
self?.ticketItems.append(contentsOf:
ticketItems)
}
Usually, I should not get a crash when appending the contents of an array. This is weird to me. Please Find error message:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: !CGSizeEqualToSize(size, CGSizeZero)'
*** First throw call stack:
(
0 CoreFoundation 0x0000000116bb86fb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x00000001157adac5 objc_exception_throw + 48
2 CoreFoundation 0x0000000116bb8482 +[NSException raise:format:arguments:] + 98
3 Foundation 0x000000010fe51927 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194
4 UIKitCore 0x000000011e0f0399 -[_UIUpdateVisibleCellsContext addSize:forIndexPath:] + 385
5 UIKitCore 0x000000011e0e8643 -[UICollectionViewFlowLayout shouldInvalidateLayoutForPreferredLayoutAttributes:withOriginalAttributes:] + 409
6 UIKitCore 0x000000011e0a2f08 -[UICollectionView _checkForPreferredAttributesInView:originalAttributes:] + 559
7 UIKitCore 0x000000011e0a3c24 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 1596
8 UIKitCore 0x000000011e0a35e2 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:] + 31
9 UIKitCore 0x000000011e0a8a8c -[UICollectionView _updateVisibleCellsNow:] + 6120
10 UIKitCore 0x000000011e0adbb6 -[UICollectionView layoutSubviews] + 365
11 UIKitCore 0x000000011ecf99c1 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1417
12 QuartzCore 0x0000000111cf7eae -[CALayer layoutSublayers] + 173
13 QuartzCore 0x0000000111cfcb88 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 396
14 QuartzCore 0x0000000111d08ee4 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 72
15 QuartzCore 0x0000000111c783aa _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 328
16 QuartzCore 0x0000000111caf584 _ZN2CA11Transaction6commitEv + 608
17 QuartzCore 0x0000000111cafede _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 76
18 CoreFoundation 0x0000000116b1f0f7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
19 CoreFoundation 0x0000000116b195be __CFRunLoopDoObservers + 430
20 CoreFoundation 0x0000000116b19c31 __CFRunLoopRun + 1505
21 CoreFoundation 0x0000000116b19302 CFRunLoopRunSpecific + 626
22 GraphicsServices 0x000000011be162fe GSEventRunModal + 65
23 UIKitCore 0x000000011e82bba2 UIApplicationMain + 140
24 Sterling Bank App 0x000000010c1be211 main + 225
25 libdyld.dylib 0x0000000118307541 start + 1
26 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I was getting the exact error:
'Invalid parameter not satisfying: !CGSizeEqualToSize(size, CGSizeZero)'
It was just because I forgot to set translatesAutoresizingMaskIntoConstraints to false for a subview I was adding to cell's contentView...
I have a text to speech feature in my news app, which my users use to read aloud news articles. I have used AVSpeechSynthesizer to this end. I have been seeing quite a lot of crashes in my live app, showing on Crashlytics. I have been able to reproduce this crash neither in a test setup while running the app through XCode, nor while using the live app on my iPhone. I am attaching the Crashlytics stack trace here:
#16
Crashed: AXSpeech
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x000041a1b76ca3c1
Crashed: AXSpeech
0 libsystem_pthread.dylib 0x1860ff764 pthread_mutex_lock$VARIANT$mp + 354
1 CoreFoundation 0x18639793c CFRunLoopSourceSignal + 68
2 Foundation 0x186de00c4 performQueueDequeue + 464
3 Foundation 0x186ecf218 __NSThreadPerformPerform + 136
4 CoreFoundation 0x18647b77c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
5 CoreFoundation 0x18647b6fc __CFRunLoopDoSource0 + 88
6 CoreFoundation 0x18647afd8 __CFRunLoopDoSources0 + 288
7 CoreFoundation 0x186478b5c __CFRunLoopRun + 1048
8 CoreFoundation 0x186398c58 CFRunLoopRunSpecific + 436
9 Foundation 0x186dcd594 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
10 libAXSpeechManager.dylib 0x195ccf854 -[AXSpeechThread main] + 284
11 Foundation 0x186ecf0f4 __NSThread__start__ + 996
12 libsystem_pthread.dylib 0x1860fc2b4 _pthread_body + 308
13 libsystem_pthread.dylib 0x1860fc180 _pthread_body + 310
14 libsystem_pthread.dylib 0x1860fab74 thread_start + 4
Its clear that the AXSpeech thread has crashed. Can someone please help me with this as I have been pulling my hair to no avail, and the dropping percentage of crash free users has been bothering me.
My app has the same issue with AVSpeechSynthesizer. Crashlytics shows that it happens when the app tries to init AVSpeechSynthesizer in the main thread. The crash happens in other thread with same stack trace as yours. Here is the stack trace of the main thread. It seems that the problem may be related to the shared audio session. Hope this will help you somehow.
com.apple.coreaudio.ASClientManager
0 libsystem_kernel.dylib 0x185693568 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1856933e0 mach_msg + 72
2 AudioToolbox 0x18982847c ASClient_AudioSessionCreateForPID + 168
3 AudioToolbox 0x189670fdc AudioSessionClient::AudioSessionClient(__CFRunLoop*, __CFString const*, void (*)(void*, unsigned int), void*, AudioSessionType, unsigned int) + 456
4 AudioToolbox 0x1897c36f4 AudioSessionClientManager::CreatePrimaryClient_Priv(__CFRunLoop*, __CFString const*, void (*)(void*, unsigned int), void*) + 568
5 AudioToolbox 0x1896721e8 invocation function for block in AudioSessionClientManager::CreatePrimaryClient(__CFRunLoop*, __CFString const*, void (*)(void*, unsigned int), void*) + 40
6 libdispatch.dylib 0x18551ea14 _dispatch_client_callout + 16
7 libdispatch.dylib 0x185527618 _dispatch_queue_barrier_sync_invoke_and_complete + 56
8 AudioToolbox 0x189671ef8 AudioSessionClientManager::CreatePrimaryClient(__CFRunLoop*, __CFString const*, void (*)(void*, unsigned int), void*) + 164
9 AudioToolbox 0x189671c50 AudioSessionClient::InitializeAudioSessionClient(__CFRunLoop*, __CFString const*, void (*)(void*, unsigned int), void*, AudioSessionType, unsigned int) + 92
10 AudioToolbox 0x189804c58 AudioSessionCreateSession_Priv + 600
11 AVFAudio 0x18b3d024c -[AVAudioSession initWithSessionType:] + 472
12 AVFAudio 0x18b3d1848 __32+[AVAudioSession sharedInstance]_block_invoke + 72
13 libdispatch.dylib 0x18551ea14 _dispatch_client_callout + 16
14 libdispatch.dylib 0x185522240 dispatch_once_f$VARIANT$mp + 60
15 AVFAudio 0x18b3d17fc +[AVAudioSession sharedInstance] + 112
16 AXSpeechImplementation 0x1a4c1f748 -[AVSpeechSynthesizer(Implementation) init]
17 Visuals2Go 0x1007ea430 -[SpeakManager init] (SpeakManager.m:47)
Looks like crash is due to dangling pointer, Use a shared speech session. This worked for me.
class mySpeechSynthesizerSession {
static let shared = mySpeechSynthesizerSession()
var speechSynthesizer: AVSpeechSynthesizer?
private init() {
speechSynthesizer = AVSpeechSynthesizer()
}
}
I am using a WebFrame to load a request to a website that is running Microsoft SilverLight. When I build my application using the 64-bit Intel architecture (x86_64), it runs fine. However, because I must use a third party library built for 32-bit Intel, I must build my application using that architecture. When I do that, I get the following error message
<Error>: clip: empty path.
prior to a second call to
- (void) webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame
and my application eventually crashes or hangs.
Has anyone experienced this problem and know what the issue may be? Is there some reason why this only happens when building for the 32-bit Intel architecture?
For what it's worth, here is a stack trace of the crash:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x000000007cabac94
VM Regions Near 0x7cabac94:
MALLOC_TINY 000000007c800000-000000007ca00000 [ 2048K] rw-/rwx SM=PRV
--> MALLOC_TINY 000000007ca00000-000000007cb00000 [ 1024K] rw-/rwx SM=COW
MALLOC_TINY 000000007cb00000-000000007cc00000 [ 1024K] rw-/rwx SM=PRV
Application Specific Information:
objc[44662]: garbage collection is OFF
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ??? 0x7cabac94 0 + 2091625620
1 com.microsoft.net.coreclr 0x0aaea95e GetCLRRuntimeHost + 220078
2 com.microsoft.net.coreclr 0x0aa2c23e MetaDataGetDispenser + 1383214
3 com.microsoft.net.coreclr 0x0ad799e3 PAL_InitializeCoreCLR + 57795
4 com.microsoft.net.coreclr 0x0aa2b1c5 MetaDataGetDispenser + 1378997
5 com.microsoft.net.coreclr 0x0aa2b49f MetaDataGetDispenser + 1379727
6 com.microsoft.net.coreclr 0x0aa2b60b MetaDataGetDispenser + 1380091
7 com.microsoft.net.coreclr 0x0aab3630 MetaDataGetDispenser + 1937184
8 com.microsoft.net.coreclr 0x0aab4f67 GetCLRRuntimeHost + 439
9 com.microsoft.SilverlightPlugin 0x09499a57 UI_GetSaveFileName + 37895
10 com.microsoft.SilverlightPlugin 0x093e5858 ippiDCTQuantInv8x8LS_JPEG_16s8u_C1R_SSE + 4824
11 com.microsoft.SilverlightPlugin 0x08cb7dc1 main + 769249
12 com.microsoft.SilverlightPlugin 0x09480ad7 LocalMessageReceive + 308343
13 com.microsoft.SilverlightPlugin 0x092789a1 PopupRoot_GetOpenPopups + 427361
14 com.microsoft.SilverlightPlugin 0x09273a65 PopupRoot_GetOpenPopups + 407077
15 com.microsoft.SilverlightPlugin 0x0925d8a6 PopupRoot_GetOpenPopups + 316518
16 com.microsoft.SilverlightPlugin 0x0925db19 PopupRoot_GetOpenPopups + 317145
17 com.apple.CoreFoundation 0x9c8667be __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
18 com.apple.CoreFoundation 0x9c8666fd __CFRunLoopDoObservers + 413
19 com.apple.CoreFoundation 0x9c838917 CFRunLoopRunSpecific + 375
20 com.apple.CoreFoundation 0x9c838798 CFRunLoopRunInMode + 120
21 com.apple.HIToolbox 0x97b91a7f RunCurrentEventLoopInMode + 318
22 com.apple.HIToolbox 0x97b98d9b ReceiveNextEventCommon + 381
23 com.apple.HIToolbox 0x97b98c0a BlockUntilNextEventMatchingListInMode + 88
24 com.apple.AppKit 0x9b358040 _DPSNextEvent + 678
25 com.apple.AppKit 0x9b3578ab -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 113
26 com.apple.AppKit 0x9b353c22 -[NSApplication run] + 911
27 com.apple.AppKit 0x9b5e818a NSApplicationMain + 1054
28 com.Vigience.TestBrowser 0x0009be09 start + 53
I am wondering if you are getting hit by issue 1 that I outlined in my answer over here. I see that you are not using Mono, but you are using webView, and the crash stack looks very similar. In similar cases, a number of us have had luck with changing the useragent string...