LMMS / lmms

Cross-platform music production software
https://lmms.io
GNU General Public License v2.0
8.08k stars 1k forks source link

cannot export through mainWindow #692

Closed oeai closed 9 years ago

oeai commented 10 years ago

Cannot export through mainWindow only with lmms.exe -i -r -b -o -x -s i'm not sure why, if it is a matter of distro and maybe compile settings, i was using Jack last time, but with ALSA it was working only with few options , and i mentioned that lmms-console uses about 280% of CPU while lmms-gui was only 100% wav was working and ogg just closes the window

i'm under linux x64, Using Jack with 2 cards Duplex 48k 4096 RT alsa lat 171ms lmms params 7936 fragm 165.3 render settings wav 44 160 16bit fast 2x 0 0 0 on the time window i see -35 -23 -641, i can change values of export but start button is locked cpu load is 105% maybe the problem is that it uses only one thread? and it is too slow because of that this project was rendering about 15mins with max300% load through console and this is why i don't get a percent at progress bar in about 10mins with gui?

when i cancel render lmms still working at 100%, not answering to Quit and hanged after that (pkill lmms only)

tresf commented 10 years ago

You say "Linux x64", which distro?

oeai commented 10 years ago

ROSA (means dew) Fresh R2 kernel 3.11.8-rt, i can provide lmms compilation log, if you need that. but i don't think that it matters, because i'm using same lmms, just with command line render it works and in GUI-mode it's not, maybe it works, but just too slow to see any changes. in 10mins i got wav file of 44bytes long

Sti2nd commented 10 years ago

A lot of specs from your PC, but none from LMMS. @oeai

Anyways, I think it might be some bad characters in the destination file or filename. Try to use the english alphabet only and see.

Even if LMMS only uses one thread let it work... if it don't crash it is perhaps working? Haven't we had this unresponsive bug before, anyone?

tresf commented 10 years ago

Master or stable branch? (I assume you compiled from source) ?

oeai commented 10 years ago

i got source compile also, can give it a try it is a master here's spec requires

BuildRequires:  cmake
BuildRequires:  qt4-devel >= 4.3.0
BuildRequires:  SDL_sound-devel
BuildRequires:  pkgconfig(fftw3) >= 3.0.0
BuildRequires:  pkgconfig(fluidsynth) >= 1.0.7
BuildRequires:  pkgconfig(jack) >= 0.100
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(samplerate) >= 0.1.8
BuildRequires:  pkgconfig(sndfile) >= 1.0.11
%ifarch x86_64
BuildRequires:  wine64-devel
%else
BuildRequires:  wine-devel
%endif
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(ogg)
BuildRequires:  pkgconfig(portaudio-2.0) >= 19
# Synthesis ToolKit
BuildRequires:  stk-devel >= 4.4.4
# Various LADSPA plugins
BuildRequires:  calf
BuildRequires:  caps
BuildRequires:  cmt dssi-vst
BuildRequires:  swh-plugins swh-lv2
BuildRequires:  fltk-devel
BuildRequires:  ladspa ladspa-devel
BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(xft)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(x11)
BuildRequires:  freetype-devel
BuildRequires:  pkgconfig(xinerama)
BuildRequires:  doxygen
Requires: alsa fltk calf caps cmt swh-plugins libxext freetype ladspa

it feels like the same with source compile, but now i see some errors, maybe because it is 1.0.1 and project was in 1.0.2

WARNING: Chorus.cpp::getdelay(..) too big delay (see setdelay and setdepth funcs.)
JackEngine::XRun: client = lmms was not run: state = 1
JackAudioDriver::ProcessGraphAsyncMaster: Process error
patternView(0x6f29590)  does not have a property named  "fgColor" 
patternView(0x6f29590)  does not have a property named  "textColor" 
patternView(0x6f29590)  does not have a property named  "fgColor" 
patternView(0x6f29590)  does not have a property named  "textColor" 
trackContentWidget(0x790e968)  does not have a property named  "darkerColor1" 
trackContentWidget(0x790e968)  does not have a property named  "darkerColor2" 
trackContentWidget(0x790e968)  does not have a property named  "darkerColor3" 
trackContentWidget(0x790e968)  does not have a property named  "lighterColor1" 
trackContentWidget(0x790e968)  does not have a property named  "lighterColor2" 
trackContentWidget(0x790e968)  does not have a property named  "lighterColor3" 
trackContentWidget(0x790e968)  does not have a property named  "gradMidPoint" 

and then again running same with console render and it works! 105% for gui 160% for console on first 5% in about a minute

tresf commented 10 years ago

Ok, master is considered unstable, so any and all bugs against it should be very specifically stated.

If you have time, can you build against 1.0.0-stable and verify this issue is not present? That would isolate it to the master branch and then Jonathan can assign to the appropriate dev.

oeai commented 10 years ago

as i remember stable didn't have multi-threading - it's not an issue of 1.0.0 stable release was working before, but i think i can repack it fast, will try it.

tresf commented 10 years ago

Please test on 1.0.0 and then come back and label your original bug report accordingly. Also know that when switching between versions you should move your settings file as to not falsely report settings mismatched errors.

mv ~/.lmmsrc.xml ~/.lmmsrc_bak.xml

-Tres

oeai commented 10 years ago

with 1.0.1 i got less errors, but still not working, also with alsa instead of jack +mv config

