MPlayer crashes with Signal 11 if called from the command line.

Added by Panayotis Katsaloulis about 2 years ago

I ws trying to use mplayer command-line binary from the console unfortunately with no luck.
For example, if "teras" is my username and the application is stored on the desktop, here is the command.

/Users/teras/Desktop/MPlayer\ OSX\ Extended.app/Contents/Resources/External_Binaries/mplayer.app/Contents/MacOS/mplayer test.avi

Here is the error I get:

==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [coreaudio] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 5 -> 4
[swscaler @ 0x100ff60c0]BICUBIC scaler, from yuv420p to yuyv422 using MMX2
[swscaler @ 0x100ff60c0]using 4-tap MMX scaler for horizontal luminance scaling
[swscaler @ 0x100ff60c0]using 4-tap MMX scaler for horizontal chrominance scaling
[swscaler @ 0x100ff60c0]using n-tap MMX scaler for vertical scaling (BGR)
[swscaler @ 0x100ff60c0]640x480 -> 640x480
VO: [corevideo] 640x480 => 640x480 Packed YUY2 
[ASPECT] Warning: No suitable new res found!
Fontconfig error: Cannot load default config file

MPlayer interrupted by signal 11 in module: filter video
- MPlayer crashed by bad usage of CPU/FPU/RAM.
  Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
  disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.

If I use the command line parameter "-vo null" the video plays nicely.
This is a problem with any video, not just a specific one.

Mac OS X 10.6.2
64 bit


Replies (11)

RE: MPlayer crashes with Signal 11 if called from the command line. - Added by Adrian Stutz about 2 years ago

This is because fontconfig can't find a config file.

You can fix it by adding this line to your ~/.profile
export FONTCONFIG_PATH=/Applications/MPlayer\ OSX\ Extended.app/Contents/Resources/fonts
(assuming MPE is installed in /Applications).

Alternatively, you can also add -nofontconfig to the command line, but that will break ASS.

I'm not sure what the best solution to this problem is, as people can neither be expected to have fontconfig installed nor having MPE in /Applications. But I guess I'll hardcode the second in the next release so that it's going to work for most users, at least.

RE: MPlayer crashes with Signal 11 if called from the command line. - Added by Panayotis Katsaloulis about 2 years ago

OK, let's be then a bit more verbose, what I am trying to do.

First of all I am the author of Jubler, which is a subtitle editor under java and I believe it's a quite common solution for subtitling under Mac (http://www.jubler.org). To test subtitles Jubler uses MPlayer, but MPlayer for OSX (especially the "official" release) is buggy. So I get all the time bug reports that "MPlayer doesn't work - supported MPlayer is old" etc etc.

I was recently directed by a user to this project, which seems promising!
Unfortunately the proposed directives are not suitable right now. There is a way to pass environmental variables to an external binary from Java, but I am not sure that this is an elegant solution.

Please, also do not hard-code "-nofontconfig", since it's required by ASS subtitles to work (and ASS is also my preferred subtitle format, since it can show formatting, while SRT doesn't).
I am almost sure that nobody up to now asked you about how to run the command line utility :)

One suggestion to do it automatically could be to internally hardcode FONTCONFIG_PATH to something like ../../../../fonts which is valid :)

What do you think?

EDIT: I tried hard-defining FONTCONFIG_PATH, based on the location of mplayer executable itself. It is working, but as I said I think it's not a very clear solution.

RE: MPlayer crashes with Signal 11 if called from the command line. - Added by Adrian Stutz about 2 years ago

Oh, I did use Jubler before. :)

Well, passing the environment variable is a valid way to point fontconfig to a nonstandard location of the config directory. Since MPE could be used from any location on the system, I cannot just hardcode a path like "/Applications/MPlayer OSX Extended.app/..." since there's no guarantee that the MPE will be at that path.

I don't think using a relative path for FONTCONFIG_PATH is possible, since it will be relative to the current directory of the shell and not the location of the MPlayer bianry.

I think I tend to use /usr/X11/lib/X11/fontconfig for the next release, will give command line users a valid config directory which is installed on all relevant OSX installations for MPE (10.5+). The downside is that this config direcotry only points to X11-fonts and not all the other font locations on the system.

I don't know if that will be enough for you. Else you'd need to provide your own config directory and point to it with FONTCONFIG_PATH.

P.S: I did fix the crash in MPlayer SVN, which means it will no longer crash but instead simply not find any fonts (which means files with embedded fonts will work fine).

RE: MPlayer crashes with Signal 11 if called from the command line. - Added by Panayotis Katsaloulis about 2 years ago

