[0.9.3] Mac GUI: loading a .mov with WMV tracks causes crash

Archive of historical bug reports.
Please use the GitHub link above to report issues.
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
Mr. H
Posts: 25
Joined: Mon Nov 24, 2008 2:32 pm

[0.9.3] Mac GUI: loading a .mov with WMV tracks causes crash

Post by Mr. H »

Hi, I've just started using 0.9.3 [on Mac OS X Intel 10.5.5 on a MacBook Pro late 2008 2.4 GHz 2GiB RAM] and have discovered that trying to load a .mov that contains a video track encoded in WMV 9 and an audio track in WMA 9 causes a crash. The same tracks encapsulated in a .wmv load fine. Another .mov I tried with H.264 video and AAC audio also loaded fine.

An example wmv with WMV 9 and WMA 9 tracks can be obtained from Microsoft here: http://download.microsoft.com/download/ ... es_720.exe annoyingly, this is a self-extracting .zip that requires Windows to de-compress. Once the video file has been obtained, this can be opened in QuickTime Pro under OS X with Telestream's Flip4Mac codec installed, and using the "save as" command, re-encapsulated inside a .mov wrapper.

Interestingly, with this video, trying to load the .wmv results in "no valid source found" (as I said my WMVs load fine). If it's re-saved as a .mov from QuickTime and you try to load it into Handbrake, then it will cause the crash.

It would be great if this bug could be fixed, because Handbrake's WMV decoder is a lot faster than the Flip4Mac codec. QuickTime Pro could be used to edit a WMV, which could be saved as a .mov and then compressed with Handbrake. If your editing involves removing a substantial portion of the video before encoding this will obviously save a lot of encoding time.

Beyond the usual start-up stuff, the log file (thanks jbrjake for eventually pointing me in the right direction) is not written to:

Code: Select all

HandBrake Activity Log for Session (Cleared): 2008-11-24 18:38:50 +0000

[18:38:50] macgui: Handbrake Version: 0.9.3 (2008112300)
[18:38:50] hb_init: checking cpu count
[18:38:50] hb_init: starting libhb thread
[18:38:50] hb_init: checking cpu count
[18:38:50] hb_init: starting libhb thread
the crash report from Console is as follows:

Code: Select all

Process:         HandBrake [1392]
Path:            /Applications/HandBrake.app/Contents/MacOS/HandBrake
Identifier:      org.m0k.handbrake
Version:         0.9.3 (2008112300)
Code Type:       X86 (Native)
Parent Process:  launchd [111]

Date/Time:       2008-11-24 18:39:16.700 +0000
OS Version:      Mac OS X 10.5.5 (9F2088)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000020
Crashed Thread:  15

Thread 0:
0   com.apple.CoreFoundation      	0x91a2cef4 __CFXNotificationUnregisterTable + 4
1   com.apple.CoreFoundation      	0x91a2d4df _CFXNotificationUnregister + 847
2   com.apple.Foundation          	0x94ce8e5e -[NSNotificationCenter removeObserver:name:object:] + 110
3   com.apple.Foundation          	0x94ced669 -[NSNotificationCenter removeObserver:] + 57
4   com.apple.AppKit              	0x9605a5fe -[NSPopUpButtonCell dealloc] + 63
5   com.apple.AppKit              	0x9603643c -[NSControl dealloc] + 103
6   com.apple.AppKit              	0x9605a5b5 -[NSPopUpButton dealloc] + 83
7   com.apple.AppKit              	0x961c0af4 -[NSNavNodePopUpButton dealloc] + 203
8   com.apple.Foundation          	0x94cbe20f NSPopAutoreleasePool + 431
9   com.apple.AppKit              	0x95f5ab8c -[NSApplication run] + 892
10  com.apple.AppKit              	0x95f27d64 NSApplicationMain + 574
11  org.m0k.handbrake             	0x00002f06 start + 54

Thread 1:
0   libSystem.B.dylib             	0x9178bd06 mach_msg_trap + 10
1   libSystem.B.dylib             	0x917934fc mach_msg + 72
2   com.apple.CoreFoundation      	0x91a4a0ce CFRunLoopRunSpecific + 1790
3   com.apple.CoreFoundation      	0x91a4acf8 CFRunLoopRunInMode + 88
4   com.apple.Foundation          	0x94d26100 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 320
5   com.apple.Foundation          	0x94cc2bad -[NSThread main] + 45
6   com.apple.Foundation          	0x94cc2754 __NSThread__main__ + 308
7   libSystem.B.dylib             	0x917bcf79 _pthread_start + 321
8   libSystem.B.dylib             	0x917bce36 thread_start + 34

Thread 2:
0   libSystem.B.dylib             	0x9178be26 mach_wait_until + 10
1   libSystem.B.dylib             	0x9180339d nanosleep + 314
2   libSystem.B.dylib             	0x9180325d usleep + 61
3   org.m0k.handbrake             	0x00039c9a thread_func + 170
4   org.m0k.handbrake             	0x0003fc8a hb_thread_func + 74
5   libSystem.B.dylib             	0x917bcf79 _pthread_start + 321
6   libSystem.B.dylib             	0x917bce36 thread_start + 34

Thread 3:
0   libSystem.B.dylib             	0x9178be26 mach_wait_until + 10
1   libSystem.B.dylib             	0x9180339d nanosleep + 314
2   libSystem.B.dylib             	0x9180325d usleep + 61
3   org.m0k.handbrake             	0x00039c9a thread_func + 170
4   org.m0k.handbrake             	0x0003fc8a hb_thread_func + 74
5   libSystem.B.dylib             	0x917bcf79 _pthread_start + 321
6   libSystem.B.dylib             	0x917bce36 thread_start + 34

Thread 4:
0   libSystem.B.dylib             	0x917db672 select$DARWIN_EXTSN + 10
1   libSystem.B.dylib             	0x917bcf79 _pthread_start + 321
2   libSystem.B.dylib             	0x917bce36 thread_start + 34

Thread 5:
0   libSystem.B.dylib             	0x91792eee __semwait_signal + 10
1   libSystem.B.dylib             	0x917bdbf1 pthread_cond_wait$UNIX2003 + 73
2   com.apple.QuartzCore          	0x96814ad1 fe_fragment_thread + 54
3   libSystem.B.dylib             	0x917bcf79 _pthread_start + 321
4   libSystem.B.dylib             	0x917bce36 thread_start + 34