JackEngine::XRun: client = lmms was not run: state = 1
JackAudioDriver::ProcessGraphAsyncMaster: Process error
WARNING: Chorus.cpp::getdelay(..) too big delay (see setdelay and setdepth funcs.)

make uninstall have no rules going for 1.0.0 stable

oeai commented 10 years ago

with stable-1.0 branch i got version 1.0.2 GUi hangs with WARNING: Chorus.cpp::getdelay(..) too big delay (see setdelay and setdepth funcs.) console works i've send another project less hard, that was working with stable 1.0.0 and it is also not rendering in 1.0.1-(master) and 1.0.2-stable. process goes to 105%, no seen errors this time while it was set to alsa-default i had errors

ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib dlmisc.c:252:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
ALSA lib dlmisc.c:252:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
Cannot connect to server socket err = В соединении отказано
Cannot connect to server socket
jack server is not running or cannot be started
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib dlmisc.c:252:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
ALSA lib dlmisc.c:252:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
Cannot connect to server socket err = В соединении отказано
Cannot connect to server socket
jack server is not running or cannot be started

moved to alsa hw:0 still can't render through gui

tobydox commented 10 years ago

All versions of LMMS have full multi threading support for ages. When rendering normal projects, LMMS makes use of all cores - at least it always has been doing for me. For small projects (only a few tracks and/or FX chains) it however could be possible that LMMS can't always make use of all cores. Please note that JACK isn't supported very well in LMMS. Accessing the soundcard directly is simply less overhead and results in less latency in the end. Having an extra layer like JACK only makes sense when combining many applications, doing multi track recording etc.

oeai commented 10 years ago

latest rendered file was 8 jan. after this date i wasn't doing much and then i've moved to 1.0.0 i just see that it halts with 105% while console render goes up-to 300

oeai commented 10 years ago

using alsa i was trying to set different samplerate default is 44.1 and mu card is probably set to 48, so when i changed to 48khz, then at least it wasn't hanging. changed to .ogg with 160kbit i got

Mode initialization failed: invalid parameters for bitrate

changed resample value to 4

Effect::resample(): error while resampling: SRC ratio outside [1/256, 256] range.

wav file is empty, filled with silence for proper time

then i found this in console

ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Audigy2.pcm.surround40.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: 
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error:  No such file or catalog
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround40
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Audigy2.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error:  No such file or catalog
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error:  No such file or catalog
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround41
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Audigy2.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error:  No such file or catalog
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error:  No such file or catalog
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround50
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Audigy2.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error:  No such file or catalog
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error:  No such file or catalog
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround51
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Audigy2.pcm.surround71.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error:  No such file or catalog
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error:  No such file or catalog
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib setup.c:548:(add_elem) Cannot obtain info for CTL elem (MIXER,'Audigy Analog/Digital Output Jack',0,0,0): Нет такого файла или каталога
ALSA lib setup.c:548:(add_elem) Cannot obtain info for CTL elem (MIXER,'Audigy Analog/Digital Output Jack',0,0,0): Нет такого файла или каталога
ALSA lib setup.c:548:(add_elem) Cannot obtain info for CTL elem (MIXER,'Audigy Analog/Digital Output Jack',0,0,0):  No such file or catalog
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Audigy2.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error:  No such file or catalog
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error:  No such file or catalog
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Audigy2.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error:  No such file or catalog
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error:  No such file or catalog
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Audigy2.pcm.modem.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error:  No such file or catalog
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error:  No such file or catalog
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Audigy2.pcm.modem.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error:  No such file or catalog
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error:  No such file or catalog
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Audigy2.pcm.modem.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error:  No such file or catalog
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error:  No such file or catalog
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM phoneline
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Audigy2.pcm.modem.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error:  No such file or catalog
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error:  No such file or catalog
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM phoneline
ALSA lib dlmisc.c:252:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
ALSA lib dlmisc.c:252:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Cannot connect to server socket err =  No such file or catalog
Cannot connect to server socket
jack server is not running or cannot be started

so i get through this once again with Jack enabled

Cannot lock down 82246176 byte memory area 
JackEngine::XRun: client = lmms was not run: state = 2
JackAudioDriver::ProcessGraphAsyncMaster: Process error
JackProcessSync::LockedTimedWait error usec = 5000000 err = Connection timed out
Driver is not running
Cannot create new client
Mode initialization failed: invalid parameters for bitrate

maybe it is trying to use wrong source for render? also i mentioned that it is starting new instance of jackd, while i had one already.

diizy commented 10 years ago

On 05/08/2014 06:45 PM, Ra wrote:

as i remember stable didn't have multi-threading - it's not an issue of 1.0

Completely incorrect. Multi-threading was present before 1.0 already.

oeai commented 10 years ago

that was about some threading class that i saw in master and didn't found in stable. maybe it is because of multiple cards, but maybe lmms-gui locks the source for play and when trying to render cannot access it or change settings. maybe not so proper setup of jackd, especially if it is running already, i don't know. as i see i can render without sound card and if lmms-runnings it creates another lmms instance for jack, so the easiest solution is just enabling console render through gui (just passing setting for render) - i don't need to see how it goes through and well i think that latencies for render should be really changed, because in working mode i use about 5ms to get fast midi-to-synth playback.

tresf commented 9 years ago

This is the only bug report I've seen in regards to broken exporting on stable. Because of that, I'm going to close this out as invalid.

If you are able to offer steps to reproduce this crash on another computer, please amend them to the bug description and reopen.