Menu

#210 Crash when selecting Preference Window

stable-svn
closed
Salsaman
5
2016-01-13
2015-12-20
No

Hi all,

LiVES-2.4.6 crashes on Fedora 23 -64 bit with this message:

$ lives-exe -debug

LiVES 2.4.6
Copyright 2002-2015 Gabriel Finch (salsaman@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.

No frei0r plugins found; if you have them installed please set the FREI0R_PATH environment variable to point to them.
LiVES info: No usable filters found in plugin /usr/lib64/lives/plugins/effects/realtime/weed/frei0r/frei0r.so

LiVES error: Handle!=statusfile !

Unfortunately LiVES crashed.
Please report this bug at http://sourceforge.net/tracker/?group_id=64341&atid=507139
Thanks. Recovery should be possible if you restart LiVES.


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

#0  0x00007f2c1de7d5db in waitpid () at /lib64/libpthread.so.0
#1  0x00007f2c20b109a3 in g_on_error_stack_trace () at /lib64/libglib-2.0.so.0
#2  0x00005566f6e6731a in catch_sigint ()
#3  0x00007f2c1de7d9f0 in <signal handler called> () at /lib64/libpthread.so.0
#4  0x00007f2c20e5e703 in g_type_check_is_value_type ()
#5  0x00007f2c227b29a5 in _gtk_tree_data_list_check_type ()
#6  0x00007f2c226ad7c1 in gtk_list_store_newv () at /lib64/libgtk-3.so.0
#7  0x00005566f6e60cdf in lives_list_store_new ()
#8  0x00005566f6ee3460 in create_prefs_dialog ()
#9  0x00005566f6eed276 in on_preferences_activate ()
#10 0x00007f2c20e397a5 in g_closure_invoke () at /lib64/libgobject-2.0.so.0
#11 0x00007f2c20e4b851 in signal_emit_unlocked_R ()
#12 0x00007f2c20e54530 in g_signal_emit_valist () at /lib64/libgobject-2.0.so.0
#13 0x00007f2c20e548ff in g_signal_emit () at /lib64/libgobject-2.0.so.0
#14 0x00007f2c227f2ace in gtk_widget_activate () at /lib64/libgtk-3.so.0
#15 0x00007f2c226d0576 in gtk_menu_shell_activate_item ()
#16 0x00007f2c226d08a4 in gtk_menu_shell_button_release ()
#17 0x00007f2c226b303a in _gtk_marshal_BOOLEAN__BOXEDv ()
#18 0x00007f2c20e399d4 in _g_closure_invoke_va () at /lib64/libgobject-2.0.so.0
#19 0x00007f2c20e53dd3 in g_signal_emit_valist () at /lib64/libgobject-2.0.so.0
#20 0x00007f2c20e548ff in g_signal_emit () at /lib64/libgobject-2.0.so.0
#21 0x00007f2c227f063c in gtk_widget_event_internal () at /lib64/libgtk-3.so.0
#22 0x00007f2c226b03ae in propagate_event () at /lib64/libgtk-3.so.0
#23 0x00007f2c226b215c in gtk_main_do_event () at /lib64/libgtk-3.so.0
#24 0x00007f2c2222aa42 in gdk_event_source_dispatch () at /lib64/libgdk-3.so.0
#25 0x00007f2c20b3ae3a in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#26 0x00007f2c20b3b1d0 in g_main_context_iterate.isra ()
#27 0x00007f2c20b3b4f2 in g_main_loop_run () at /lib64/libglib-2.0.so.0
#28 0x00007f2c226b1385 in gtk_main () at /lib64/libgtk-3.so.0
#29 0x00005566f6e6e4e9 in real_main ()
#30 0x00007f2c1dacc580 in __libc_start_main () at /lib64/libc.so.6
#31 0x00005566f6e5d0d9 in _start ()

To reproduce the crash:

$ export LD_LIBRARY_PATH=/usr/lib64/lives
(libweed.. and libOSC.. are installed in a private directory for me because of packaging issues)
$ lives-exe -debug

Try to load a video clip from Youtube, then Tools -->Preference.

Discussion

  • Salsaman

    Salsaman - 2015-12-23
    • assigned_to: Salsaman
    • Priority: 1 --> 5
     
  • Salsaman

    Salsaman - 2015-12-23

    I am unable to reproduce the bug here. Downloading from Youtube works fine, and opening Preferences after also works fine.

     
  • Salsaman

    Salsaman - 2015-12-24

    Something else just occured to me. You may need to edit your ~/.lives file and alter the value of <lib_dir> to point to /usr/lib64</lib_dir>

     
    • Antonio Trande

      Antonio Trande - 2015-12-24

      <lib_dir> already points to /usr/lib64 for me.

       
  • Antonio Trande

    Antonio Trande - 2015-12-28

    src/preference.c patched as asked in RPMFusion ticket:

    Tools-->Preference problem is fixed already with line 1) proposed; patch used:

    --- src/preferences.orig.c  2015-12-19 04:32:19.000000000 +0100
    +++ src/preferences.c   2015-12-28 11:09:06.210008306 +0100
    @@ -1861,7 +1861,7 @@
       lives_tree_view_column_set_sizing(column2, LIVES_TREE_VIEW_COLUMN_FIXED);
       lives_tree_view_column_set_fixed_width(column2, 150.*widget_opts.scale);
    
    -  store = lives_list_store_new(N_COLUMNS, LIVES_COL_TYPE_PIXBUF, LIVES_COL_TYPE_STRING, LIVES_COL_TYPE_UINT);
    +  store = gtk_list_store_new(N_COLUMNS, LIVES_COL_TYPE_PIXBUF, LIVES_COL_TYPE_STRING, LIVES_COL_TYPE_UINT);
    
       lives_tree_view_set_model(LIVES_TREE_VIEW(list), LIVES_TREE_MODEL(store));
    

    Do you also need to know how lines 2) and 3) work?

     
  • Salsaman

    Salsaman - 2015-12-28

    No, but please don't apply that as a fix, I need to make a change in lives_list_store_new(). Please hold.

     
    • Antonio Trande

      Antonio Trande - 2015-12-28

      Okay, no problem.

      Also, I'm still seeing this warning:

      No frei0r plugins found; if you have them installed please set the FREI0R_PATH environment variable to point to them.
      LiVES info: No usable filters found in plugin /usr/lib64/lives/plugins/effects/realtime/weed/frei0r/frei0r.so
      

      although I set FREI0R_PATH to /usr/lib64/lives/plugins/effects/realtime/weed/frei0r.

       
  • Salsaman

    Salsaman - 2015-12-28

    OK, please try this. Restore the line in preferences.c, then edit widget-helper.c.
    Inside the function lives_list_store_new(), you should find two lines like:

      types[i]=va_arg(argList,int);
    

    you only need to change the first one:

      types[i]=va_arg(argList, long unsigned int);
    

    Hopefully this will fix the problem.

     
    • Antonio Trande

      Antonio Trande - 2015-12-28

      Works!

      --- src/widget-helper.orig.c    2015-12-18 14:57:33.000000000 +0100
      +++ src/widget-helper.c 2015-12-28 15:05:11.824025473 +0100
      @@ -5436,7 +5436,7 @@
           GType types[ncols];
           register int i;
           for (i=0; i<ncols; i++) {
      -      types[i]=va_arg(argList,int);
      +      types[i]=va_arg(argList, long unsigned int);
           }
           lstore=gtk_list_store_newv(ncols,types);
         }
      
       
  • Salsaman

    Salsaman - 2015-12-28

    FREI0R_PATH should point to where the frei0r plugins are (not to where the LiVES frei0r wrapper is). So for example /usr/lib64/frei0r-1/

     
  • Salsaman

    Salsaman - 2015-12-28

    @Antonio:

    What you should probably do is create a custom script /usr/bin/lives, eg:

    export FREI0R_PATH=/usr/lib64/frei0r-1
    export LADSPA_PATH=<path_to_ladspa_plugins>
    /usr/bin/lives-exe</path_to_ladspa_plugins>

    Then in the package replace the symlink /usr/bin/lives with your script.

     
    • Antonio Trande

      Antonio Trande - 2015-12-28

      Does exist an env variable for libvisual plugins ?

      LiVES info: No usable filters found in plugin /usr/lib64/lives/plugins/effects/realtime/weed/libvisual/libvis.so

       
  • Salsaman

    Salsaman - 2015-12-28

    Antonio, can you please apply the patch here: https://sourceforge.net/p/lives/code/2353/

    re. libvisual path, I am looking into this.

     
  • Antonio Trande

    Antonio Trande - 2015-12-28

    Do you mean that I should compile revision r2352 by applying this patch?

     
  • Salsaman

    Salsaman - 2015-12-28

    No. You should apply this patch: https://sourceforge.net/p/lives/code/2353/

     
    • Antonio Trande

      Antonio Trande - 2015-12-28

      Patch applied; LiVES compiled fine, Tools->Preference menu does NOT crash.

       
  • Salsaman

    Salsaman - 2015-12-28

    You can apply this second patch: https://sourceforge.net/p/lives/code/2354/tree//trunk/lives-plugins/weed-plugins/libvis.c?diff=505487e4bfc09e4ced4d35a9:2353 which will allow setting of VISUAL_PLUGIN_PATH (a : delimited string of additional directories to check).

     
    • Antonio Trande

      Antonio Trande - 2015-12-29

      I have applied patches from commits 2353,2354; LiVES compiled and executed by

      $ export LD_LIBRARY_PATH=/usr/lib64/lives FREI0R_PATH=/usr/lib64/frei0r-1 LADSPA_PATH=/usr/lib64/ladspa VISUAL_PLUGIN_PATH=/usr/lib64
      $ lives-exe
      

      VISUAL_PLUGIN_PATH points to the libvisual-0.4.so.0.0.0 location.

      Unfortunately, still appears this warning:

      $ lives-exe
      
      LiVES 2.4.6
      Copyright 2002-2015 Gabriel Finch (salsaman@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.
      
      LiVES info: No usable filters found in plugin /usr/lib64/lives/plugins/effects/realtime/weed/libvisual/libvis.so
      
       
  • Salsaman

    Salsaman - 2015-12-29

    VISUAL_PLUGIN_PATH needs to point to the location of the libvisual plugins (not the libvisual library).

     
    • Antonio Trande

      Antonio Trande - 2015-12-29

      libvisual-plugins are not in Fedora by long time but I have discovered this just now. And the projectM visualization plugin for libvisualis not compatible.

      I think that libvisual support must be disabled too.

       
  • Salsaman

    Salsaman - 2015-12-29

    OK.

     
  • Salsaman

    Salsaman - 2016-01-13
    • status: open --> closed
     
  • Salsaman

    Salsaman - 2016-01-13

    Closing, fixed.

     

Log in to post a comment.

MongoDB Logo MongoDB