degeron / qmmp

Automatically exported from code.google.com/p/qmmp
0 stars 0 forks source link

Mac OSX port (information, patches, etc) #580

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1. download qmmp 67
2. compile and install
a) qmake -spec macx-g++
b) cmake -DCMAKE_INSTALL_PREFIX:PATH=/Users/sergey/Downloads/qmmp-0.6.7/ready . 
&& make && make install
c) cd /Users/sergey/Downloads/qmmp-0.6.7/ready/bin

3. ./qmmp
"libqmmpui.dylib" image not found

4. correct lib path for mac os

install_name_tool -change "libqmmpui.0.dylib" 
"/Users/sergey/Downloads/qmmp-0.6.7/ready/lib/libqmmpui.dylib"  qmmp

5. Final run output
./qmmp

/Users/sergey/Downloads/qmmp-0.6.7/ready/bin % ./qmmp 
QMMPStarter: removed invalid socket file
Output: plugin loaded - libnull.so
General: plugin loaded - libcovermanager.so
General: plugin loaded - libfileops.so
General: plugin loaded - libhal.so
General: plugin loaded - libkdenotify.so
General: plugin loaded - liblyrics.so
General: plugin loaded - libmpris.so
General: plugin loaded - libnotifier.so
General: plugin loaded - libscrobbler.so
General: plugin loaded - libstatusicon.so
General: plugin loaded - libstreambrowser.so
General: plugin loaded - libudisks.so

QMMPStarter: no user interface found

What is the expected output? What do you see instead?

application was started successfully without errors.

What version of the product are you using? On what operating system?
0.67

I know that player is not supported. But I can try to compile it to end, if 
could have the help; i need to understand the errors from qmmp.

Thank you

Original issue reported on code.google.com by ppdl...@gmail.com on 13 Mar 2013 at 9:20

GoogleCodeExporter commented 9 years ago
It's libskinned.so plugin (or libqsui.so from qmmp-plugin-pack):

user@ubuntu:~/qmmp-0.7/lib$ cd qmmp
user@ubuntu:~/qmmp-0.7/lib/qmmp$ ls
CommandLineOptions  Effect  Engines  FileDialogs  General  Input  Output  
PlayListFormats  Transports  Ui  Visual
user@ubuntu:~/qmmp-0.7/lib/qmmp$ cd Ui
user@ubuntu:~/qmmp-0.7/lib/qmmp/Ui$ ls
libqsui.so  libskinned.so
user@ubuntu:~/qmmp-0.7/lib/qmmp/Ui$ 

Original comment by trialuser02 on 14 Mar 2013 at 5:55

GoogleCodeExporter commented 9 years ago
Also see full qmmp output.

user@ubuntu:~/qmmp-0.7/bin$ ./qmmp_launcher
Setting LD_LIBRARY_PATH to
1) ./../lib
2) ./../src/qmmpui
3) /usr/bin/../lib

QGtkStyle was unable to detect the current GTK+ theme.
LXDESupport: using Lubuntu configuration
Qmmp: setting ui language to 'auto'
Output: loaded plugin libalsa.so
Output: loaded plugin libjack.so
Output: loaded plugin libnull.so
Output: loaded plugin liboss4.so
Output: loaded plugin libpulseaudio.so
OutputALSA: setupMixer()
OutputALSA: setupMixer() success
General: loaded plugin libconverter.so
General: loaded plugin libcopypaste.so
General: loaded plugin libcovermanager.so
General: loaded plugin libfileops.so
General: loaded plugin libhal.so
General: loaded plugin libhotkey.so
General: loaded plugin libkdenotify.so
General: loaded plugin liblyrics.so
General: loaded plugin libmpris.so
General: loaded plugin libnotifier.so
General: loaded plugin libscrobbler.so
General: loaded plugin libstatusicon.so
General: loaded plugin libstreambrowser.so
General: loaded plugin libtrackchange.so
General: loaded plugin libudisks2.so
UiLoader: loaded plugin libqsui.so
UiLoader: loaded plugin libskinned.so
MainWindow: detected wm: Openbox
Skin: using :/default
Skin: cannot find region.txt. Transparency disabled
Visual: loaded plugin libanalyzer.so
Visual: loaded plugin libprojectm.so
WindowSystem: setting sticky state of window 0x2600003 to false.

