I was trying to build the latest version of dom (version 2.12.4 001a7047cb). And I found that dcpomatic2 coredumped when starting, while the other bin (dcpomatic2_cli, dcpomatic2_server, etc.) worked OK.
Here is what the console show:
user@server:~$ /usr/local/bin/dcpomatic2
02:57:48 PM: Debug: Failed to connect to session manager: SESSION_MANAGER environment variable not defined
Segmentation fault (core dumped)
My dependency list is as following:
--locked_sstream 0.0.5devel
--libcxml 0.15.5
--libopenjp2 2.2.0
--libasdcp-cth 0.1.3
--libdcp 1.5.2
--libsub 1.3.1
--wxWidgets 3.0.2
--ffmpeg-cdist up-to-date with 'origin/carl-dcpomatic'
And what's more, I have previously installed the deb package of dom(version 2.12.4 as the same) and it worked well! So I'm very confused. Do you have any idea to help? Thanks so much!
Building version coredumped when it start
-
- Site Admin
- Posts: 2550
- Joined: Thu Nov 14, 2013 2:53 pm
Re: Building version coredumped when it start
I think that's something do with the XWindows / Wayland session manager. Are you running it from a terminal in a graphical session? What distribution are you using?
-
- Posts: 32
- Joined: Thu Apr 19, 2018 1:58 am
Re: Building version coredumped when it start
Yes, I'm using it from a terminal in a graphical session, Ubuntu 16.04.1 LTS.
And other graphic bin of the building DOM works well, like dcpomatic2_batch and dcpomatic2_kdm.
And other graphic bin of the building DOM works well, like dcpomatic2_batch and dcpomatic2_kdm.
-
- Site Admin
- Posts: 2550
- Joined: Thu Nov 14, 2013 2:53 pm
Re: Building version coredumped when it start
That's very odd. Maybe you could build it again with debugging enabled
./waf configure --enable-debug
./waf clean build
and then run it with gdb?
gdb dcpomatic2
run
./waf configure --enable-debug
./waf clean build
and then run it with gdb?
gdb dcpomatic2
run
-
- Posts: 32
- Joined: Thu Apr 19, 2018 1:58 am
Re: Building version coredumped when it start
OK, I'm trying to work on it and I'll tell you later.
-
- Posts: 32
- Joined: Thu Apr 19, 2018 1:58 am
Re: Building version coredumped when it start
Here is the result:
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from dcpomatic2...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/local/bin/dcpomatic2
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
05:09:22 PM: Debug: Failed to connect to session manager: SESSION_MANAGER environment variable not defined
[New Thread 0x7fffd9c79700 (LWP 4179)]
Thread 1 "dcpomatic2" received signal SIGSEGV, Segmentation fault.
0x00007ffff40757c5 in RtApiPulse::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*) ()
from /usr/lib/x86_64-linux-gnu/librtaudio.so.4v5
(gdb)
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from dcpomatic2...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/local/bin/dcpomatic2
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
05:09:22 PM: Debug: Failed to connect to session manager: SESSION_MANAGER environment variable not defined
[New Thread 0x7fffd9c79700 (LWP 4179)]
Thread 1 "dcpomatic2" received signal SIGSEGV, Segmentation fault.
0x00007ffff40757c5 in RtApiPulse::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*) ()
from /usr/lib/x86_64-linux-gnu/librtaudio.so.4v5
(gdb)
-
- Posts: 32
- Joined: Thu Apr 19, 2018 1:58 am
Re: Building version coredumped when it start
And I found that dcpomatic2_play coredumped as the same. It seems something wrong with the audio stuff?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
05:18:58 PM: Debug: Failed to connect to session manager: SESSION_MANAGER environment variable not defined
[New Thread 0x7fffd9c79700 (LWP 4289)]
Thread 1 "dcpomatic2_play" received signal SIGSEGV, Segmentation fault.
0x00007ffff40757c5 in RtApiPulse::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*) ()
from /usr/lib/x86_64-linux-gnu/librtaudio.so.4v5
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
05:18:58 PM: Debug: Failed to connect to session manager: SESSION_MANAGER environment variable not defined
[New Thread 0x7fffd9c79700 (LWP 4289)]
Thread 1 "dcpomatic2_play" received signal SIGSEGV, Segmentation fault.
0x00007ffff40757c5 in RtApiPulse::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*) ()
from /usr/lib/x86_64-linux-gnu/librtaudio.so.4v5
-
- Site Admin
- Posts: 2550
- Joined: Thu Nov 14, 2013 2:53 pm
Re: Building version coredumped when it start
Ah yes I think there is a bug in the Ubuntu version of rtaudio.
Try building and installing this version:
git://git.carlh.net/git/rtaudio-cdist.git
with
./configure --with-pulse --with-alsa
make
sudo make install
Try building and installing this version:
git://git.carlh.net/git/rtaudio-cdist.git
with
./configure --with-pulse --with-alsa
make
sudo make install
-
- Posts: 32
- Joined: Thu Apr 19, 2018 1:58 am
Re: Building version coredumped when it start
Yes! Both dcpomatic2 and dcpomatic2_play work perfectly!
Thank you so much!
Thank you so much!