Thread 6:
0   libSystem.B.dylib             	0x9178bd06 mach_msg_trap + 10
1   libSystem.B.dylib             	0x917934fc mach_msg + 72
2   com.apple.CoreFoundation      	0x91a4a0ce CFRunLoopRunSpecific + 1790
3   com.apple.CoreFoundation      	0x91a4acf8 CFRunLoopRunInMode + 88
4   com.apple.CFNetwork           	0x95ea8eca CFURLCacheWorkerThread(void*) + 396
5   libSystem.B.dylib             	0x917bcf79 _pthread_start + 321
6   libSystem.B.dylib             	0x917bce36 thread_start + 34

Thread 7:
0   libSystem.B.dylib             	0x918681a2 __semwait_signal_nocancel + 10
1   libSystem.B.dylib             	0x91792cb6 usleep$UNIX2003 + 61
2   ...ple.CoreServices.OSServices	0x950f64e6 BonjourBrowser::cancel() + 86
3   ...ple.CoreServices.OSServices	0x9508111e BonjourBrowser::~BonjourBrowser() + 22
4   ...ple.CoreServices.OSServices	0x950810da ServerBrowser::stopBrowsingDomain(__CFString const*) + 114
5   ...ple.CoreServices.OSServices	0x95081036 NodeBrowser::unloadBonjour() + 180
6   ...ple.CoreServices.OSServices	0x95080dab NodeBrowser::~NodeBrowser() + 19
7   ...ple.CoreServices.OSServices	0x95080d84 NodeBrowser::destroyCallBack(__CFRunLoopTimer*, void*) + 22
8   com.apple.CoreFoundation      	0x91a4ab45 CFRunLoopRunSpecific + 4469
9   com.apple.CoreFoundation      	0x91a4ad54 CFRunLoopRun + 84
10  com.apple.DesktopServices     	0x951c5e83 TSystemNotificationTask::SystemNotificationTaskProc(void*) + 123
11  ...ple.CoreServices.CarbonCore	0x90156463 PrivateMPEntryPoint + 56
12  libSystem.B.dylib             	0x917bcf79 _pthread_start + 321
13  libSystem.B.dylib             	0x917bce36 thread_start + 34

Thread 8:
0   libSystem.B.dylib             	0x9178bd06 mach_msg_trap + 10
1   libSystem.B.dylib             	0x917934fc mach_msg + 72
2   com.apple.CoreFoundation      	0x91a4a0ce CFRunLoopRunSpecific + 1790
3   com.apple.CoreFoundation      	0x91a4ad54 CFRunLoopRun + 84
4   com.apple.DesktopServices     	0x951c5ffc TFSEventsNotificationTask::FSEventsNotificationTaskProc(void*) + 216
5   ...ple.CoreServices.CarbonCore	0x90156463 PrivateMPEntryPoint + 56
6   libSystem.B.dylib             	0x917bcf79 _pthread_start + 321
7   libSystem.B.dylib             	0x917bce36 thread_start + 34

Thread 9:
0   libSystem.B.dylib             	0x91792eee __semwait_signal + 10
1   libSystem.B.dylib             	0x917bdbf1 pthread_cond_wait$UNIX2003 + 73
2   ...ple.CoreServices.CarbonCore	0x9015824f TSWaitOnCondition + 126
3   ...ple.CoreServices.CarbonCore	0x9013718e TSWaitOnConditionTimedRelative + 202
4   ...ple.CoreServices.CarbonCore	0x90157ecc MPWaitOnQueue + 208
5   com.apple.DesktopServices     	0x951d0fba TNodeSyncTask::SyncTaskProc(void*) + 84
6   ...ple.CoreServices.CarbonCore	0x90156463 PrivateMPEntryPoint + 56
7   libSystem.B.dylib             	0x917bcf79 _pthread_start + 321
8   libSystem.B.dylib             	0x917bce36 thread_start + 34

Thread 10:
0   libSystem.B.dylib             	0x9178bd66 semaphore_timedwait_signal_trap + 10
1   libSystem.B.dylib             	0x917be0d3 _pthread_cond_wait + 1244
2   libSystem.B.dylib             	0x917bf957 pthread_cond_timedwait_relative_np + 47
3   ...ple.CoreServices.CarbonCore	0x901371ba TSWaitOnConditionTimedRelative + 246
4   ...ple.CoreServices.CarbonCore	0x90157ecc MPWaitOnQueue + 208
5   com.apple.DesktopServices     	0x951d2f04 TFolderSizeTask::FolderSizeTaskProc(void*) + 104
6   ...ple.CoreServices.CarbonCore	0x90156463 PrivateMPEntryPoint + 56
7   libSystem.B.dylib             	0x917bcf79 _pthread_start + 321
8   libSystem.B.dylib             	0x917bce36 thread_start + 34

Thread 11:
0   libSystem.B.dylib             	0x917bc7ea kevent + 10
1   libSystem.B.dylib             	0x917bcf79 _pthread_start + 321
2   libSystem.B.dylib             	0x917bce36 thread_start + 34

Thread 12:
0   libSystem.B.dylib             	0x918681a2 __semwait_signal_nocancel + 10
1   libSystem.B.dylib             	0x91792cb6 usleep$UNIX2003 + 61
2   com.apple.AppKit              	0x95fc8759 -[NSUIHeartBeat _heartBeatThread:] + 2042
3   com.apple.Foundation          	0x94cc2bad -[NSThread main] + 45
4   com.apple.Foundation          	0x94cc2754 __NSThread__main__ + 308
5   libSystem.B.dylib             	0x917bcf79 _pthread_start + 321
6   libSystem.B.dylib             	0x917bce36 thread_start + 34