Original comment by trialuser02 on 14 Mar 2013 at 5:56

GoogleCodeExporter commented 9 years ago
Thanks for information. This helps me to understand how to enable user 
interface.

By default, cmake cant found X11 in mac os 10.8 .

I read little bit about, and found that FindX11.cmake macros must work. Hence I 
update CMakeList.txt :

...
#pkg_search_module(X11 x11)
find_package(X11)
...

Ok, X11 found. Nice! Output:

...
Advanced:
Skinned user interface ............enabled
...

After that, I launch compilation which fails in UI module with the error:

/usr/bin/c++   -bundle -Wl,-headerpad_max_install_names   -o libhotkey.so 
CMakeFiles/hotkey.dir/settingsdialog.o CMakeFiles/hotkey.dir/hotkeyfactory.o 
CMakeFiles/hotkey.dir/hotkeymanager.o CMakeFiles/hotkey.dir/hotkeydialog.o 
CMakeFiles/hotkey.dir/moc_settingsdialog.o 
CMakeFiles/hotkey.dir/moc_hotkeyfactory.o 
CMakeFiles/hotkey.dir/moc_hotkeymanager.o 
CMakeFiles/hotkey.dir/moc_hotkeydialog.o 
CMakeFiles/hotkey.dir/qrc_translations.o  -L/opt/X11/lib  -L/usr/local/lib  
-L/usr/local/lib32  -L/usr/local/lib64  
-L/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/General/hotkey/../../../qmmpui 
 -L/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/General/hotkey/../../../qmmp 
-framework QtGui -framework QtCore -lqmmpui -lqmmp
ld: warning: directory not found for option '-L/usr/local/lib32'
ld: warning: directory not found for option '-L/usr/local/lib64'
Undefined symbols for architecture x86_64:
  "HotkeyManager::eventFilter(QObject*, QEvent*)", referenced from:
      vtable for HotkeyManager in moc_hotkeymanager.o
  "HotkeyManager::getKeyString(unsigned int, unsigned int)", referenced from:
      SettingsDialog::SettingsDialog(QWidget*) in settingsdialog.o
      SettingsDialog::on_tableWidget_itemDoubleClicked(QTableWidgetItem*) in settingsdialog.o
      SettingsDialog::on_resetButton_clicked() in settingsdialog.o
      HotkeyDialog::HotkeyDialog(unsigned int, unsigned int, QWidget*) in hotkeydialog.o
      HotkeyDialog::keyPressEvent(QKeyEvent*) in hotkeydialog.o
  "HotkeyManager::keycodeToKeysym(unsigned int)", referenced from:
      HotkeyDialog::keyPressEvent(QKeyEvent*) in hotkeydialog.o
  "HotkeyManager::ignModifiersList()", referenced from:
      HotkeyDialog::keyPressEvent(QKeyEvent*) in hotkeydialog.o
  "HotkeyManager::HotkeyManager(QObject*)", referenced from:
      HotkeyFactory::create(QObject*) in hotkeyfactory.o
  "HotkeyManager::~HotkeyManager()", referenced from:
      vtable for HotkeyManager in moc_hotkeymanager.o
  "HotkeyManager::~HotkeyManager()", referenced from:
      vtable for HotkeyManager in moc_hotkeymanager.o
  "Hotkey::defaultKey()", referenced from:
      SettingsDialog::SettingsDialog(QWidget*) in settingsdialog.o
      SettingsDialog::on_resetButton_clicked() in settingsdialog.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/plugins/General/hotkey/libhotkey.so] Error 1