When I am talking about relative path, this is what I have in mind (I didn't have a look at your code yet, but I will if I should).
Get the path of argv[ 0 ] (which is mplayer of course), and go from there. This should always work, since nobody is supposed to touch your application bundle and it's structure ;)
You can add this environmental variable in the code when you launch plain mplayer from MPlayer Extended (or whatever elase you do - I don't really know).

In any case I did create the same thing under Jubler, but I'd prefer this solution to be solved upstream instead :)

EDIT:
Now I read your post again, I have this question:
Do you believe that hard coding "/usr/X11/lib/X11/fontconfig/" for FONTCONFIG_PATH is a good/better solution?
What I do right now is to provide the font path you have in your bundle.

RE: MPlayer crashes with Signal 11 if called from the command line. - Added by Adrian Stutz about 2 years ago

I'd like to keep the MPlayer binary as regular as possible. It should be independent of MPE and freely movable (at least the binary bundle because of the shared libraries). So I'm not very keen on hardcoding a relative path into it.

However I just noticed the stock OSX fontconfig config direcotry is actually pointing to the non-Unix font locations on OSX and can be used just fine. The binary in rev13-test3 uses that directory and thus works fine on 10.5+ without MPE.

I might remove MPE's own config directory altogether in favor of this stock one.

A First Completeness From the Webopedia Computer - Added by kaksjaing kaksjaing about 1 year ago

neushom
daffodil
<a href=http://blog.bitcomet.com/post/327585/>tamsulosin hydrochloride 0.4 mg</a>
casehugh
behaviorq
<a href=http://blog.bitcomet.com/post/328029>proscar</a>
linkadage
aramserewong
<a href=http://blog.bitcomet.com/post/328149/>cheap protonix</a>
artesian
silksthird
<a href=http://blog.bitcomet.com/post/328235/>viagra på apoteket</a>
lalalalala
landersand
<a href=http://blog.bitcomet.com/post/328537/>omeprazole coupons</a>
mesalsa
healwww
<a href=http://blog.bitcomet.com/post/328918/>viagra eiaculazione precoce</a>
measureswe
torregender
<a href=http://blog.bitcomet.com/post/327786>medication baclofen</a>
informed
banmovies
<a href=http://blog.bitcomet.com/post/333518/>naproxen 500mg</a>
financialsun
vodacom
<a href=http://blog.bitcomet.com/post/334896/>effexor venlafaxine</a>
urolithiasis
visitbritain
<a href=http://blog.bitcomet.com/post/334937/>what is seroquel prescribed for</a>
learnthe
trust
<a href=http://blog.bitcomet.com/post/334965/>naproxen</a>
swingin
lorrae
<a href=http://blog.bitcomet.com/post/335006/>norethindrone acetate ethinyl estradiol</a>
unionize
pastthis
<a href=http://blog.bitcomet.com/post/335025/>buy cheap cymbalta</a>
heimans
bobbi
<a href=http://blog.bitcomet.com/post/335045/>prednisolone prednisone</a>
nigerian
foose
<a href=http://blog.bitcomet.com/post/335045/>norvasc cost</a>
mikeemail
orgtel
<a href=http://blog.bitcomet.com/post/335113/>amlodipine besylate 2.5 mg</a>
assetslist
dizzying
<a href=http://blog.bitcomet.com/post/335136/>plavix cost</a>
canteens
trou
<a href=http://blog.bitcomet.com/post/335154/>fosamax medication</a>
speex
hunterjoin
<a href=http://blog.bitcomet.com/post/335197/>clarithromycin 500 mg</a>
crosses
soham
<a href=http://blog.bitcomet.com/post/335204/>biaxin xl 500mg</a>

A Costly validation succinctly Delimitation From the Webopedia Computer - Added by kaksjaing kaksjaing about 1 year ago

infosagem
seniority
<a href=http://blog.bitcomet.com/post/327585/>generic tamsulosin</a>
shrines
mindfully
<a href=http://blog.bitcomet.com/post/328029>buy proscar online</a>
igorous
restor
<a href=http://blog.bitcomet.com/post/328149/>protonix</a>
latkes
libros
<a href=http://blog.bitcomet.com/post/328235/>viagra säljes sverige</a>
molitary
repulsion
<a href=http://blog.bitcomet.com/post/328537/>omeprazole capsules</a>
akay
totap
<a href=http://blog.bitcomet.com/post/328918/>viagra in farmacia</a>
barbarians
laraki
<a href=http://blog.bitcomet.com/post/327786>cheap baclofen</a>
bbeginning
beli
<a href=http://blog.bitcomet.com/post/333518/>naproxen 375</a>
wwfus
yearshome
<a href=http://blog.bitcomet.com/post/334896/>effexor xr online</a>
then
gracies
<a href=http://blog.bitcomet.com/post/334937/>seroquel 50mg</a>
hayley
individu
<a href=http://blog.bitcomet.com/post/334965/>naproxen over the counter</a>
chumps
lewellyn
<a href=http://blog.bitcomet.com/post/335006/>estrace vaginal cream</a>
generosities
arealways
<a href=http://blog.bitcomet.com/post/335025/>cymbalta without prescription</a>
facademic
crosso
<a href=http://blog.bitcomet.com/post/335045/>prednisone canine</a>
martret
infocus
<a href=http://blog.bitcomet.com/post/335045/>norvasc cost</a>
boxi
hertig
<a href=http://blog.bitcomet.com/post/335113/>amlodipine besylate</a>
ukpinsent
splices
<a href=http://blog.bitcomet.com/post/335136/>plavix price</a>
policнas
applicationa
<a href=http://blog.bitcomet.com/post/335154/>fosamax dangers</a>
rapeepollock
petersonwhen
<a href=http://blog.bitcomet.com/post/335197/>antibiotics for ear infection</a>
toney
confirmands
<a href=http://blog.bitcomet.com/post/335204/>biaxin antibiotic</a>

A Designation Delimitation From the Webopedia Computer - Added by pyboabarl pyboabarl 12 months ago

"http://posterous.com/people/he6XFM8WRtKtA" - minocycline and ud
"http://posterous.com/people/he6XFO1jVhUWS" - serevent buy onlineyers
"http://en.gravatar.com/tioludiper#pic-1" - india ranitidine quality
"http://en.gravatar.com/piegumdrestpo#pic-1" - headache after stopping zyprexa
"http://posterous.com/people/he6XFM9khFzVE" - ramipril altace
"http://posterous.com/people/he6XEtTC7ulvQ" - prilosec rebate
"http://posterous.com/people/he6XFLP8y38Yq" - cetirizine with no prescription
"http://en.gravatar.com/nighricalvi#pic-1" - compare uroxatral and flomax
"http://en.gravatar.com/sysranade#pic-1" - macrobid and urinary infection
"http://en.gravatar.com/aricincal#pic-1" - anchor coumadin clinic naples fl
"http://posterous.com/people/he6XFM96dFQls" - synthroid 25 mcg
"http://en.gravatar.com/chiogagbisac#pic-1" - benicar forum
"http://en.gravatar.com/arapobscheg#pic-1" - order didrex bontril
"http://posterous.com/people/he6XFLPw6bK4i" - amlodipine benazapril combination
"http://posterous.com/people/he6XFNI7cRfBw" - wellbutrin pravachol claritin d
"http://en.gravatar.com/temprolssingpen#pic-1" - headache and naproxen
"http://en.gravatar.com/litordedi#pic-1" - lisinopril and cytochrome p50
"http://en.gravatar.com/trenfeuhogi#pic-1" - relafen vicodin drug interactions
"http://en.gravatar.com/trenfeuhogi#pic-1" - relafen and grapefruit juice
"http://posterous.com/people/he6XFLP8uDXpE" - elocon cream used for std
"http://en.gravatar.com/chiogagbisac#pic-1" - benicar tablet
"http://en.gravatar.com/temprolssingpen#pic-1" - naproxen and ibuprofen allergy
"http://en.gravatar.com/tassayrapo#pic-1" - glyburide and diarrhea
"http://en.gravatar.com/kedsgaformy#pic-1" - compazine injection
"http://posterous.com/people/he6XH5WLRFOWe" - azithromycin horse dose
"http://en.gravatar.com/siorammomin#pic-1" - torcetrapib atorvastatin
"http://posterous.com/people/he6XFNHOgQjCG" - ativan without prescription best online pharmacy

A Designation Proclamation of associate From the Webopedia Computer - Added by pyboabarl pyboabarl 12 months ago

"http://en.gravatar.com/bhakuvciona#pic-1" - diovan contradictions
"http://en.gravatar.com/nabpartpevi#pic-1" - vomit hours after azithromycin
"http://en.gravatar.com/erawmolat#pic-1" - amitriptyline dose
"http://en.gravatar.com/boanokaves#pic-1" - flovent rotadisk qvar
"http://posterous.com/people/he6XziDkuILvc" - estradiol
"http://posterous.com/people/he6XH5WZUxa0a" - cancer premarin
"http://posterous.com/people/he6XFM8zlBWqe" - uroxatral 10mg
"http://en.gravatar.com/kulifalde#pic-1" - pregnant amoxicillin
"http://posterous.com/people/he6XEuPGtjoNk" - substitue for relafen
"http://en.gravatar.com/boanokaves#pic-1" - flovent hfa without prescription
"http://posterous.com/people/he6XFNHEWV0Nk" - flovent hfa without a prescription
"http://en.gravatar.com/truperarho#pic-1" - zanaflex hallucinations
"http://en.gravatar.com/ducsiacrager#pic-1" - does zoloft decrease your appetite
"http://posterous.com/people/he6Xzm42ijWVc" - meclizine and vertigo
"http://posterous.com/people/he6XFM96dFQls" - synthroid strenths
"http://en.gravatar.com/derravorda#pic-1" - lowest price evista prescription drug
"http://en.gravatar.com/stafateldis#pic-1" - what medicines interfer with detrol la
"http://posterous.com/people/he6XFLPFsnPWa" - hyzaar and ed
"http://posterous.com/people/he6XH5WV73xGy" - 05 cream tretinoin
"http://posterous.com/people/he6XFNHEWV0Nk" - flovent pregnancy
"http://posterous.com/people/he6XziDpktaRk" - paroxetine hyrochloride
"http://en.gravatar.com/kedsgaformy#pic-1" - compazine iv
"http://en.gravatar.com/halfxypobo#pic-1" - singulair used for
"http://en.gravatar.com/hucuadlipi#pic-1" - buy zovirax shingles
"http://en.gravatar.com/garelogra#pic-1" - avapro norvasc lotensin trial benazepril
"http://posterous.com/people/he6XziDywrI2S" - affect generic spironolactone
"http://posterous.com/people/he6XEtTBYpblM" - does cozaar contain sulphur

A Humane identical Delimitation From the Webopedia Computer - Added by pyboabarl pyboabarl 12 months ago

"http://en.gravatar.com/conscagepa#pic-1" - medroxyprogesterone
"http://posterous.com/people/he6XEtTC7ulvQ" - ct oct prilosec
"http://en.gravatar.com/derravorda#pic-1" - company eli evista lilly
"http://posterous.com/people/he6XH5WLRFOWe" - clin ophthalmol and friedlaender and azithromycin
"http://en.gravatar.com/monesuplent#pic-1" - can i take zantac with levaquin
"http://posterous.com/people/he6XFLPFsnPWa" - generic affects of hyzaar
"http://en.gravatar.com/sysranade#pic-1" - what is macrobid
"http://en.gravatar.com/nabpartpevi#pic-1" - azithromycin dihydrate stability
"http://posterous.com/people/he6XFLPrpwuSe" - amitriptyline 25mg
"http://en.gravatar.com/tegusmaypers#pic-1" - can celexa cause headaches
"http://posterous.com/people/he6XFNHSYDXl0" - are cipro and levaquin alike
"http://en.gravatar.com/refcocopa#pic-1" - lisinopril in chf
"http://posterous.com/people/he6XFM8uDOiHU" - esomeprazole magnesium trihydrate
"http://posterous.com/people/he6XEtU8JEI9s" - cialis levitra
"http://en.gravatar.com/inaskose#pic-1" - keflex medication
"http://posterous.com/people/he6XFNHOgQjCG" - fedex delivery ativan
"http://en.gravatar.com/westbircatog#pic-1" - prilosec metabolized by liver
"http://en.gravatar.com/weitigebtae#pic-1" - inject estradiol valerate
"http://en.gravatar.com/psychexefclim#pic-1" - cheapest adipex without prescription
"http://posterous.com/people/he6XFO1thu0OK" - contraindications of cartia
"http://en.gravatar.com/choerihorve#pic-1" - pantoprazole maximum online
"http://posterous.com/people/he6XFNHJMFq9s" - is cefixime safe for children
"http://posterous.com/people/he6XH5WsVESXo" - clonidine patch tts
"http://en.gravatar.com/halfxypobo#pic-1" - singulair mixed with alchohol
"http://en.gravatar.com/tranabithouv#pic-1" - natural type of neurontin
"http://en.gravatar.com/soundtirirent#pic-1" - zanaflex 8 mg
"http://en.gravatar.com/bettutabu#pic-1" - dmso and motrin

Download movie or watch movie online - Added by aolovozazy aolovozazy 6 months ago

I am Watching movies online or Download full hq movies from site.com

<a href=http://testss.leadhoster.com/> Download full hq movies</a>

<a href="http://testss.leadhoster.com/"> Watch movies online</a>
Watch movies online
Watch movies online
Watch movies online
Watch movies online
Watch movies online

(1-11/11)