Thread 13:
0   libSystem.B.dylib             	0x9178bd66 semaphore_timedwait_signal_trap + 10
1   libSystem.B.dylib             	0x917be0d3 _pthread_cond_wait + 1244
2   libSystem.B.dylib             	0x917bf957 pthread_cond_timedwait_relative_np + 47
3   ...ple.CoreServices.CarbonCore	0x901371ba TSWaitOnConditionTimedRelative + 246
4   ...ple.CoreServices.CarbonCore	0x90157ecc MPWaitOnQueue + 208
5   com.apple.DesktopServices     	0x951d88e1 TPropertyTask::PropertyTaskProc(void*) + 105
6   ...ple.CoreServices.CarbonCore	0x90156463 PrivateMPEntryPoint + 56
7   libSystem.B.dylib             	0x917bcf79 _pthread_start + 321
8   libSystem.B.dylib             	0x917bce36 thread_start + 34

Thread 14:
0   libSystem.B.dylib             	0x9178bd66 semaphore_timedwait_signal_trap + 10
1   libSystem.B.dylib             	0x917be0d3 _pthread_cond_wait + 1244
2   libSystem.B.dylib             	0x917bf957 pthread_cond_timedwait_relative_np + 47
3   com.apple.Foundation          	0x94d08b1c -[NSCondition waitUntilDate:] + 236
4   com.apple.Foundation          	0x94d08930 -[NSConditionLock lockWhenCondition:beforeDate:] + 144
5   com.apple.AppKit              	0x961bcc40 +[NSNavFBENodePreviewHelper _subthreadComputePreviewThumbnailImages] + 278
6   com.apple.Foundation          	0x94cc2bad -[NSThread main] + 45
7   com.apple.Foundation          	0x94cc2754 __NSThread__main__ + 308
8   libSystem.B.dylib             	0x917bcf79 _pthread_start + 321
9   libSystem.B.dylib             	0x917bce36 thread_start + 34

Thread 15 Crashed:
0   org.m0k.handbrake             	0x00165669 avcodec_decode_video + 57
1   org.m0k.handbrake             	0x0004bf9f decavcodecviWork + 831
2   org.m0k.handbrake             	0x000420bb ScanFunc + 875
3   org.m0k.handbrake             	0x0003fc8a hb_thread_func + 74
4   libSystem.B.dylib             	0x917bcf79 _pthread_start + 321
5   libSystem.B.dylib             	0x917bce36 thread_start + 34

Thread 15 crashed with X86 Thread State (32-bit):
  eax: 0x00123800  ebx: 0x000002d0  ecx: 0x00000000  edx: 0x00000000
  edi: 0xb080086c  esi: 0x010fba00  ebp: 0xb0800888  esp: 0xb08006b0
   ss: 0x0000001f  efl: 0x00010246  eip: 0x00165669   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x0000001f   gs: 0x00000037
  cr2: 0x00000020

Binary Images:
    0x1000 -   0x88effb +org.m0k.handbrake 0.9.3 (2008112300) <d92a08460d4c5719aa43590cd84f9ea5> /Applications/HandBrake.app/Contents/MacOS/HandBrake
  0xe71000 -   0xe7dff7 +org.andymatuschak.Sparkle ??? (1.1) /Applications/HandBrake.app/Contents/Frameworks/Sparkle.framework/Versions/A/Sparkle
  0xe94000 -   0xe95ffd +com.1passwd.InputManager 2.9.5.Beta-1 (7320) <d546f8004f28e0955b1e5e27777352c5> /Library/InputManagers/1PasswdIM/1PasswdIM.bundle/Contents/MacOS/1PasswdIM
  0xea5000 -   0xea7fff +com.unsanity.menuextraenabler 1.0.3 (1.0.3) /Library/InputManagers/Menu Extra Enabler/Menu Extra Enabler.bundle/Contents/MacOS/Menu Extra Enabler