make[1]: *** [src/plugins/General/hotkey/CMakeFiles/hotkey.dir/all] Error 2

Someone have ideas whats happens? How I can fix it?

Thanks!

Original comment by ppdl...@gmail.com on 16 Mar 2013 at 9:10

GoogleCodeExporter commented 9 years ago
Tru to disable hotkey plugin, i.e. cmake ./ -DUSE_HOTKEY=FALSE. It's simplest 
solution. But the problem is that Q_WS_X11 is undefined under macos. You can 
try to replace it by Q_WS_MAC in the file hotkeymanager.cpp

Original comment by trialuser02 on 17 Mar 2013 at 8:14

GoogleCodeExporter commented 9 years ago
I have dis-activate hotkey module. When I run qmmp, he says qt plugin fails to 
load (“not a valid qt plugin”). Nevertheless, we see many plugins loaded 
before. Any idea ?

Here is output:

/Users/sergey/Downloads/qmmp-0.6.7/ready/bin % ./qmmp
QFactoryLoader::QFactoryLoader() looking at 
"/Developer/Applications/Qt/plugins/iconengines/libqsvgicon.dylib"
keys ("svg", "svgz", "svg.gz")
QFactoryLoader::QFactoryLoader() looking at 
"/Developer/Applications/Qt/plugins/iconengines/libqsvgicon.dylib"
keys ()
QFactoryLoader::QFactoryLoader() looking at 
"/Developer/Applications/Qt/plugins/imageformats/libqgif.dylib"
keys ("gif")
QFactoryLoader::QFactoryLoader() looking at 
"/Developer/Applications/Qt/plugins/imageformats/libqico.dylib"
keys ("ico")
QFactoryLoader::QFactoryLoader() looking at 
"/Developer/Applications/Qt/plugins/imageformats/libqjpeg.dylib"
keys ("jpeg", "jpg")
QFactoryLoader::QFactoryLoader() looking at 
"/Developer/Applications/Qt/plugins/imageformats/libqmng.dylib"
keys ("mng")
QFactoryLoader::QFactoryLoader() looking at 
"/Developer/Applications/Qt/plugins/imageformats/libqsvg.dylib"
keys ("svg", "svgz")
QFactoryLoader::QFactoryLoader() looking at 
"/Developer/Applications/Qt/plugins/imageformats/libqtga.dylib"
keys ("tga")
QFactoryLoader::QFactoryLoader() looking at 
"/Developer/Applications/Qt/plugins/imageformats/libqtiff.dylib"
keys ("tiff", "tif")
QMMPStarter: removed invalid socket file
Output: plugin loaded - libnull.so
General: plugin loaded - libcovermanager.so
General: plugin loaded - libfileops.so
General: plugin loaded - libhal.so
General: plugin loaded - libkdenotify.so
General: plugin loaded - liblyrics.so
General: plugin loaded - libmpris.so
General: plugin loaded - libnotifier.so
General: plugin loaded - libscrobbler.so
General: plugin loaded - libstatusicon.so
General: plugin loaded - libstreambrowser.so
General: plugin loaded - libudisks.so

UiLoader: Le fichier 
'/Users/sergey/Downloads/qmmp-0.6.7/ready/lib/qmmp/Ui/libskinned.so' n'est pas 
un plugin Qt valide.

QMMPStarter: no user interface found

my structure of binaries files:

