iOS和html5交互遇到的问题

(lldb) bt

* thread #1: tid = 0xfa315, 0x000000010edb6c6b libc++abi.dylib`__cxa_throw, queue = 'com.apple.coremedia.surrogatePlaybackItem[0x7f9cb29d0fb0]', stop reason = breakpoint 1.2

    frame #0: 0x000000010edb6c6b libc++abi.dylib`__cxa_throw

    frame #1: 0x0000000127582cab AudioCodecs`ACBaseCodec::GetPropertyInfo(unsigned int, unsigned int&, unsigned char&) + 461

    frame #2: 0x0000000127618c6e AudioCodecs`GetPropertyInfo(void*, unsigned int, unsigned int*, unsigned char*) + 38

    frame #3: 0x0000000111af9b4f AudioToolbox`GetFormatListFromCodec(OpaqueAudioComponentInstance*, AudioFormatInfo const*, unsigned int*, AudioFormatListItem*) + 63

    frame #4: 0x0000000111af9ce5 AudioToolbox`FetchFormatListFromCodecs(int (*)(OpaqueAudioComponentInstance*, AudioFormatInfo const*, unsigned int*, AudioFormatListItem*), AudioFormatInfo const*, unsigned int, unsigned int*, AudioFormatListItem*) + 309

    frame #5: 0x00000001119ba7c0 AudioToolbox`AudioFormatGetPropertyInfo + 1632

    frame #6: 0x000000010981df98 CoreMedia`FigAudioFormatDescriptionCreateFormatListDispatchOnceCallback + 130

    frame #7: 0x000000010e9fd3eb libdispatch.dylib`_dispatch_client_callout + 8

    frame #8: 0x000000010e9e8d68 libdispatch.dylib`dispatch_once_f + 543

    frame #9: 0x000000010981df14 CoreMedia`CMAudioFormatDescriptionGetFormatList + 168

    frame #10: 0x000000010981e054 CoreMedia`CMAudioFormatDescriptionGetRichestDecodableFormat + 22

    frame #11: 0x00000001162bb2f0 MediaToolbox`FPSupport_GetDefaultTrackIDForMediaType + 333

    frame #12: 0x0000000116257947 MediaToolbox`itemfig_setBasicInspectables + 1240

    frame #13: 0x0000000116275c32 MediaToolbox`itemfig_retrieveAssetBasicsIfReady + 256

    frame #14: 0x000000011626e06c MediaToolbox`playerfig_CreatePlaybackItemFromAsset + 693

    frame #15: 0x0000000116413e77 MediaToolbox`surrogatePlaybackItem_createRealItemInternal + 114

    frame #16: 0x000000010e9fd3eb libdispatch.dylib`_dispatch_client_callout + 8

    frame #17: 0x000000010e9e1ef5 libdispatch.dylib`_dispatch_barrier_sync_f_invoke + 393

    frame #18: 0x0000000116413969 MediaToolbox`surrogatePlaybackItem_createRealItem + 70

    frame #19: 0x00000001164168cd MediaToolbox`surrogatePlayer_createRealItemAndRealPlayer + 130

    frame #20: 0x00000001164165a2 MediaToolbox`surrogatePlaybackItem_CopyProperty + 431

    frame #21: 0x0000000116252f46 MediaToolbox`itemasync_CopyProperty + 397

    frame #22: 0x000000010d2d053b AVFoundation`+[AVPlayerItem _copyTimebaseFromFigPlaybackItem:] + 89

    frame #23: 0x000000010d2d0744 AVFoundation`-[AVPlayerItem _updateTimebase] + 73

    frame #24: 0x000000010d2c8a1f AVFoundation`-[AVPlayerItem _configurePlaybackItem] + 2536

    frame #25: 0x000000010d2c9762 AVFoundation`-[AVPlayerItem _attachToFigPlayer] + 1315

    frame #26: 0x000000010d2c9ce8 AVFoundation`-[AVPlayerItem _addToPlayQueueOfFigPlayerOfPlayer:afterFigPlaybackItemOfItem:] + 73

    frame #27: 0x000000010d2b7f09 AVFoundation`__67-[AVPlayer _createAndConfigureFigPlayerWithType:completionHandler:]_block_invoke477 + 196

    frame #28: 0x000000010d2b8729 AVFoundation`-[AVPlayer _applyLinkedListOfItemsToFigPlayerUsingBlock:] + 267

    frame #29: 0x000000010d2b7bea AVFoundation`__67-[AVPlayer _createAndConfigureFigPlayerWithType:completionHandler:]_block_invoke + 2586

    frame #30: 0x000000010d2b71b3 AVFoundation`-[AVPlayer _createAndConfigureFigPlayerWithType:completionHandler:] + 932

    frame #31: 0x000000010d2b8b38 AVFoundation`-[AVPlayer _applyPlayQueueChangesToFigPlayerWithCompletionHandler:] + 564

    frame #32: 0x000000010d2b5012 AVFoundation`__103-[AVPlayer _runOnIvarAccessQueueOperationThatMayChangeCurrentItemWithPreflightBlock:modificationBlock:]_block_invoke310 + 91

    frame #33: 0x000000010d2b4d10 AVFoundation`-[AVPlayer _runOnIvarAccessQueueOperationThatMayChangeCurrentItemWithPreflightBlock:modificationBlock:] + 517

    frame #34: 0x000000010d2b9516 AVFoundation`-[AVPlayer replaceCurrentItemWithPlayerItem:] + 285

    frame #35: 0x00000001131a6242 WebCore`WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayer() + 610

    frame #36: 0x000000011319ffd6 WebCore`WebCore::MediaPlayerPrivateAVFoundation::setPreload(WebCore::MediaPlayerEnums::Preload) + 166

    frame #37: 0x0000000112c7735d WebCore`WebCore::HTMLMediaElement::updatePlayState() + 605

    frame #38: 0x0000000112c78f63 WebCore`WebCore::HTMLMediaElement::playInternal() + 611

    frame #39: 0x0000000112f3ded2 WebCore`WebCore::jsHTMLMediaElementPrototypeFunctionPlay(JSC::ExecState*) + 130

    frame #40: 0x000002ee39e92028

    frame #41: 0x00000001178ea368 JavaScriptCore`llint_entry + 22911

    frame #42: 0x00000001178ea52a JavaScriptCore`llint_entry + 23361

    frame #43: 0x00000001178ea52a JavaScriptCore`llint_entry + 23361

    frame #44: 0x00000001178e47d9 JavaScriptCore`vmEntryToJavaScript + 326

    frame #45: 0x00000001177b6959 JavaScriptCore`JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) + 169

    frame #46: 0x000000011779d5ad JavaScriptCore`JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 493

    frame #47: 0x0000000117571bd7 JavaScriptCore`JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, WTF::NakedPtr<JSC::Exception>&) + 71

    frame #48: 0x0000000112ebcc1a WebCore`WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext*, WebCore::Event*) + 1002

    frame #49: 0x0000000112b09630 WebCore`WebCore::EventTarget::fireEventListeners(WebCore::Event*, WebCore::EventTargetData*, WTF::Vector<WebCore::RegisteredEventListener, 1ul, WTF::CrashOnOverflow, 16ul>&) + 752

    frame #50: 0x0000000112b09267 WebCore`WebCore::EventTarget::fireEventListeners(WebCore::Event*) + 311

    frame #51: 0x0000000112af229f WebCore`WebCore::EventContext::handleLocalEvents(WebCore::Event&) const + 95

    frame #52: 0x0000000112af311f WebCore`WebCore::EventDispatcher::dispatchEvent(WebCore::Node*, WTF::PassRefPtr<WebCore::Event>) + 1023

    frame #53: 0x00000001131f4c5d WebCore`WebCore::Node::dispatchEvent(WTF::PassRefPtr<WebCore::Event>) + 29

    frame #54: 0x0000000112b09078 WebCore`WebCore::EventTarget::dispatchEvent(WTF::PassRefPtr<WebCore::Event>, int&) + 120

    frame #55: 0x0000000112afe0b8 WebCore`WebCore::EventHandler::dispatchTouchEvent(WebCore::PlatformTouchEvent const&, WTF::AtomicString const&, WTF::HashMap<WebCore::EventTarget*, WTF::Vector<WTF::RefPtr<WebCore::Touch>, 0ul, WTF::CrashOnOverflow, 16ul>*, WTF::PtrHash<WebCore::EventTarget*>, WTF::HashTraits<WebCore::EventTarget*>, WTF::HashTraits<WTF::Vector<WTF::RefPtr<WebCore::Touch>, 0ul, WTF::CrashOnOverflow, 16ul>*> > const&, float, float) + 1032

    frame #56: 0x0000000112b005b1 WebCore`WebCore::EventHandler::handleTouchEvent(WebCore::PlatformTouchEvent const&) + 7585

    frame #57: 0x0000000112b01349 WebCore`WebCore::EventHandler::touchEvent(WebEvent*) + 169

    frame #58: 0x0000000117300b36 WebKitLegacy`-[WebHTMLView touch:] + 70

    frame #59: 0x00000001136a930d WebCore`-[WAKView _selfHandleEvent:] + 125

    frame #60: 0x00000001136a926f WebCore`-[WAKView handleEvent:] + 63

    frame #61: 0x00000001136ac424 WebCore`-[WAKWindow sendEventSynchronously:] + 196

    frame #62: 0x000000010b658a64 UIKit`-[UIWebBrowserView _dispatchWebEvent:] + 74

    frame #63: 0x000000010b658f4e UIKit`-[UIWebBrowserView _webTouchEventsRecognized:] + 588

    frame #64: 0x000000010b2ebddb UIKit`-[UIWebTouchEventsGestureRecognizer _processTouches:withEvent:type:] + 501

    frame #65: 0x000000010b2ebfeb UIKit`-[UIWebTouchEventsGestureRecognizer touchesBegan:withEvent:] + 210

    frame #66: 0x000000010b4a3bcf UIKit`-[UIGestureRecognizer _touchesBegan:withEvent:] + 113

    frame #67: 0x000000010b029196 UIKit`-[UIWindow _sendGesturesForEvent:] + 377

    frame #68: 0x000000010b02a6c4 UIKit`-[UIWindow sendEvent:] + 849

    frame #69: 0x000000010afd5dc6 UIKit`-[UIApplication sendEvent:] + 263

    frame #70: 0x000000010afaf553 UIKit`_UIApplicationHandleEventQueue + 6660

    frame #71: 0x000000010d9bc301 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17

    frame #72: 0x000000010d9b222c CoreFoundation`__CFRunLoopDoSources0 + 556

    frame #73: 0x000000010d9b16e3 CoreFoundation`__CFRunLoopRun + 867

    frame #74: 0x000000010d9b10f8 CoreFoundation`CFRunLoopRunSpecific + 488

    frame #75: 0x000000010ee7dad2 GraphicsServices`GSEventRunModal + 161

    frame #76: 0x000000010afb4f09 UIKit`UIApplicationMain + 171

  * frame #77: 0x0000000108f0bf8f VIVAT`main(argc=1, argv=0x00007fff56f14618) + 111 at main.m:15

    frame #78: 0x000000010ea3192d libdyld.dylib`start + 1

    frame #79: 0x000000010ea3192d libdyld.dylib`start + 1


最近做iOSHTML5交互,遇到的问题:HTML5页面是一个游戏页面能够玩游戏时能播放音乐,在真机上运行正常,但是在模拟器上运行老是崩溃。经过排查知道了是因为打了全局断点的原因,去掉全局断点运行就没有事情了。

还是没有弄明白为什么打了全局断点就崩溃了,个人感觉和HTML5实现的有关。

有知道的朋友给解惑一下吧。


其他文章:http://stackoverflow.com/questions/9683547/avaudioplayer-throws-breakpoint-in-debug-mode


猜你喜欢

转载自blog.csdn.net/huanghaiyan_123/article/details/51994694
今日推荐