0x14a3f000 - 0x14c27fff  com.apple.RawCamera.bundle 2.0.11 (410) <7704cc57f7daceb81672bfdc4434da40> /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
0x15023000 - 0x15028ff3  libCGXCoreImage.A.dylib ??? (???) <181fba4a2fc2632a6f1f8503ead44953> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXCoreImage.A.dylib
0x15037000 - 0x1503dffe +libdvdcss.2.dylib ??? (???) <2f8cbab9c8fbeacb01c3c28a9d8ae05c> /Applications/VLC.app/Contents/MacOS/lib/libdvdcss.2.dylib
0x165c4000 - 0x165ceffe  com.apple.URLMount 3.1.1 (3.1.1) <a6aece1c9c34992e08acf4b68e523f90> /System/Library/PrivateFrameworks/URLMount.framework/URLMount
0x8fe00000 - 0x8fe2da53  dyld 96.2 (???) <0d39f113441616327c292c949f3caa3e> /usr/lib/dyld
0x9000f000 - 0x9000fffa  com.apple.CoreServices 32 (32) <373d6a888f9204641f313bc6070ae065> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x90010000 - 0x90059fef  com.apple.Metadata 10.5.2 (398.23) <d96f6357a8d6f976173478f27172b021> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x9005a000 - 0x9010cffb  libcrypto.0.9.7.dylib ??? (???) <75b80bff0d5cfaf10b6b6fe982da3578> /usr/lib/libcrypto.0.9.7.dylib
0x9010d000 - 0x903e7ff3  com.apple.CoreServices.CarbonCore 786.6 (786.6) <956c43887c678f344462a2b1c73cba53> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x903e8000 - 0x90a88fff  com.apple.CoreGraphics 1.400.16 (???) <c06a791850f916c1d2af4e61f1332f05> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x90a89000 - 0x90a93feb  com.apple.audio.SoundManager 3.9.2 (3.9.2) <df077a8048afc3075c6f2d9e7780e78e> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x90a94000 - 0x90ab1ff7  com.apple.QuickLookFramework 1.3.1 (170.9) /System/Library/Frameworks/QuickLook.framework/Versions/A/QuickLook
0x90ab2000 - 0x90db9fff  com.apple.HIToolbox 1.5.4 (???) <f4084cf8b649fe166be4252aff114138> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x90dc0000 - 0x91410fff  com.apple.WebCore 5525.18.1 (5525.18.1) <5cff38f28ab8944d7935a553a587de96> /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore
0x91444000 - 0x91450ff9  com.apple.helpdata 1.0.1 (14.2) /System/Library/PrivateFrameworks/HelpData.framework/Versions/A/HelpData
0x91451000 - 0x91773fe2  com.apple.QuickTime 7.5.5 (995.22.3) <07ffd134d58fdbfe377ba9007f591289> /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
0x91774000 - 0x9178afff  com.apple.DictionaryServices 1.0.0 (1.0.0) <7d20b8d1fb238c3e71d0fa6fda18c4f7> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
0x9178b000 - 0x918f2ff3  libSystem.B.dylib ??? (???) <fc4c30856f62953a57f4927e89c33739> /usr/lib/libSystem.B.dylib
0x918f3000 - 0x91986fff  com.apple.ink.framework 101.3 (86) <d4c85b5cafa8027fff042b84a8be71dc> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x919ac000 - 0x919d7fe7  libauto.dylib ??? (???) <2e44c523b851e8e25f05d13a48070a58> /usr/lib/libauto.dylib
0x919d8000 - 0x91b0afff  com.apple.CoreFoundation 6.5.4 (476.15) <dde27c8bc33b9568cd934ce54e6c419d> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x91b0b000 - 0x91c43ff7  libicucore.A.dylib ??? (???) <05473f7ea72d96b8415f6164afd90ef0> /usr/lib/libicucore.A.dylib
0x91c44000 - 0x91c5afe7  com.apple.CoreVideo 1.5.1 (1.5.1) <80b173571cdb99a829e1b8ec0a677291> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x91c90000 - 0x91d0aff8  com.apple.print.framework.PrintCore 5.5.3 (245.3) <98633ef67d419c1b02f56556cb4d843d> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x91d0b000 - 0x91d0bffd  com.apple.Accelerate 1.4.2 (Accelerate 1.4.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x91f0e000 - 0x91f1cffd  libz.1.dylib ??? (???) <a98b3b221a72b54faf73ded3dd7000e5> /usr/lib/libz.1.dylib
0x91f1d000 - 0x91f1dffb  com.apple.installserver.framework 1.0 (8) /System/Library/PrivateFrameworks/InstallServer.framework/Versions/A/InstallServer
0x91f30000 - 0x91f3cfff  libbz2.1.0.dylib ??? (???) <2cb0ddb158412de1b659b531bd895a11> /usr/lib/libbz2.1.0.dylib
0x91f3d000 - 0x91f8cfff  com.apple.QuickLookUIFramework 1.3.1 (170.9) /System/Library/PrivateFrameworks/QuickLookUI.framework/Versions/A/QuickLookUI
0x91f8d000 - 0x91f93fff  com.apple.print.framework.Print 218.0.2 (220.1) <6c2ddea45d9cdff9a9be0666a13e2dd4> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x91fac000 - 0x91facff8  com.apple.ApplicationServices 34 (34) <ee7bdf593da050bb30c7a1fc446eb8a6> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x91fad000 - 0x92038fff  com.apple.framework.IOKit 1.5.1 (???) <fea40a001559431f768113b90b6f7599> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x92039000 - 0x92100ff2  com.apple.vImage 3.0 (3.0) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x9210f000 - 0x9212effa  libJPEG.dylib ??? (???) <b822342bcc764c83d4557a8b67fa0c1c> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x9212f000 - 0x92267fe7  com.apple.imageKit 1.0.2 (1.0) <cf00dec9dd2a045d8222ba9a64737e1b> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.framework/Versions/A/ImageKit
0x92268000 - 0x92317ffb  com.apple.QTKit 7.5.5 (995.22.3) /System/Library/Frameworks/QTKit.framework/Versions/A/QTKit
0x92318000 - 0x923a4ff7  com.apple.LaunchServices 290 (290) <8f26b553a8cc473f8badfc91ca551ede> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x923a5000 - 0x923b4ffe  com.apple.DSObjCWrappers.Framework 1.3 (1.3) <182986b74247b459b2a67a47071bdc6b> /System/Library/PrivateFrameworks/DSObjCWrappers.framework/Versions/A/DSObjCWrappers
0x923ba000 - 0x923c3fff  com.apple.speech.recognition.framework 3.7.24 (3.7.24) <da2d8411921a3fd8bc898dc753b7f3ee> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x9262d000 - 0x92686ff7  libGLU.dylib ??? (???) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x92687000 - 0x9268ffff  com.apple.DiskArbitration 2.2.1 (2.2.1) <2664eeb3a4d0c95a21c089892a0ae8d0> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x92690000 - 0x926d1fe7  libRIP.A.dylib ??? (???) <a4212735a16eed03c6cc6c75893b617d> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x926d2000 - 0x92782fff  edu.mit.Kerberos 6.0.12 (6.0.12) <55a21e1b89e7a8453dd2363ddb5f8185> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x92783000 - 0x928a7fe3  com.apple.audio.toolbox.AudioToolbox 1.5.1 (1.5.1) /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x928f3000 - 0x92986ff3  com.apple.ApplicationServices.ATS 3.4 (???) <ebf874bd30d89d87727d2f1861956fb9> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x92987000 - 0x92989ff5  libRadiance.dylib ??? (???) <82d606c49f5dc77231f9d0e2be9ed6ab> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x9298a000 - 0x92a06feb  com.apple.audio.CoreAudio 3.1.0 (3.1) <39633bb5fa20a813719ff43c5ce4fa38> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x92a07000 - 0x92a25fff  libresolv.9.dylib ??? (???) <9ed809256ce8913cddc3269c2e364654> /usr/lib/libresolv.9.dylib
0x92a3a000 - 0x92df8fea  libLAPACK.dylib ??? (???) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x92df9000 - 0x92e76fef  libvMisc.dylib ??? (???) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x92e77000 - 0x92e8ffff  com.apple.openscripting 1.2.8 (???) <0129d2f750f5ddcb92f4acf8a3541952> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x92e90000 - 0x92eceff7  libGLImage.dylib ??? (???) <75a336b61267802e66e7e32a8a7d9c65> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x93f76000 - 0x93f7afff  libmathCommon.A.dylib ??? (???) /usr/lib/system/libmathCommon.A.dylib
0x93f98000 - 0x93fc1fff  com.apple.CoreMediaPrivate 13.0 (13.0) /System/Library/PrivateFrameworks/CoreMediaPrivate.framework/Versions/A/CoreMediaPrivate
0x93fc2000 - 0x93fe0ff3  com.apple.DirectoryService.Framework 3.5.5 (3.5.5) <36a032e45f2991004ca87743709f80a1> /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryService
0x93fe1000 - 0x9403dff7  com.apple.htmlrendering 68 (1.1.3) <1c5c0c417891b920dfe139385fc6c155> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x9403e000 - 0x9406dfe3  com.apple.AE 402.2 (402.2) <95c19d4ee4eb86270ad404e32a2c67e1> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x9406e000 - 0x94072fff  libGIF.dylib ??? (???) <7714ae24eb64b48fa719fb99bcbe34f3> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x94073000 - 0x941b9ff7  com.apple.ImageIO.framework 2.0.4 (2.0.4) <b407f06ff9b6893899e2e399cb65c953> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x9420b000 - 0x942c8fff  com.apple.WebKit 5525.18.1 (5525.18.1) <06fb8909c3bbc593ba8fe723a353bfd6> /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
0x942c9000 - 0x942f1fff  libcups.2.dylib ??? (???) <1031ca5b692b80a9568e57a342b60157> /usr/lib/libcups.2.dylib
0x942f2000 - 0x9434cff7  com.apple.CoreText 2.0.3 (???) <bee78d6af2bc4805f2ca7d4330bc1124> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
0x9434d000 - 0x9434dffd  com.apple.vecLib 3.4.2 (vecLib 3.4.2) /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
0x9434e000 - 0x94355fe9  libgcc_s.1.dylib ??? (???) <e280ddf3f5fb3049e674edcb109f389a> /usr/lib/libgcc_s.1.dylib
0x94356000 - 0x94356ffd  com.apple.Accelerate.vecLib 3.4.2 (vecLib 3.4.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x94357000 - 0x94396fef  libTIFF.dylib ??? (???) <d4bcc9b9c508e53849d2d46bb6900922> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x9448c000 - 0x94499fe7  com.apple.opengl 1.5.8 (1.5.8) <1d535f1c426c6cfeb836ba04f896a6a0> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x9449a000 - 0x9449bffc  libffi.dylib ??? (???) <eaf10b99a3fbc4920b175809407466c0> /usr/lib/libffi.dylib
0x9449c000 - 0x9457cfff  libobjc.A.dylib ??? (???) <400e943f9e8a678eea22a1d1205490ee> /usr/lib/libobjc.A.dylib
0x9457d000 - 0x94582fff  com.apple.CommonPanels 1.2.4 (85) <c135f02edd6b2e2864311e0b9d08a98d> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x94583000 - 0x94664ff7  libxml2.2.dylib ??? (???) <ab2534bfa7a774b2ad75cc2d9ad683a6> /usr/lib/libxml2.2.dylib
0x94665000 - 0x946c2ffb  libstdc++.6.dylib ??? (???) <f75e5133d72769de5ce6c06153fc65f6> /usr/lib/libstdc++.6.dylib
0x946c3000 - 0x946cefe7  libCSync.A.dylib ??? (???) <b64d8c38922c8913da6a86c3b9b761a4> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x946cf000 - 0x946fcfeb  libvDSP.dylib ??? (???) <4daafed78a471133ec30b3ae634b6d3e> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x946fd000 - 0x94734fff  com.apple.SystemConfiguration 1.9.2 (1.9.2) <eab546255ac099b9616df999c9359d0e> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x94735000 - 0x94774fff  com.apple.CoreMediaIOServicesPrivate 13.0 (13.0) /System/Library/PrivateFrameworks/CoreMediaIOServicesPrivate.framework/Versions/A/CoreMediaIOServicesPrivate
0x94775000 - 0x94777fff  com.apple.securityhi 3.0 (30817) <40562b85d99118354c974e76c32fa6fb> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x94778000 - 0x94778ffe  com.apple.MonitorPanelFramework 1.2.0 (1.2.0) <1f4c10fcc17187a6f106e0a0be8236b0> /System/Library/PrivateFrameworks/MonitorPanel.framework/Versions/A/MonitorPanel
0x94783000 - 0x94783ff8  com.apple.Cocoa 6.5 (???) <a1bc9247cf65c20f1a44d0973cbe649c> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x94784000 - 0x94787fff  com.apple.help 1.1 (36) <1a25a8fbb49a830efb31d5c0a52939cd> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x94788000 - 0x94788ffe  com.apple.quartzframework 1.5 (1.5) <6865aa0aeaa584b5a54d43f2f21d6c08> /System/Library/Frameworks/Quartz.framework/Versions/A/Quartz
0x947c6000 - 0x9484dff7  libsqlite3.0.dylib ??? (???) <eeedc8bf6881ac9f2c1954b1c8037720> /usr/lib/libsqlite3.0.dylib
0x9484e000 - 0x94a0aff3  com.apple.QuartzComposer 2.1 (106.12) <b802f5c5bba007094b65d53533b02889> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzComposer.framework/Versions/A/QuartzComposer
0x94a0b000 - 0x94a1bffc  com.apple.LangAnalysis 1.6.4 (1.6.4) <bc7eb703ddc37bf85adf93e35efd3947> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x94b1e000 - 0x94becff3  com.apple.JavaScriptCore 5525.18 (5525.18) <411cbe6246ddf155dc01294731d29ba9> /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
0x94bed000 - 0x94c3eff7  com.apple.HIServices 1.7.0 (???) <67988718780a0a367b1bde62f5a67c4b> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x94c44000 - 0x94cb6fff  com.apple.iLifeMediaBrowser 1.0.9 (212.0.1) /System/Library/PrivateFrameworks/iLifeMediaBrowser.framework/Versions/A/iLifeMediaBrowser
0x94cb7000 - 0x94cb7fff  com.apple.Carbon 136 (136) <4177916bbf70e0ddc446f94001d54c95> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x94cb8000 - 0x94f33fe7  com.apple.Foundation 6.5.6 (677.21) <40610e77083f7efef58fe0e5bf3a2066> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x94f34000 - 0x94f76fef  com.apple.NavigationServices 3.5.2 (163) <72cdc9d21f6690837870923e7b8ca358> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x94f77000 - 0x94f83ffe  libGL.dylib ??? (???) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x95065000 - 0x9511ffe3  com.apple.CoreServices.OSServices 226.5 (226.5) <ef9945b1304495f3e8085c935f1b81e3> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x95157000 - 0x9515cffb  com.apple.DisplayServicesFW 2.0.1 (2.0.1) <85e62bfa2f844602c74b2df2b59d221f> /System/Library/PrivateFrameworks/DisplayServices.framework/Versions/A/DisplayServices
0x951c4000 - 0x9524efe3  com.apple.DesktopServices 1.4.7 (1.4.7) <c3591383780dd12594c37dbde59958b6> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x9524f000 - 0x9565ffef  libBLAS.dylib ??? (???) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x956ab000 - 0x956dcffb  com.apple.quartzfilters 1.5.0 (1.5.0) <92b4f39479fdcabae0d8f53febd22fad> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzFilters.framework/Versions/A/QuartzFilters
0x956dd000 - 0x9574ffff  com.apple.PDFKit 2.1.1 (2.1.1) /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/PDFKit.framework/Versions/A/PDFKit
0x95753000 - 0x95838ff3  com.apple.CoreData 100.1 (186) <50219bcb005cb15ea999a19391a8d523> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x958dc000 - 0x95900fff  libxslt.1.dylib ??? (???) <ea5c8d349a3934ecc2b936f9cdfaba04> /usr/lib/libxslt.1.dylib
0x95901000 - 0x95dd2f76  libGLProgrammability.dylib ??? (???) <1cc69d41c4bf4dff7034652bdf592b42> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
0x95e9d000 - 0x95f21fe3  com.apple.CFNetwork 339.5 (339.5) <b14bbd0610cb55d9a33ee061d661b72d> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x95f22000 - 0x9671ffef  com.apple.AppKit 6.5.5 (949.41) <2afc0f3f6b31d897b7a813a6cb8f53c1> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x96720000 - 0x96abdfef  com.apple.QuartzCore 1.5.6 (1.5.6) <2512ee839dfa27b09a1a3eadd363e651> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x96c5b000 - 0x96c76ffb  libPng.dylib ??? (???) <0d6b991afc831ea06f2958e5933d33dd> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x96c77000 - 0x96c8bff3  com.apple.ImageCapture 4.0 (5.0.0) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x96c8c000 - 0x96c93ff7  libCGATS.A.dylib ??? (???) <c92dd25143a2d55700f64d8c274ca00d> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
0x96c94000 - 0x96d13ff5  com.apple.SearchKit 1.2.1 (1.2.1) <f28f8dd0f155a6453411a0c9b5702764> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x96d14000 - 0x96d14ffc  com.apple.audio.units.AudioUnit 1.5 (1.5) /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x96d15000 - 0x96d25fff  com.apple.speech.synthesis.framework 3.7.1 (3.7.1) <273d96ff861dc68be659c07ef56f599a> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x96d26000 - 0x96df1fff  com.apple.ColorSync 4.5.1 (4.5.1) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x96df2000 - 0x96e2cfe7  com.apple.coreui 1.2 (62) /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
0x96e3d000 - 0x96ee4feb  com.apple.QD 3.11.54 (???) <c31150b40fcc27c195de40f0ae138666> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x96ee5000 - 0x96f0dff7  com.apple.shortcut 1 (1.0) <35cd17d0179ca839c5fb08694f3dc5ef> /System/Library/PrivateFrameworks/Shortcut.framework/Versions/A/Shortcut
0x96f3f000 - 0x9710dfff  com.apple.security 5.0.4 (34102) <afb083034e55d067d0b8d91a83269ad5> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x97184000 - 0x9718bffe  libbsm.dylib ??? (???) <fa7ae5f1a621d9b69e7e18747c9405fb> /usr/lib/libbsm.dylib
0xc0000000 - 0xc0008fff +com.growl.growlframework 0.7.6 (0.7.6) /Applications/HandBrake.app/Contents/Frameworks/Growl.framework/Versions/A/Growl
0xfffe8000 - 0xfffebfff  libobjc.A.dylib ??? (???) /usr/lib/libobjc.A.dylib
0xffff0000 - 0xffff1780  libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: [0.9.3] Mac GUI: loading a .mov with WMV tracks causes crash

Post by s55 »

are you sure you copied from the log file? If not you'll have to try re-encode as that log means nothing since it's not actually done anything at that point. Once the encode fails, the log file should contain everything
Mr. H
Posts: 25
Joined: Mon Nov 24, 2008 2:32 pm

Re: [0.9.3] Mac GUI: loading a .mov with WMV tracks causes crash

Post by Mr. H »

There is no failing encode. The app crashes when it tries to load the file. To reproduce bug, do this:

1.) Launch HandBrake
2.) Press "load source" if the file open dialogue hasn't opened automatically
3.) Navigate to a .mov-encapsulated WMV file
4.) Press "open"
5.) Watch HandBrake crash
tezgno
Posts: 8
Joined: Mon Nov 24, 2008 7:41 pm