├── bin
│   └── qmmp
├── include
│   ├── qmmp
│   │   ├── abstractengine.h
│   │   ├── audioparameters.h
│   │   ├── buffer.h
│   │   ├── decoder.h
│   │   ├── decoderfactory.h
│   │   ├── effect.h
│   │   ├── effectfactory.h
│   │   ├── enginefactory.h
│   │   ├── eqsettings.h
│   │   ├── fileinfo.h
│   │   ├── inputsource.h
│   │   ├── inputsourcefactory.h
│   │   ├── metadatamanager.h
│   │   ├── metadatamodel.h
│   │   ├── output.h
│   │   ├── outputfactory.h
│   │   ├── qmmp.h
│   │   ├── qmmpsettings.h
│   │   ├── recycler.h
│   │   ├── soundcore.h
│   │   ├── statehandler.h
│   │   ├── tagmodel.h
│   │   ├── visual.h
│   │   ├── visualfactory.h
│   │   └── volume.h
│   └── qmmpui
│       ├── commandlinemanager.h
│       ├── commandlineoption.h
│       ├── configdialog.h
│       ├── detailsdialog.h
│       ├── filedialog.h
│       ├── filedialogfactory.h
│       ├── general.h
│       ├── generalfactory.h
│       ├── mediaplayer.h
│       ├── metadataformatter.h
│       ├── playlistformat.h
│       ├── playlistitem.h
│       ├── playlistmanager.h
│       ├── playlistmodel.h
│       ├── playlistparser.h
│       ├── qmmpuisettings.h
│       ├── templateeditor.h
│       ├── uifactory.h
│       ├── uihelper.h
│       └── uiloader.h
├── lib
│   ├── libqmmp.0.6.7.dylib
│   ├── libqmmp.0.dylib -> libqmmp.0.6.7.dylib
│   ├── libqmmp.dylib -> libqmmp.0.dylib
│   ├── libqmmpui.0.6.7.dylib
│   ├── libqmmpui.0.dylib -> libqmmpui.0.6.7.dylib
│   ├── libqmmpui.dylib -> libqmmpui.0.dylib
│   ├── pkgconfig
│   │   ├── qmmp.pc
│   │   └── qmmpui.pc
│   └── qmmp
│       ├── CommandLineOptions
│       │   ├── libincdecvolumeoption.so
│       │   ├── libplaylistoption.so
│       │   ├── libseekoption.so
│       │   └── libstatusoption.so
│       ├── Effect
│       │   ├── libcrossfade.so
│       │   ├── libladspa.so
│       │   └── libstereo.so
│       ├── Engines
│       │   └── libmplayer.so
│       ├── FileDialogs
│       │   └── libqmmpfiledialog.so
│       ├── General
│       │   ├── libcovermanager.so
│       │   ├── libfileops.so
│       │   ├── libhal.so
│       │   ├── libkdenotify.so
│       │   ├── liblyrics.so
│       │   ├── libmpris.so
│       │   ├── libnotifier.so
│       │   ├── libscrobbler.so
│       │   ├── libstatusicon.so
│       │   ├── libstreambrowser.so
│       │   └── libudisks.so
│       ├── Input
│       │   └── libcue.so
│       ├── Output
│       │   └── libnull.so
│       ├── PlaylistFormats
│       │   ├── libm3uplaylistformat.so
│       │   ├── libplsplaylistformat.so
│       │   └── libxspfplaylistformat.so
│       ├── Ui
│       │   └── libskinned.so
│       └── Visual
│           └── libanalyzer.so
└── share
    ├── applications
    │   ├── qmmp.desktop
    │   ├── qmmp_cue.desktop
    │   ├── qmmp_dir.desktop
    │   └── qmmp_enqueue.desktop
    ├── icons
    │   └── hicolor
    │       ├── 16x16
    │       │   └── apps
    │       │       └── qmmp.png
    │       ├── 32x32
    │       │   └── apps
    │       │       └── qmmp.png
    │       ├── 48x48
    │       │   └── apps
    │       │       └── qmmp.png
    │       └── scalable
    │           └── apps
    │               ├── qmmp-simple.svgz
    │               └── qmmp.svgz
    └── qmmp
        └── images
            ├── app_icon.png
            └── empty_cover.png

Original comment by ppdl...@gmail.com on 17 Mar 2013 at 11:07

GoogleCodeExporter commented 9 years ago
yahoo !!! Its works .
Problem was in wrong path of libqmmpui for libskinned.so qt plugin.

