[vlc-devel] MAC Mozilla Plugin seg fault

shahrooz shahrooz.ansari at gmail.com
Thu Dec 24 01:38:14 CET 2009


Hello,
I am building a xul application on Mac, I tried to use to 1.0.3 source  
from git, but it has a problem, when closing the tabs in that uses vlc  
plugin overlay window was not cleared and made the application  
unusable(covering everything else), video frame was cleared after  
closing the application thou.
So, I tried to build the latest git, as it seems that people are  
working on opengl and macosx but using the new codes when closing a  
tab the application crashes with seg fault error.
Does anyone working on this? I have C/C++ background, but no opengl  
experience, how can I help making a stable mozilla plugin for Mac?
Appreciate your help, hope I can contribute in some way.


Peace
-sh



OS: MacOS 10.5 Leopard
vlc: latest git
mozilla sdk: extra/contrib/gecko-sdk

Crash Report:
Process:         xulrunner [96837]
Path:            ../MacOS/xulrunner
Identifier:      xulrunner
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  bash [96762]

Date/Time:       2009-12-23 16:25:14.193 -0800
OS Version:      Mac OS X 10.5.8 (9L30)
Report Version:  6
Anonymous UUID:  9AD3A491-DA55-43B7-91F1-09CD281C0FC6

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000c0000023
Crashed Thread:  0