Re: [0.9.3] Mac GUI: loading a .mov with WMV tracks causes crash

Post by tezgno »

I get the same results when I do that as well (crash, I mean), although, I had to create a file in order to do this. I do not normally have WMV in MOV containers (and vice versa). But, loading a WMV contained in a MOV file does cause the Mac GUI to crash.
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: [0.9.3] Mac GUI: loading a .mov with WMV tracks causes crash

Post by s55 »

Interestingly, with this video, trying to load the .wmv results in "no valid source found" (as I said my WMVs load fine). If it's re-saved as a .mov from QuickTime and you try to load it into Handbrake, then it will cause the crash.
This is correct. Those wmv's on Microsoft don't have sound. HandBrake requires that a track has sound otherwise it'll return no titles found.
dynaflash
Veteran User
Posts: 3820
Joined: Thu Nov 02, 2006 8:19 pm

Re: [0.9.3] Mac GUI: loading a .mov with WMV tracks causes crash

Post by dynaflash »

Mr. H wrote:have discovered that trying to load a .mov that contains a video track encoded in WMV 9 and an audio track in WMA 9 causes a crash.
While I will confess I am not totally sure why HB crashes on this ( other than it's such a very scary scenario to begin with on so many levels ) I cannot help but ask why you would have such a file to begin with ?
Mr. H
Posts: 25
Joined: Mon Nov 24, 2008 2:32 pm

Re: [0.9.3] Mac GUI: loading a .mov with WMV tracks causes crash

Post by Mr. H »

s55 wrote:This is correct. Those wmv's on Microsoft don't have sound. HandBrake requires that a track has sound otherwise it'll return no titles found.
The one I linked to does. According to QuickTime it's WMA 9 professional with a 48 kHz sample rate.
dynaflash wrote:
Mr. H wrote:have discovered that trying to load a .mov that contains a video track encoded in WMV 9 and an audio track in WMA 9 causes a crash.
While I will confess I am not totally sure why HB crashes on this ( other than it's such a very scary scenario to begin with on so many levels ) I cannot help but ask why you would have such a file to begin with ?
As I mentioned in my first post, one might have such a file because one might have a large WMV file that one has edited with QT and then saved. Exporting WMV to H.264 is possible with QuickTime (using x264 component rather than QT's pathetic H.264 codec), but it's rather slow because the Flip4Mac codec isn't the most efficient decoder in the world. Handbrake does a much better job. But, whichever way you look at it, HandBrake will take less time to encode a 15 minute WMV file than a 30 minute one.

I appreciate that beyond preventing an all-out crash, making .mov-encapsulated WMV work isn't exactly going to go to the top of your must-fix list, but it'd be nice if you guys could look into it at some point.
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: [0.9.3] Mac GUI: loading a .mov with WMV tracks causes crash

Post by s55 »

Just checked that file you posted.

HandBrake doesn't see the audio channel because it's encoded in a format which isn't supported. VideoLan Player can't even play it back because of this.

It's something ffmpeg will need to be updated to support as it appears not to support it and this is the library we rely on.
jbrjake
Veteran User
Posts: 4805
Joined: Wed Dec 13, 2006 1:38 am

Re: [0.9.3] Mac GUI: loading a .mov with WMV tracks causes crash

Post by jbrjake »

I honestly do not know how you could crash in ScanFunc and not have a larger log than that. Scanning comes after opening the file for reading, which is when libavformat would provide all the details we're looking for.

Code: Select all

    else if ( (data->stream = hb_stream_open( data->path, 0 ) ) != NULL )
    {
        hb_list_add( data->list_title, hb_stream_title_scan( data->stream ) );
    }
You're crashing at the point of decoding video-- the hb_stream_title_scan (which passes to ffmpeg_title_scan).

But when ScanFunc encounters a stream, it opens that stream first before decoding anything--the hb_stream_open line (which passes to ffmpeg_open).

It's at that point the info we want from libavformat is dumped....
Mr. H
Posts: 25
Joined: Mon Nov 24, 2008 2:32 pm

Re: [0.9.3] Mac GUI: loading a .mov with WMV tracks causes crash

Post by Mr. H »

I have been able to re-encode a snippet of the file I linked to earlier using WMV 9 and WMA (standard) 9 codecs. I've uploaded a .wmv encapsulated version here, and a .mov encapsulated version here. Yes, the .mov is huge relative to the .wmv.

For me, VLC will open the .wmv fine and play it fine. HandBrake will open it fine and re-encode it fine.
VLC will open the .mov, when playing there is no video and no audio, but the progress bar progresses at the right speed and it doesn't crash. HandBrake crashes trying to open the file.

Thanks to everyone for their repsonses.
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: [0.9.3] Mac GUI: loading a .mov with WMV tracks causes crash

Post by s55 »

thowing the mov into HB get's

Code: Select all

[22:37:42] hb_init: checking cpu count
[22:37:42] hb_init: starting libhb thread
HandBrake svn1947M (2008112401) - http://handbrake.fr/
4 CPUs detected
Opening C:\Documents and Settings\Scott\Desktop\Amazing_Caves.mov...
[22:37:42] hb_scan: path=C:\Documents and Settings\Scott\Desktop\Amazing_Caves.mov, title_index=0
[22:37:42] scan: trying to open with libdvdread
[22:37:42] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Documents and Settings\Scott\Desktop\Amazing_Caves.mov':
  Duration: 00:00:05.39, start: 0.000000, bitrate: 2740 kb/s
    Stream #0.0(eng): Audio: wmav2, 44100 Hz, stereo, s16
    Stream #0.1(eng): Video: wmv3, 640x360, 2411.00 tb(r)
[22:37:42] scan: decoding previews for title 1
      4 [unknown (0xF08)] HandBrakeCLI 2840 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
  28507 [unknown (0xF08)] HandBrakeCLI 2840 open_stackdumpfile: Dumping stack trace to HandBrakeCLI.exe.stackdump
GDB

Code: Select all

Scott@discovery ~/HandBrake
$ gdb ./HandBrakeCLI.exe
GNU gdb 6.8.0.20080328-cvs (cygwin-special)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) run  -i "C:\Documents and Settings\Scott\Desktop\Amazing_Caves.mov" -f m4v -p  -e x264 -b 1500 -2  -T  -a 1 -E
aac -B 160 -6 dpl2 -D 1 -x ref=2:bframes=2:me=umh -v  -o test.m4v
Starting program: /home/Scott/HandBrake/HandBrakeCLI.exe -i "C:\Documents and Settings\Scott\Desktop\Amazing_Caves.mo
-f m4v -p  -e x264 -b 1500 -2  -T  -a 1 -E faac -B 160 -6 dpl2 -D 1 -x ref=2:bframes=2:me=umh -v  -o test.m4v
[New thread 3064.0xda8]
[New thread 3064.0xfe8]
[22:38:48] hb_init: checking cpu count
[22:38:48] hb_init: starting libhb thread
[New thread 3064.0xc80]
HandBrake svn1947M (2008112401) - http://handbrake.fr/
4 CPUs detected
Opening C:\Documents and Settings\Scott\Desktop\Amazing_Caves.mov...
[22:38:48] hb_scan: path=C:\Documents and Settings\Scott\Desktop\Amazing_Caves.mov, title_index=1
[New thread 3064.0x758]
[22:38:48] scan: trying to open with libdvdread
[22:38:48] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Documents and Settings\Scott\Desktop\Amazing_Caves.mov':
  Duration: 00:00:05.39, start: 0.000000, bitrate: 2740 kb/s
    Stream #0.0(eng): Audio: wmav2, 44100 Hz, stereo, s16
    Stream #0.1(eng): Video: wmv3, 640x360, 2411.00 tb(r)
[22:38:48] scan: decoding previews for title 1

Program received signal SIGSEGV, Segmentation fault.
[Switching to thread 3064.0x758]
0x00498db9 in avcodec_decode_video ()
(gdb) bt
#0  0x00498db9 in avcodec_decode_video ()
Cannot access memory at address 0xfffffffc
(gdb)

Again, libavcodec is falling over.

Does the mov spec even allow WMV9 in mov? Nothing I have can even play that.
dynaflash
Veteran User
Posts: 3820
Joined: Thu Nov 02, 2006 8:19 pm

Re: [0.9.3] Mac GUI: loading a .mov with WMV tracks causes crash

Post by dynaflash »

s55 wrote:Does the mov spec even allow WMV9 in mov? Nothing I have can even play that.
If it does ... it shouldn't.
Mr. H
Posts: 25
Joined: Mon Nov 24, 2008 2:32 pm

Re: [0.9.3] Mac GUI: loading a .mov with WMV tracks causes crash

Post by Mr. H »

jbrjake wrote:I honestly do not know how you could crash in ScanFunc and not have a larger log than that. Scanning comes after opening the file for reading, which is when libavformat would provide all the details we're looking for.

Code: Select all

    else if ( (data->stream = hb_stream_open( data->path, 0 ) ) != NULL )
    {
        hb_list_add( data->list_title, hb_stream_title_scan( data->stream ) );
    }
You're crashing at the point of decoding video-- the hb_stream_title_scan (which passes to ffmpeg_title_scan).

But when ScanFunc encounters a stream, it opens that stream first before decoding anything--the hb_stream_open line (which passes to ffmpeg_open).

It's at that point the info we want from libavformat is dumped....
I just noticed something weird - The first time I try to open a .mov-encapsulated wmv Handbrake hasn't seen before, there is more written to the log; subsequent attempts to open the file result in HandBrake crashing at an earlier point.

A longer log is as follows:

Code: Select all

HandBrake Activity Log for Session (Cleared): 2008-11-24 22:36:17 +0000

[22:36:17] macgui: Handbrake Version: 0.9.3 (2008112300)
[22:36:17] hb_init: checking cpu count
[22:36:17] hb_init: starting libhb thread
[22:36:17] hb_init: checking cpu count
[22:36:17] hb_init: starting libhb thread
[22:37:12] macgui: trying to open video_ts folder (parent directory chosen)
[22:37:12] hb_scan: path=/Users/xxxx/Desktop/Caves_720.mov, title_index=0
[22:37:12] scan: trying to open with libdvdread
[22:37:12] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/xxxx/Desktop/Caves_720.mov':
  Duration: 00:00:09.80
Last edited by Mr. H on Mon Nov 24, 2008 10:49 pm, edited 1 time in total.
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: [0.9.3] Mac GUI: loading a .mov with WMV tracks causes crash

Post by s55 »

Yeh, You've got a horrible combination going on here.

The WMV's won't work since the audio isn't supported.

WMV9 is insanity at best. Re-encoding the wmv with something else to a mpeg4 format in mov would be the sensible next action.
Mr. H
Posts: 25
Joined: Mon Nov 24, 2008 2:32 pm

Re: [0.9.3] Mac GUI: loading a .mov with WMV tracks causes crash

Post by Mr. H »

s55 wrote:thowing the mov into HB get's

Code: Select all

[22:37:42] hb_init: checking cpu count
[22:37:42] hb_init: starting libhb thread
HandBrake svn1947M (2008112401) - http://handbrake.fr/
4 CPUs detected
Opening C:\Documents and Settings\Scott\Desktop\Amazing_Caves.mov...
[22:37:42] hb_scan: path=C:\Documents and Settings\Scott\Desktop\Amazing_Caves.mov, title_index=0
[22:37:42] scan: trying to open with libdvdread
[22:37:42] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Documents and Settings\Scott\Desktop\Amazing_Caves.mov':
  Duration: 00:00:05.39, start: 0.000000, bitrate: 2740 kb/s
    Stream #0.0(eng): Audio: wmav2, 44100 Hz, stereo, s16
    Stream #0.1(eng): Video: wmv3, 640x360, 2411.00 tb(r)
[22:37:42] scan: decoding previews for title 1
      4 [unknown (0xF08)] HandBrakeCLI 2840 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
  28507 [unknown (0xF08)] HandBrakeCLI 2840 open_stackdumpfile: Dumping stack trace to HandBrakeCLI.exe.stackdump
How come the Windows version gets further than the OS X version?
s55 wrote:Does the mov spec even allow WMV9 in mov? Nothing I have can even play that.
mov is just a wrapper. You can have any codecs you like inside it. You have to have Telestream's Flip4Mac QuickTime components installed in order for QuickTime to understand WMV and WMA codecs. Flip4Mac is the "official" way to play WMV on OS X. When Microsoft stopped developing Windows Media Player for OS X, they pointed people to Flip4Mac.
Mr. H
Posts: 25
Joined: Mon Nov 24, 2008 2:32 pm

Re: [0.9.3] Mac GUI: loading a .mov with WMV tracks causes crash

Post by Mr. H »

s55 wrote:Yeh, You've got a horrible combination going on here.

The WMV's won't work since the audio isn't supported.
Straight-up WMV with WMA 9 standard rather than professional does work. As I said earlier it works rather nicely because the libraries you are using decode WMV a lot faster than the Flip4Mac codec.
Last edited by Mr. H on Mon Nov 24, 2008 10:59 pm, edited 1 time in total.
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: [0.9.3] Mac GUI: loading a .mov with WMV tracks causes crash

Post by s55 »

I was referring to the Microsoft HD content in your first post which I have checked and it doesn't work.

WMV's will work just fine assuming it's not a funky version of the WMA codec
Post Reply