fixed with install_name_tool:

install_name_tool -change "libqmmpui.0.dylib" 
"/Users/sergey/Downloads/qmmp-0.6.7/ready/lib/libqmmpui.dylib"  
/Users/sergey/Downloads/qmmp-0.6.7/ready/lib/qmmp/Ui/libskinned.so

Next step, make it play mp3:

1) I install libmad from port

/opt/local/bin/lzmadec
/opt/local/include/mad.h
/opt/local/lib/libmad.0.dylib
/opt/local/lib/libmad.a
/opt/local/lib/libmad.dylib
/opt/local/lib/libmad.la
/opt/local/lib/pkgconfig/mad.pc

2) I run cmake with use mad:

cmake -DCMAKE_INSTALL_PREFIX=./ready 
-DLIB_DIR=/Users/sergey/Downloads/qmmp-0.6.7/ready/lib -DUSE_SKINNED:BOOL=TRUE 
-DUSE_HOTKEY=FALSE -DUSE_MAD=TRUE .

Anyway, MAD disabled. Output:

/Users/sergey/Downloads/qmmp-0.6.7 % cmake -DCMAKE_INSTALL_PREFIX=./ready 
-DLIB_DIR=/Users/sergey/Downloads/qmmp-0.6.7/ready/lib -DUSE_SKINNED:BOOL=TRUE 
-DUSE_HOTKEY=FALSE -DUSE_MAD=TRUE .
-- Qmmp API version: 0.6.7 (stable)
-- Found lrelease executable: /Developer/Tools/Qt/lrelease
-- Generating translations ...
-- checking for one of the modules 'enca>=1.9'
-- checking for one of the modules 'taglib'
-- checking for modules 
'libavcodec>=52.72.2;libavformat>=52.64.2;libavutil>=50.15.1'
--   package 'libavcodec>=52.72.2' not found
--   package 'libavformat>=52.64.2' not found
--   package 'libavutil>=50.15.1' not found
-- checking for one of the modules 'sndfile'
-- checking for one of the modules 'wavpack'
-- checking for one of the modules 'libmodplug'
-- checking for modules 'libcdio;libcdio_cdda;libcdio_paranoia;libcddb'
--   package 'libcdio' not found
--   package 'libcdio_cdda' not found
--   package 'libcdio_paranoia' not found
--   package 'libcddb' not found
-- checking for one of the modules 'alsa'
-- checking for modules 'jack;samplerate'
--   found jack, version 0.121.3
--   found samplerate, version 0.1.8
-- Performing Test JACK_NEW_API
-- Performing Test JACK_NEW_API - Failed
-- checking for module 'libpulse-simple>=0.9.15'
--   package 'libpulse-simple>=0.9.15' not found
-- checking for one of the modules 'libprojectM'
-- checking for one of the modules 'libprojectM>=2.0.0'
-- checking for module 'samplerate'
--   found samplerate, version 0.1.8
-- checking for one of the modules 'libbs2b>=3.0.0'
-- checking for one of the modules 'libcurl'
-- checking for one of the modules 'libmms>=0.4'

Transports:
HTTP support ......................disabled
MMS support .......................disabled

Input Plugins:
mp3 support .......................disabled
FLAC support ......................disabled
Ogg Vorbis support ................disabled
Musepack support ..................disabled
MOD support .......................enabled
Wave support ......................enabled
WavPack support ...................disabled
FFmpeg support ....................disabled
AAC support .......................disabled
CUE sheet support .................enabled
Mplayer support ...................enabled
CD Audio support ..................disabled
Midi support ......................disabled
Game music support ................disabled

Output Plugins:
ALSA support ......................disabled
OSS support .......................disabled
OSS4 support ......................disabled
JACK support ......................enabled
PulseAudio support ................disabled
Null output support ...............enabled
Win32 Waveout support .............disabled

