Bug 253495

Summary: multimedia/lives: Crashes on /proc/stat access
Product: Ports & Packages Reporter: Yuri Victorovich <yuri>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: New ---    
Severity: Affects Only Me CC: salsaman, vvd
Priority: --- Flags: bugzilla: maintainer-feedback? (vvd)
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://github.com/salsaman/LiVES/issues/27

Description Yuri Victorovich freebsd_committer freebsd_triage 2021-02-14 07:32:25 UTC
lives-3.2.0_3 shows the window and then fails either immediately or when some .mp4 video is opened:
> grep: /proc/stat: No such file or directory
> Thread got signal 11
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2021-02-14 07:45:03 UTC
What did you do?

> grep: /proc/stat: No such file or directory
is warning only.
Comment 2 Yuri Victorovich freebsd_committer freebsd_triage 2021-02-14 07:47:11 UTC
(In reply to VVD from comment #1)

> What did you do?

It crashes either without doing anything, after the window opens, or when the .mp4 file is opened.
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2021-02-14 07:50:36 UTC
(In reply to Yuri Victorovich from comment #2)
Just tested: open mp4 file without errors and preview work fine.
Need more info…
Comment 4 Yuri Victorovich freebsd_committer freebsd_triage 2021-02-14 07:58:57 UTC
Stack trace:

$ lives -debug

LiVES 3.2.0
Copyright 2002 - 2020 Gabriel Finch (salsaman+lives@gmail.com) and others.
LiVES comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details.

grep: /proc/stat: No such file or directory

Unfortunately LiVES crashed.
Please report this bug at https://github.com/salsaman/LiVES/issues
Thanks. Recovery should be possible if you restart LiVES.


When reporting crashes, please include details of your operating system, distribution, and the LiVES version (3.2.0)
and any information shown below:

lives-exe (pid:11194): [E]xit, [H]alt, show [S]tack trace or [P]roceed: S
#0  _wait4 () at _wait4.S:3
#1  0x00000008013adf7c in __thr_wait4
#2  0x000000080194df7c in g_on_error_stack_trace ()
#3  0x000000080194dd6e in g_on_error_query ()
#4  0x000000000028ff49 in  ()
#5  0x00000008013b0c60 in handle_signal
#6  0x00000008013b022f in thr_sighandler
#7  0x00007ffffffff003 in <signal handler called> ()
#8  0x0000000856c9512e in dv_decoder_free () at /usr/local/lib/libdv.so.4
#9  0x00000008527f3a76 in clip_data_free ()
#10 0x00000008527f39c1 in get_clip_data ()
#11 0x00000000002b7772 in  ()
#12 0x0000000000364e63 in  ()
#13 0x00000000003d3415 in  ()
#14 0x00000008013f3ced in g_closure_invoke ()
#15 0x0000000801409602 in  () at /usr/local/lib/libgobject-2.0.so.0
#16 0x000000080140a45b in g_signal_emit_valist ()
#17 0x000000080140ab16 in g_signal_emit ()
#18 0x0000000800d381d7 in gtk_widget_activate ()
#19 0x0000000800be7bf8 in gtk_menu_shell_activate_item ()
#20 0x0000000800be95c8 in  () at /usr/local/lib/libgtk-3.so.0
#21 0x0000000800d8a614 in  () at /usr/local/lib/libgtk-3.so.0
#22 0x00000008013f3ed6 in  () at /usr/local/lib/libgobject-2.0.so.0
#23 0x000000080140a13f in g_signal_emit_valist ()
#24 0x000000080140ab16 in g_signal_emit ()
#25 0x0000000800d37a0c in  () at /usr/local/lib/libgtk-3.so.0
#26 0x0000000800bd2fff in gtk_propagate_event ()
#27 0x0000000800bd2b8d in gtk_main_do_event () at /usr/local/lib/libgtk-3.so.0
#28 0x0000000801151a11 in  () at /usr/local/lib/libgdk-3.so.0
#29 0x0000000801187097 in  () at /usr/local/lib/libgdk-3.so.0
#30 0x0000000801982487 in g_main_context_dispatch ()
#31 0x000000080198284a in  () at /usr/local/lib/libglib-2.0.so.0
#32 0x0000000801982b8f in g_main_loop_run () at /usr/local/lib/libglib-2.0.so.0
#33 0x0000000800bd249b in gtk_main () at /usr/local/lib/libgtk-3.so.0
#34 0x00000000002989e8 in  ()
#35 0x000000000029df7b in  ()
#36 0x0000000000272bc0 in  ()
#37 0x00000008004d5000 in  ()
#38 0x0000000000000000 in  ()
lives-exe (pid:11194): [E]xit, [H]alt, show [S]tack trace or [P]roceed:
Comment 5 Yuri Victorovich freebsd_committer freebsd_triage 2021-02-14 08:02:14 UTC
I couldn't build it with WITH_DEBUG=yes because build fails then:
> ld: error: undefined symbol: lives_dialog_new
> >>> referenced by widget-helper.c:9976
> >>>               widget-helper.o:(lives_standard_dialog_new)
Comment 6 Vladimir Druzenko freebsd_committer freebsd_triage 2021-02-14 08:09:29 UTC
(In reply to Yuri Victorovich from comment #5)
Try to rebuild multimedia/libdv.

And show: pkg info lives|grep -E ': o(n|ff)'

P.S. Already found your report to upstream.
Comment 7 Yuri Victorovich freebsd_committer freebsd_triage 2021-02-14 08:18:26 UTC
(In reply to VVD from comment #6)

> Try to rebuild multimedia/libdv.

It still crashes after multimedia/libdv rebuld.


$  pkg info lives|grep -E ': o(n|ff)'
	ALSA           : off
	CDDA2WAV       : on
	DOCS           : on
	DOXYGEN        : off
	DV             : on
	FFTW           : on
	FREI0R         : off
	GCONF          : on
	GHOSTSCRIPT    : on
	IMAGEMAGICK6   : off
	IMAGEMAGICK7   : on
	JACK           : on
	LAME           : on
	LIBEXPLAIN     : off
	LIBVISUAL      : off
	MATROSKA       : on
	MENCODER       : off
	MPG123         : on
	MPG321         : off
	MPLAYER        : on
	MPV            : off
	NLS            : on
	OGG            : on
	OGG123         : on
	OGM            : on
	OPENCV         : on
	OPTIMIZED_CFLAGS: off
	PROJECTM       : off
	PULSEAUDIO     : off
	SCHROEDINGER   : on
	SSWF           : off
	THEORA         : on
	V4L            : off
	WAYLAND        : off
	WMCTRL         : off
	X264           : on
	XDG_SCREENSAVER: on
	XDOTOOL        : on
	XWININFO       : on
	YOUTUBE_DL     : on
	YOUTUBE_DLC    : off
Comment 8 Vladimir Druzenko freebsd_committer freebsd_triage 2021-02-14 08:35:34 UTC
My options are:
        ALSA           : off
        CDDA2WAV       : on
        DOCS           : off
        DOXYGEN        : off
        DV             : on
        FFTW           : on
        FREI0R         : on
        GHOSTSCRIPT    : on
        IMAGEMAGICK    : on
        JACK           : off
        LAME           : on
        LIBEXPLAIN     : on
        LIBVISUAL      : on
        MATROSKA       : on
        MENCODER       : on
        MPG123         : on
        MPG321         : on
        MPLAYER        : on
        MPV            : on
        NLS            : on
        OGG            : on
        OGG123         : on
        OGM            : on
        OPENCV         : on
        OPTIMIZED_CFLAGS: on
        PROJECTM       : off
        PULSEAUDIO     : off
        SCHROEDINGER   : on
        SSWF           : on
        THEORA         : on
        V4L            : on
        WAYLAND        : on
        WMCTRL         : on
        X264           : on
        XDG_SCREENSAVER: on
        XDOTOOL        : on
        XWININFO       : on
        YOUTUBE_DL     : on
        YOUTUBE_DLC    : off
Comment 9 Yuri Victorovich freebsd_committer freebsd_triage 2021-02-14 17:26:53 UTC
(In reply to VVD from comment #8)

I tried with default option choices. You should see if it works for you with default choices.
Comment 10 salsaman 2021-02-18 23:11:55 UTC
This may fix the crash in the decoder plugin:

https://github.com/salsaman/LiVES/commit/9783f1cb744a1fdba8ba414b913f77e2330fb905
Comment 11 salsaman 2021-02-19 00:02:42 UTC
This will fix the /proc/stats issue

https://github.com/salsaman/LiVES/commit/3264ff8fea47c349f53f7d7c3e015629dfa601be
Comment 12 Yuri Victorovich freebsd_committer freebsd_triage 2021-02-19 03:18:52 UTC
(In reply to salsaman from comment #10)

The latest master revision 3.2.0-124-g86cae9fd crashes the same way.

9783f1cb744a1fdba8ba414b913f77e2330fb905 must be included in it.