Thread 0 Crashed:
0   libobjc.A.dylib               	0x92e32688 objc_msgSend + 24
1   com.apple.CoreFoundation      	0x9452b40f CFRunLoopRunSpecific +  
3215
2   com.apple.CoreFoundation      	0x9452baa8 CFRunLoopRunInMode + 88
3   com.apple.HIToolbox           	0x91d5c2ac  
RunCurrentEventLoopInMode + 283
4   com.apple.HIToolbox           	0x91d5bffe ReceiveNextEventCommon +  
175
5   com.apple.HIToolbox           	0x91d5bf39  
BlockUntilNextEventMatchingListInMode + 106
6   com.apple.AppKit              	0x9327d6d5 _DPSNextEvent + 657
7   com.apple.AppKit              	0x9327cf88 -[NSApplication  
nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
8   XUL                           	0x0194b583 JSD_GetValueForObject +  
827523
9   XUL                           	0x01980c9b JSD_GetValueForObject +  
1046427
10  XUL                           	0x0198106c JSD_GetValueForObject +  
1047404
11  XUL                           	0x0194ae85 JSD_GetValueForObject +  
825733
12  XUL                           	0x01a15d4c  
NS_GetComponentRegistrar_P + 33548
13  XUL                           	0x019d7a47  
JNIEnv_::CallStaticObjectMethod(_jclass*, _jmethodID*, ...) + 257687
14  XUL                           	0x01980c02 JSD_GetValueForObject +  
1046274
15  XUL                           	0x0194ba4a JSD_GetValueForObject +  
828746
16  com.apple.CoreFoundation      	0x9452b3c5 CFRunLoopRunSpecific +  
3141
17  com.apple.CoreFoundation      	0x9452baa8 CFRunLoopRunInMode + 88
18  com.apple.HIToolbox           	0x91d5c2ac  
RunCurrentEventLoopInMode + 283
19  com.apple.HIToolbox           	0x91d5c0c5 ReceiveNextEventCommon +  
374
20  com.apple.HIToolbox           	0x91d5bf39  
BlockUntilNextEventMatchingListInMode + 106
21  com.apple.AppKit              	0x9327d6d5 _DPSNextEvent + 657
22  com.apple.AppKit              	0x9327cf88 -[NSApplication  
nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
23  com.apple.AppKit              	0x93275f9f -[NSApplication run] + 795
24  XUL                           	0x0194b19a JSD_GetValueForObject +  
826522
25  XUL                           	0x017f75e7 void  
std 
::__adjust_heap<__gnu_cxx::__normal_iterator<nsRefPtr<imgCacheEntry>*,  
std::vector<nsRefPtr<imgCacheEntry>,  
std::allocator<nsRefPtr<imgCacheEntry> > > >, int,  
nsRefPtr<imgCacheEntry>, bool (*)(nsRefPtr<imgCacheEntry> const&,  
nsRefPtr<imgCacheEntry>  
const&)>(__gnu_cxx::__normal_iterator<nsRefPtr<imgCacheEntry>*,  
std::vector<nsRefPtr<imgCacheEntry>,  
std::allocator<nsRefPtr<imgCacheEntry> > > >, int, int,  
nsRefPtr<imgCacheEntry>, bool (*)(nsRefPtr<imgCacheEntry> const&,  
nsRefPtr<imgCacheEntry> const&)) + 6496279
26  XUL                           	0x01008e68 XRE_main + 9880
27  xulrunner                     	0x000029ee start + 2510
28  xulrunner                     	0x00002122 start + 258
29  xulrunner                     	0x00002049 start + 41



VLC log after closing the tab:
[0x17972cb4] main input debug: control type=0
[0x17972cb4] main input debug: control: stopping input
[0xe32ea4] avcodec decoder debug: ffmpeg codec (MPEG-4 Video) stopped
[0xe32ea4] main decoder debug: removing module "avcodec"
[0xe32ea4] main decoder debug: killing decoder fourcc `mp4v', 0 PES in  
FIFO
[0xa290a4] main video output debug: [0] 2 0
[0xa290a4] main video output debug: [1] 1 0
[0xa290a4] main video output debug: [2] 2 0
[0xa290a4] main video output debug: [3] 4 0
[0xa290a4] main video output debug: [4] 2 0
[0xa290a4] main video output debug: [5] 2 0
[0xa290a4] main video output debug: [6] 2 0
[0xa290a4] main video output debug: [7] 4 0
[0xa290a4] main video output debug: [8] 2 0
[0xa290a4] main video output debug: [9] 2 0
[0xa290a4] main video output debug: [10] 2 0
[0xa290a4] main video output debug: [11] 2 0
[0xa290a4] main video output debug: [12] 2 0
[0xa290a4] main video output debug: [13] 2 0
[0xa290a4] main video output debug: [14] 2 0
[0xa290a4] main video output debug: [15] 2 0
[0x17972cb4] main input debug: saving a free vout
[0xa11ca4] main decoder debug: removing module "mpeg_audio"
[0xa11ca4] main decoder debug: killing decoder fourcc `mpga', 0 PES in  
FIFO
[0xd456a4] main audio filter debug: removing module "mpgatofixed32"
[0xd7eca4] main audio filter debug: removing module "scaletempo"
[0xd032a4] main audio filter debug: removing module  
"bandlimited_resampler"
[0xdb40a4] main audio output debug: removing module "auhal"
[0x16d4bf44] main generic debug: removing module "float32_mixer"
[0x17972cb4] main input debug: releasing aout
[0x1724bcc4] avi stream debug: free chunk avih
[0x1724bcc4] avi stream debug: free chunk strh
[0x1724bcc4] avi stream debug: free chunk strf
[0x1724bcc4] avi stream debug: free chunk LIST
[0x1724bcc4] avi stream debug: free chunk strh
[0x1724bcc4] avi stream debug: free chunk strf
[0x1724bcc4] avi stream debug: free chunk strn
[0x1724bcc4] avi stream debug: free chunk LIST
[0x1724bcc4] avi stream debug: free chunk LIST
[0x1724bcc4] avi stream debug: free chunk JUNK
[0x1724bcc4] avi stream debug: free chunk LIST
[0x1724bcc4] avi stream debug: free chunk RIFF
[0x1724bcc4] avi stream debug: free chunk LIST
[0x17d68404] main demux debug: removing module "avi"
[0x1724bcc4] main stream debug: removing module "stream_filter_record"
[0x15b68db4] main access debug: removing module "access_mmap"
[0x17972cb4] main input debug: Program doesn't contain anymore ES
[0x17972cb4] main input debug: thread ended
[0xb01aa4] main chroma debug: removing module "i420_yuy2_mmx"
[0x1e0e0aa4] minimal_macosx generic debug: Mac OS X Vout is closing
[0x1e0e0aa4] minimal_macosx generic debug: Mac OS X Vout is closing
[0x1e0e0aa4] main generic debug: removing module "minimal_macosx"
[0xa290a4] main video output debug: removing module "opengl"
[0x1e099ea4] main spu text debug: removing module "quartztext"
[0xd65ea4] main scale debug: removing module "yuvp"
[0xccaca4] main scale debug: removing module "swscale"
[0xaf36a4] main libvlc debug: deactivating the playlist
[0x172e26a4] main playlist debug: Deactivate
[0x172e26a4] main playlist debug: Deactivated
[0xaf36a4] main libvlc debug: removing all services discovery tasks
[0xaf36a4] main libvlc debug: removing all interfaces
[0x1482f4] main interface debug: removing module "hotkeys"
[0xaf36a4] main libvlc debug: removing playlist
[0x172e26a4] main playlist debug: Destroyed
[0xaf36a4] main libvlc debug: removing stats
[0xaf36a4] main libvlc debug: removing module "memcpymmxext"
Segmentation fault




More information about the vlc-devel mailing list