Effect Plugins:
Sample Rate Conversion ............enabled
BS2B Plugin .......................disabled
LADSPA Host .......................enabled
Crossfade .........................enabled
Extra Stereo ......................enabled

Visual Plugins:
Analyzer ..........................enabled
ProjectM ..........................disabled

General Plugins:
MPRIS support .....................enabled
Scrobbler .........................enabled
Tray support ......................enabled
Notifier support ..................enabled
Lyrics support ....................enabled
HAL support .......................enabled
UDisks support ....................enabled
Global hotkey support .............disabled
File operations ...................enabled
Cover manager .....................enabled
KDE4 notifications support ........enabled
Audio converter ...................disabled
Stream browser ....................enabled

File Dialogs:
QMMP File Dialog ..................enabled

Advanced:
Skinned user interface ............enabled
Automatic charset detection .......disabled
Directory association .............enabled

How I can make visible MAD for cmake file ?
I see only verification of MAD_FOUND, but no declaration of MAD.

Original comment by ppdl...@gmail.com on 17 Mar 2013 at 2:58

GoogleCodeExporter commented 9 years ago
Okey, finally mp3 support compiled (I created FindMad.cmake in cmake Modules 
and add find_package(MAD) line  in CMakeList.txt) .

Last important thing: currently, I have only "null" output plugin.

Mac OS use coreAudio output drivers. 
But I see that I can only enable disable support for OSS, OSS4,Also, Jack and 
windows drivers.

How I can make force qmmp use CoreAudio ?

Original comment by ppdl...@gmail.com on 17 Mar 2013 at 4:06

GoogleCodeExporter commented 9 years ago
Unfortunately, qmmp doesn't have CoreAudio support, but you can try to use 
pulseaudio: 
http://blog.philippklaus.de/2012/03/installing-pulseaudio-on-mac-os-x-10-7-lion-
via-homebrew/ http://www.freedesktop.org/wiki/Software/PulseAudio/Ports/OSX

But it's very hard and difficult solution. 

Original comment by trialuser02 on 17 Mar 2013 at 4:56

GoogleCodeExporter commented 9 years ago
Just for information:

I successfully compile jack output. 
When I run playback of mp3 file, I see that Jack Saw qmmp output and I connect 
it to system playback.

