[Savonet-users] [savonet/liquidsoap] SIGSEGV (#635)
OS: Arch Linux update to today Liquidsoap: 1.3.4 this is the liq file ``` #!/usr/bin/liquidsoap # Log dir set("log.file.path","/tmp/basic-radio.log") # Music myplaylist = playlist(mode="random",timeout=40., "/home/radio/gmusic/gmusic-unsplitted.m3u") # Some jingles jingles = playlist("/home/radio/jingles/jingles.m3u") # If the stream fails, we'll just play nothing... security = blank(id="blank", duration=1.) security = mksafe(security) # This is assured to be safe! # Start building the feed with music radio = myplaylist # Now add some jingles radio = random(weights = [1, 3],[jingles, radio]) # And finally the security radio = fallback(track_sensitive = false, [radio, security]) # Stream it out output.icecast( %fdkaac(channels=2, samplerate=44100, bitrate=96), host = "localhost", port = 8000, password = "password", mount = "/stream", radio) ``` and this is the gdb output: ``` Starting program: /usr/bin/liquidsoap /home/morfeo/zeroradio/assets/radio.liq -v [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". 2018/09/24 12:28:49 >>> LOG START [New Thread 0x7fffe2053700 (LWP 25969)] [New Thread 0x7fffe1852700 (LWP 25970)] [New Thread 0x7fffe1051700 (LWP 25971)] [New Thread 0x7fffe0850700 (LWP 25972)] [New Thread 0x7fffe004f700 (LWP 25973)] [New Thread 0x7fffdf84e700 (LWP 25974)] [New Thread 0x7fffdf04d700 (LWP 25975)] [New Thread 0x7fffde84c700 (LWP 25976)] 2018/09/24 12:28:49 [main:3] Liquidsoap 1.3.4 2018/09/24 12:28:49 [main:3] Using: bytes=[distributed with OCaml 4.02 or above] pcre=7.3.4 dtools=0.4.1 duppy=0.7.3 duppy.syntax=0.7.3 cry=0.6.2 mm=0.4.0 xmlplaylist=0.1.4 lastfm=0.3.2 ogg=0.5.2 vorbis=0.7.1 opus=0.1.2 speex=0.2.1 mad=0.4.5 flac=0.1.3 flac.ogg=0.1.3 dynlink=[distributed with Ocaml] lame=0.3.3 shine=0.2.1 gstreamer=0.3.0 fdkaac=0.2.1 theora=0.3.1 gavl=0.1.6 ffmpeg=0.2.0 bjack=0.1.5 alsa=0.2.3 ao=0.2.1 samplerate=0.1.4 taglib=0.3.4 ssl=0.5.6 magic=0.7.3 camomile=[unspecified] inotify=2.3 yojson=1.4.1 faad=0.4.0 soundtouch=0.1.8 pulseaudio=0.1.3 ladspa=0.1.5 dssi=0.1.2 sdl=0.9.1 lo=0.1.1 gd=1.0a5 2018/09/24 12:28:49 [gstreamer.loader:3] Loaded GStreamer 1.14.3 0 2018/09/24 12:28:49 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master. 2018/09/24 12:28:49 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples. 2018/09/24 12:28:49 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks. 2018/09/24 12:28:49 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks. 2018/09/24 12:28:49 [threads:3] Created thread "gstreamer_main_loop" (1 total). 2018/09/24 12:28:49 [threads:3] Created thread "generic queue #1". 2018/09/24 12:28:49 [threads:3] Created thread "generic queue #2". 2018/09/24 12:28:49 [threads:3] Created thread "non-blocking queue #1". 2018/09/24 12:28:49 [threads:3] Created thread "non-blocking queue #2". 2018/09/24 12:28:49 [jingles(dot)m3u:3] Loading playlist... 2018/09/24 12:28:49 [jingles(dot)m3u:3] No mime type specified, trying autodetection. 2018/09/24 12:28:49 [jingles(dot)m3u:3] Playlist treated as format application/x-mpegURL 2018/09/24 12:28:49 [jingles(dot)m3u:3] Successfully loaded a playlist of 32 tracks. 2018/09/24 12:28:49 [a(dot)m3u:3] Loading playlist... 2018/09/24 12:28:49 [a(dot)m3u:3] No mime type specified, trying autodetection. 2018/09/24 12:28:49 [a(dot)m3u:3] Playlist treated as format application/x-mpegURL 2018/09/24 12:28:49 [a(dot)m3u:3] Successfully loaded a playlist of 200 tracks. 2018/09/24 12:28:50 [/stream:3] Connecting mount /stream for source@localhost... 2018/09/24 12:28:50 [decoder:3] Method "FFMPEG" accepted "/home/morfeo/zeroradio/assets/jingles/saluti/saluto-nunzio.flac". [New Thread 0x7fffddff2700 (LWP 25980)] 2018/09/24 12:28:50 [/stream:3] Connection setup was successful. 2018/09/24 12:28:50 [clock.wallclock_main:3] Streaming loop starts, synchronized with wallclock. 2018/09/24 12:28:50 [threads:3] Created thread "wallclock_main" (2 total). 2018/09/24 12:28:50 [fallback_8080:3] Switch to mksafe. 2018/09/24 12:28:50 [mksafe:3] Switch to blank. 2018/09/24 12:28:50 [jingles(dot)m3u:3] Prepared "/home/morfeo/zeroradio/assets/jingles/saluti/saluto-nunzio.flac" (RID 2). 2018/09/24 12:28:50 [fallback_8080:3] Switch to random_8078 with transition. 2018/09/24 12:28:50 [random_8078:3] Switch to jingles(dot)m3u. 2018/09/24 12:28:50 [decoder:3] Method "FFMPEG" accepted "/home/morfeo/zeroradio/assets/jingles/saluti/saluto-nick.flac". [Detaching after fork from child process 25983] 2018/09/24 12:28:57 [jingles(dot)m3u:3] Finished with "/home/morfeo/zeroradio/assets/jingles/saluti/saluto-nunzio.flac". 2018/09/24 12:28:58 [jingles(dot)m3u:3] Prepared "/home/morfeo/zeroradio/assets/jingles/saluti/saluto-nick.flac" (RID 4). Thread 8 "liquidsoap" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffdf04d700 (LWP 25975)] 0x55c2962d in caml_c_call () ``` thanks for any
Re: [Savonet-users] [savonet/liquidsoap] SIGSEGV (#635)
Thanks for the report. Would mind sending the full backtrace? You can get it by doing: ``` thread apply all bt ``` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/savonet/liquidsoap/issues/635#issuecomment-423994354___ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users
Re: [Savonet-users] add_protocol issue
request.trace 1 [2018/09/24 17:45:30] Pushed ["test:";...]. [2018/09/24 17:45:30] Resolving "test:" (timeout 20s)... [2018/09/24 17:45:30] Pushed ["process:txt,echo ./test.mp3 >> $(output)";...]. [2018/09/24 17:45:30] Resolving "process:txt,echo ./test.mp3 >> $(output)" (timeout 20s)... [2018/09/24 17:45:30] Processing txt,echo ./test.mp3 >> $(output) [2018/09/24 17:45:30] Executing echo ./test.mp3 >> "/tmp/liq-processd0b470.txt" Le dim. 23 sept. 2018 à 20:27, Romain Beauxis a écrit : > That's strange.. > > Can you get a request.trace through telnet ? > > Also, what OS/OCaml version are you using? > > Le dim. 23 sept. 2018 à 13:23, sébastien dagnicourt < > sebastien.dagnico...@gmail.com> a écrit : > >> Same with 1.3.4 :( >> >> Issue is somewhere else ... >> >> 2018/09/23 20:21:04 >>> LOG START >> 2018/09/23 20:21:04 [main:3] Liquidsoap 1.3.4 >> 2018/09/23 20:21:04 [main:3] Using: bytes=[distributed with OCaml 4.02 or >> above] pcre=7.3.4 dtools=0.4.0 duppy=0.7.1 duppy.syntax=0.7.1 cry=0.6.2 >> mm=0.4.0 ogg=0.5.2 vorbis=0.7.1 mad=0.4.5 dynlink=[distributed with Ocaml] >> lame=0.3.3 alsa=0.2.3 samplerate=0.1.4 taglib=0.3.3 camomile=1.0.1 >> 2018/09/23 20:21:04 [dynamic.loader:3] Could not find dynamic module for >> fdkaac encoder. >> 2018/09/23 20:21:04 [decoder:3] Method "MAD" accepted >> "default/single.mp3". >> 2018/09/23 20:21:04 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz >> master. >> 2018/09/23 20:21:04 [frame:3] Frame size must be a multiple of 1764 ticks >> = 1764 audio samples = 1 video samples. >> 2018/09/23 20:21:04 [frame:3] Targetting 'frame.duration': 0.04s = 1764 >> audio samples = 1764 ticks. >> 2018/09/23 20:21:04 [frame:3] Frames last 0.04s = 1764 audio samples = 1 >> video samples = 1764 ticks. >> 2018/09/23 20:21:04 [threads:3] Created thread "generic queue #1". >> 2018/09/23 20:21:04 [threads:3] Created thread "generic queue #2". >> 2018/09/23 20:21:04 [threads:3] Created thread "non-blocking queue #1". >> 2018/09/23 20:21:04 [threads:3] Created thread "non-blocking queue #2". >> 2018/09/23 20:21:04 [nc::3] Loading playlist... >> 2018/09/23 20:21:24 [protocol.process:3] Failed to execute echo >> ./test.mp3 >> "/tmp/liq-process65471a.txt": ("timeout","19.3759880066") >> 2018/09/23 20:21:24 [nc::2] Timeout when resolving playlist URI "nc:"! >> 2018/09/23 20:21:24 [nc::3] Successfully loaded a playlist of 0 tracks. >> 2018/09/23 20:21:24 [threads:3] Created thread "alsa_out(default)" (1 >> total). >> 2018/09/23 20:21:24 [threads:3] Created thread "wallclock_alsa" (2 total). >> 2018/09/23 20:21:24 [clock.wallclock_alsa:3] Streaming loop starts, >> synchronized by active sources. >> 2018/09/23 20:21:24 [alsa_out(default):3] Source failed (no more tracks) >> stopping output... >> 2018/09/23 20:21:24 [alsa_out(default):3] Using ALSA 1.1.3. >> 2018/09/23 20:21:24 [alsa_out(default):2] Falling back on interleaved >> S16LE >> 2018/09/23 20:21:24 [alsa_out(default):3] Samplefreq=44100Hz, >> Bufsize=1048576B, Frame=4B, Periods=1024 >> 2018/09/23 20:21:24 [threads:3] Thread "alsa_out(default)" terminated (1 >> remaining). >> >> >> Le dim. 23 sept. 2018 à 20:13, sébastien dagnicourt < >> sebastien.dagnico...@gmail.com> a écrit : >> >>> Hi, >>> >>> I tested something like your script, and it failed. >>> >>> def nextcloud(~rlog,~maxtime,arg) = >>> [process_uri(extname="txt","echo ./test.mp3 >> $(output)")] >>> end >>> add_protocol("nc",nextcloud,doc="Fetch files from nextcloud", >>> syntax="nc://uri") >>> >>> Salsa = playlist("nc:") >>> output.alsa(fallible=true,Salsa) >>> >>> 2018/09/23 20:08:06 [nc::3] Loading playlist... >>> 2018/09/23 20:08:26 [protocol.process:3] Failed to execute echo >>> ./test.mp3 >> "/tmp/liq-processaa631c.txt": ("timeout","19.7391860485") >>> 2018/09/23 20:08:26 [nc::2] Failed when resolving playlist URI "nc:"! >>> 2018/09/23 20:08:26 [nc::3] Successfully loaded a playlist of 0 tracks. >>> >>> If I test with a static list like this one '/tmp/liq-processaa631c.txt' >>> it works so I assume that the "echo" command is well executed and that the >>> result file is good. >>> >>> I check if I can upgrade to 1.3.4 >>> >>> >>> >>> Le dim. 23 sept. 2018 à 18:27, Romain Beauxis >>> a écrit : >>> Hi, Le sam. 22 sept. 2018 à 13:10, sébastien dagnicourt < sebastien.dagnico...@gmail.com> a écrit : > > Hi, > > So new tests: > I create a local "radio.txt" file. > I put in in the playlist function, tracks were discovered and played. > > So, I created a simple bash file that do a "cat radio.txt >> tmp_liquidsoap_file" > Same issue, liquidsoap won't take the file. > As you suggested I put a debug echo before the exit 0, the echo is ok. The content of the tmp file is ok. > Can't do more simple than that ... That's a good start! This works for me with 1.3.4: def test(~rlog,~maxtime,arg) = [process_uri(extname="txt","echo /tmp/bla.wav >> $(output)")] end add_protocol("te
Re: [Savonet-users] add_protocol issue
Tested on another bionic / 1.3.4 installation: Warning: unused variable night at line 19, character 9. Warning: unused variable day at line 18, character 9. 2018/09/24 18:08:22 >>> LOG START 2018/09/24 18:08:22 [main:3] Liquidsoap 1.3.4 2018/09/24 18:08:22 [main:3] Using: bytes=[distributed with OCaml 4.02 or above] pcre=7.3.4 dtools=0.4.1 duppy=0.7.3 duppy.syntax=0.7.3 cry=0.6.2 mm=0.4.0 ogg=0.5.2 vorbis=0.7.1 mad=0.4.5 dynlink=[distributed with Ocaml] lame=0.3.3 alsa=0.2.3 samplerate=0.1.4 taglib=0.3.3 camomile=1.0.1 2018/09/24 18:08:22 [dynamic.loader:3] Could not find dynamic module for fdkaac encoder. 2018/09/24 18:08:22 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master. 2018/09/24 18:08:22 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples. 2018/09/24 18:08:22 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks. 2018/09/24 18:08:22 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks. 2018/09/24 18:08:22 [video.converter:4] Couldn't find preferred video converter: gavl. 2018/09/24 18:08:22 [audio.converter:4] Using preferred samplerate converter: libsamplerate. 2018/09/24 18:08:22 [threads:3] Created thread "generic queue #1". 2018/09/24 18:08:22 [threads:3] Created thread "generic queue #2". 2018/09/24 18:08:22 [threads:3] Created thread "non-blocking queue #1". 2018/09/24 18:08:22 [threads:3] Created thread "non-blocking queue #2". 2018/09/24 18:08:22 [clock:4] Currently 1 clocks allocated. 2018/09/24 18:08:22 [clock.wallclock_alsa:4] Starting 1 sources... 2018/09/24 18:08:22 [source:4] Source output.alsa_6073 gets up. 2018/09/24 18:08:22 [source:4] Source playlist_6069 gets up. 2018/09/24 18:08:22 [test::3] Loading playlist... 2018/09/24 18:08:22 [protocol.process:4] Processing txt,echo ./test.mp3 >> $(output) 2018/09/24 18:08:22 [protocol.process:4] Executing echo ./test.mp3 >> "/tmp/liq-processf0f1bc.txt" 2018/09/24 18:08:22 [lang.run_process:4] Starting process 2018/09/24 18:08:22 [lang.run_process:4] Closing process's stdin Segmentation fault (core dumped) Le dim. 23 sept. 2018 à 20:27, Romain Beauxis a écrit : > That's strange.. > > Can you get a request.trace through telnet ? > > Also, what OS/OCaml version are you using? > > Le dim. 23 sept. 2018 à 13:23, sébastien dagnicourt < > sebastien.dagnico...@gmail.com> a écrit : > >> Same with 1.3.4 :( >> >> Issue is somewhere else ... >> >> 2018/09/23 20:21:04 >>> LOG START >> 2018/09/23 20:21:04 [main:3] Liquidsoap 1.3.4 >> 2018/09/23 20:21:04 [main:3] Using: bytes=[distributed with OCaml 4.02 or >> above] pcre=7.3.4 dtools=0.4.0 duppy=0.7.1 duppy.syntax=0.7.1 cry=0.6.2 >> mm=0.4.0 ogg=0.5.2 vorbis=0.7.1 mad=0.4.5 dynlink=[distributed with Ocaml] >> lame=0.3.3 alsa=0.2.3 samplerate=0.1.4 taglib=0.3.3 camomile=1.0.1 >> 2018/09/23 20:21:04 [dynamic.loader:3] Could not find dynamic module for >> fdkaac encoder. >> 2018/09/23 20:21:04 [decoder:3] Method "MAD" accepted >> "default/single.mp3". >> 2018/09/23 20:21:04 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz >> master. >> 2018/09/23 20:21:04 [frame:3] Frame size must be a multiple of 1764 ticks >> = 1764 audio samples = 1 video samples. >> 2018/09/23 20:21:04 [frame:3] Targetting 'frame.duration': 0.04s = 1764 >> audio samples = 1764 ticks. >> 2018/09/23 20:21:04 [frame:3] Frames last 0.04s = 1764 audio samples = 1 >> video samples = 1764 ticks. >> 2018/09/23 20:21:04 [threads:3] Created thread "generic queue #1". >> 2018/09/23 20:21:04 [threads:3] Created thread "generic queue #2". >> 2018/09/23 20:21:04 [threads:3] Created thread "non-blocking queue #1". >> 2018/09/23 20:21:04 [threads:3] Created thread "non-blocking queue #2". >> 2018/09/23 20:21:04 [nc::3] Loading playlist... >> 2018/09/23 20:21:24 [protocol.process:3] Failed to execute echo >> ./test.mp3 >> "/tmp/liq-process65471a.txt": ("timeout","19.3759880066") >> 2018/09/23 20:21:24 [nc::2] Timeout when resolving playlist URI "nc:"! >> 2018/09/23 20:21:24 [nc::3] Successfully loaded a playlist of 0 tracks. >> 2018/09/23 20:21:24 [threads:3] Created thread "alsa_out(default)" (1 >> total). >> 2018/09/23 20:21:24 [threads:3] Created thread "wallclock_alsa" (2 total). >> 2018/09/23 20:21:24 [clock.wallclock_alsa:3] Streaming loop starts, >> synchronized by active sources. >> 2018/09/23 20:21:24 [alsa_out(default):3] Source failed (no more tracks) >> stopping output... >> 2018/09/23 20:21:24 [alsa_out(default):3] Using ALSA 1.1.3. >> 2018/09/23 20:21:24 [alsa_out(default):2] Falling back on interleaved >> S16LE >> 2018/09/23 20:21:24 [alsa_out(default):3] Samplefreq=44100Hz, >> Bufsize=1048576B, Frame=4B, Periods=1024 >> 2018/09/23 20:21:24 [threads:3] Thread "alsa_out(default)" terminated (1 >> remaining). >> >> >> Le dim. 23 sept. 2018 à 20:13, sébastien dagnicourt < >> sebastien.dagnico...@gmail.com> a écrit : >> >>> Hi, >>> >>> I tested something like your script, and it failed. >>> >>> def nextcloud(~rlog,~maxtime,arg) = >>>
[Savonet-users] [savonet/liquidsoap] "Failed to prepare track: request not ready" when using annotate. (#636)
I'm trying to create a video with a slideshow (sort of). i'm tried to imitate the slideshow script from [here](https://www.liquidsoap.info/doc-dev/on2_part3.html). ``` audio = playlist("some/folder/") # .mp3 files video = playlist.safe(prefix="annotate:duration=3:", "images.txt") # .jpeg/.jpg files source = mux_video(video=video, audio) output.youtube.live(key="hackme", fallible=true, source) ``` i stripped away some fancypants stuff for better readability - if noone can reproduce this, i 'll put it here, too. whenever i try to use `prefix=`, the output is spammed with ``` [images(dot)txt:1] Failed to prepare track: request not ready. ``` i checked my syntax at least a dozen times. when i remove ´prefix`, everything is back to normal. i'm running the almost latest master (b44f282c4d8bc2e5cb6a514b226aa352e4db9bb4). I also found [this E-Mail string](https://sourceforge.net/p/savonet/mailman/message/35600388/), but apparently that was left unresolved. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/savonet/liquidsoap/issues/636___ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users
Re: [Savonet-users] [savonet/liquidsoap] "Failed to prepare track: request not ready" when using annotate. (#636)
You need to use quotes: ``` video = playlist.safe(prefix="annotate:duration=\"3\":", "images.txt") ``` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/savonet/liquidsoap/issues/636#issuecomment-424057546___ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users
Re: [Savonet-users] [savonet/liquidsoap] "Failed to prepare track: request not ready" when using annotate. (#636)
Closed #636. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/savonet/liquidsoap/issues/636#event-1863724891___ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users
Re: [Savonet-users] [savonet/liquidsoap] "Failed to prepare track: request not ready" when using annotate. (#636)
pretty sure i tried that... i'm on mobile atm, but i'll check tomorrow, thank you. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/savonet/liquidsoap/issues/636#issuecomment-424120145___ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users