Anyway, qmmp not play file; in console error debug output:

ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::getDriver
(283) lock returned an error
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::releaseDr
iver(350) lock returned an error
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::getDriver
(283) lock returned an error
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::releaseDr
iver(350) lock returned an error
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::getDriver
(283) lock returned an error
...
[0

Original comment by ppdl...@gmail.com on 19 Mar 2013 at 10:31

GoogleCodeExporter commented 9 years ago
Small screenshot to give courage to people who want to complile qmmp!

Original comment by ppdl...@gmail.com on 19 Mar 2013 at 10:37

Attachments:

GoogleCodeExporter commented 9 years ago
Issue 116 has been merged into this issue.

Original comment by trialuser02 on 1 Apr 2013 at 6:38

GoogleCodeExporter commented 9 years ago

Original comment by trialuser02 on 1 Apr 2013 at 6:40

GoogleCodeExporter commented 9 years ago
Here we go again. When output plugin Null, playback is OK, no errors in output 
console, music is playing but without sound.

When I run playback with Jack plugin, I see in ports of output of OS Jack 
Server "bio2jack_5128_000" . Neverless, its impossible to connect 
"bio2jack_5128_000" to System "playback_1 playback_2". There is some output to 
console. Please help me to understand what happens, maybe I could repair it.

Here is console output when I press play:

/Users/sergey/Downloads/qmmp-0.6.7/ready/bin % ./qmmp
QMMPStarter: removed invalid socket file
General: plugin loaded - libconverter.so
General: plugin loaded - libcovermanager.so
General: plugin loaded - libfileops.so
General: plugin loaded - libhal.so
General: plugin loaded - libkdenotify.so
General: plugin loaded - liblyrics.so
General: plugin loaded - libmpris.so
General: plugin loaded - libnotifier.so
General: plugin loaded - libscrobbler.so
General: plugin loaded - libstatusicon.so
General: plugin loaded - libstreambrowser.so
General: plugin loaded - libudisks.so
UiLoader: plugin loaded - libskinned.so
Skin: using :/default
Skin: cannot find region.txt. Transparency disabled
Visual: plugin loaded - libanalyzer.so
InputSource: using file transport
ReplayGain: disabled
Decoder: plugin loaded - libcue.so
Decoder: plugin loaded - libflac.so
Decoder: plugin loaded - libmad.so
Decoder: plugin loaded - libmodplug.so
Decoder: plugin loaded - libsndfile.so
Decoder: plugin loaded - libvorbis.so
QmmpAudioEngine: selected decoder: mad
DecoderMAD: Fixed rate detected
DecoderMAD: Total time: 416970
Effect: plugin loaded - libcrossfade.so
Effect: plugin loaded - libladspa.so
Effect: plugin loaded - libsrconverter.so
Effect: plugin loaded - libstereo.so
Output: plugin loaded - libjack.so
Output: plugin loaded - libnull.so
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::releaseDr
iver(350) lock returned an error
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::releaseDr
iver(350) lock returned an error
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::releaseDr
iver(350) lock returned an error
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::releaseDr
iver(350) lock returned an error
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::releaseDr
iver(350) lock returned an error
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::releaseDr
iver(350) lock returned an error
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::releaseDr
iver(350) lock returned an error
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::releaseDr
iver(350) lock returned an error
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::releaseDr
iver(350) lock returned an error
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::releaseDr
iver(350) lock returned an error
OutputJACK: initialize
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::getDriver
(283) lock returned an error
qmmp(5113,0x11b1b5000) malloc: *** mmap(size=17929822574352281600) failed 
(error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::JACK_call
back(590) could not realloc callback_buffer2!
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::releaseDr
iver(350) lock returned an error
Output: [jack] 44100 Hz, 2 ch, s16le
StateHandler: Current state: Buffering; previous state: Stopped
ReplayGain: disabled
StateHandler: Current state: Playing; previous state: Buffering
DecoderMAD: 2458 bytes skipped
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::getDriver
(283) lock returned an error
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::releaseDr
iver(350) lock returned an error
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::getDriver
(283) lock returned an error
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::releaseDr
iver(350) lock returned an error
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::getDriver
(283) lock returned an error
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::releaseDr
iver(350) lock returned an error
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::getDriver
(283) lock returned an error
ERR: 
/Users/sergey/Downloads/qmmp-0.6.7/src/plugins/Output/jack/bio2jack.c::releaseDr
iver(350) lock returned an error
E
...
...
...

Here is line 350 of bio2jack.c

----
#if TRACE_getReleaseDevice
#define tryGetDriver(x) _tryGetDriver(x,fprintf(OUTFILE, "%s::%s(%d) trying to 
get driver %d\n", __FILE__, __FUNCTION__, __LINE__,x)); TRACE("got driver 
%d\n",x);
jack_driver_t *
_tryGetDriver(int deviceID, int ignored)
{
  fflush(OUTFILE);
#else
jack_driver_t *
tryGetDriver(int deviceID)
{
#endif
  jack_driver_t *drv = &outDev[deviceID];

  int err;
  if((err = pthread_mutex_trylock(&drv->mutex)) == 0)
    return drv;

  if(err == EBUSY)
  {
    TRACE("driver %d is busy\n",deviceID);
    return 0;
  }

  ERR("lock returned an error\n");
  return 0;
}
----

Original comment by ppdl...@gmail.com on 9 Apr 2013 at 8:50

GoogleCodeExporter commented 9 years ago
Try latest bio2jack from svn/trunk. Also you should enable debug output in 
bio2jack.c (See lines 40-49 in bio2jack.c)

Original comment by trialuser02 on 19 Apr 2013 at 3:11