Segmentation Fault

Questions or tips about installing Openshot from distribution packages, source code or building packages.

Moderators: Andy, Cenwen, beats

Segmentation Fault

Postby ScottL » Tue Jan 26, 2010 12:44 am

Is there anyway to troubleshoot this:

Code: Select all
scott@desktop:~$ openshot
Added /usr/share/openshot to system path
--------------------------------
   OpenShot (version 1.0.0)
--------------------------------
/usr/share/openshot/windows/SimpleGladeApp.py:340: GtkWarning: gtk_toolbar_set_icon_size: assertion `icon_size != GTK_ICON_SIZE_INVALID' failed
  return gtk.glade.XML(self.glade_path, root, domain)
A new frmMain has been created
Segmentation fault


I've tried installing with the wizard (seemed to work, except the program would freeze after 5 seconds), the PPA (same error as above), and the deb file (same error as above).

Thanks
ScottL
New member
 
Posts: 2
Joined: Tue Jan 26, 2010 12:42 am

Re: Segmentation Fault

Postby Andy » Tue Jan 26, 2010 11:44 pm

The first thing to try is whether you can play a video file using the MLT player (MLT is the underlying video framework that Openshot uses). You may need to install melt, it should be in the repositories. Then in the terminal type:

melt myfilename

Andy.
User avatar
Andy
Site Admin/Openshot Dev
 
Posts: 874
Joined: Mon Nov 16, 2009 10:51 am
Location: London

Re: Segmentation Fault

Postby ScottL » Wed Feb 03, 2010 10:46 pm

Wasn't installed so I installed it and was able to play an avi file with it and I'm still getting the same error.

Thanks
ScottL
New member
 
Posts: 2
Joined: Tue Jan 26, 2010 12:42 am

Re: Segmentation Fault

Postby Andy » Thu Feb 04, 2010 10:41 am

As you're getting the segmentation fault at startup, it's possible this is happening when Openshot is starting up MLT.

There could be some conflicts due to the diffrent installation methods. The first thing to try would be to remove both the PPA install & .deb install (if you haven't already), and then check if there are any MLT files hanging around. To do that, run this in the terminal:

Code: Select all
ls /usr/lib/*libmlt*


Or alternatively, unless you know how to get a stack trace with gdb you could use that, but I'm not sure how you go about doing that...
User avatar
Andy
Site Admin/Openshot Dev
 
Posts: 874
Joined: Mon Nov 16, 2009 10:51 am
Location: London

Re: Segmentation Fault

Postby Cenwen » Thu Feb 04, 2010 5:32 pm

Hi
Andy for using gdb, you must have installed gdb by this command :
Code: Select all
sudo apt-get install python2.6-dbg

Me he was installed but i have a lot of things installed, so first check if it's the case.
For using gdb, i have done some tests and it's very interresting but i don't know if we could understand the results. On another side, it's the best mean to debug from Python the segfaults, the hung processes and the out of control daemon processes. :D
So after you must do :
Before using Openshot, you must run gdb
Code: Select all
gdb python


After run Openshot
Code: Select all
run openshot.py


After, getting a stack trace in the (gdb) prompt, run the command following :
Code: Select all
(gdb) bt


And that's all. :lol:

And for quit the programm : ctrl+D
Le jour où j'ai découvert le libre, j'ai su que je ne reviendrai jamais en arrière
Mon blog sur le multimédia, la photo et Openshot : http://linuxevolution.wordpress.com/
Google+ : https://plus.google.com/u/0/111472725110173916234/posts
User avatar
Cenwen
Moderator
 
Posts: 1609
Joined: Wed Nov 18, 2009 4:07 pm
Location: Clermont-Ferrand-Auvergne-France

Re: Segmentation Fault

Postby Ian Clark » Thu Feb 18, 2010 1:54 am

Thanks to all the devs out there ;) I would really appreciate it if someone could tell me why I'm getting this error:

Code: Select all
user@user-desktop:~$ gdb python
GNU gdb (GDB) 7.0-ubuntu
Reading symbols from /usr/bin/python...Reading symbols from /usr/lib/debug/usr/bin/python2.6...done.
(no debugging symbols found)...done.
(gdb) run openshot.py
Starting program: /usr/bin/python openshot.py
[Thread debugging using libthread_db enabled]
/usr/bin/python: can't open file 'openshot.py': [Errno 2] No such file or directory
Program exited with code 02.
Ian Clark
New member
 
Posts: 4
Joined: Thu Feb 18, 2010 1:36 am

Re: Segmentation Fault

Postby Andy » Thu Feb 18, 2010 3:01 pm

Ian Clark wrote:Thanks to all the devs out there ;) I would really appreciate it if someone could tell me why I'm getting this error:

Code: Select all
user@user-desktop:~$ gdb python
GNU gdb (GDB) 7.0-ubuntu
Reading symbols from /usr/bin/python...Reading symbols from /usr/lib/debug/usr/bin/python2.6...done.
(no debugging symbols found)...done.
(gdb) run openshot.py
Starting program: /usr/bin/python openshot.py
[Thread debugging using libthread_db enabled]
/usr/bin/python: can't open file 'openshot.py': [Errno 2] No such file or directory
Program exited with code 02.


Are you running gdb because you were getting a segmentation fault? How did you install Openshot?
User avatar
Andy
Site Admin/Openshot Dev
 
Posts: 874
Joined: Mon Nov 16, 2009 10:51 am
Location: London

Re: Segmentation Fault

Postby fionn » Sat Feb 20, 2010 3:17 pm

I have the same issue here on ubuntu 9.04 with packages from download page. Install wizard fails for me with a compilation error in ffmpeg (libswscale/swscale.c:144: error: expected ‘,’ or ‘;’ before ‘[’ token).

Using gdb I created the following backtrace:

Code: Select all
[New Thread 0xb6835b90 (LWP 22257)]
/usr/share/openshot/windows/SimpleGladeApp.py:340: GtkWarning: gtk_toolbar_set_icon_size: assertion `icon_size != GTK_ICON_SIZE_INVALID' failed
  return gtk.glade.XML(self.glade_path, root, domain)
A new frmMain has been created
[New Thread 0xb463cb90 (LWP 22772)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb463cb90 (LWP 22772)]
mlt_properties_fetch (this=0x0, name=0xb6c8ab18 "_speed") at mlt_properties.c:348
348   mlt_properties.c: No such file or directory.
   in mlt_properties.c
(gdb) bt
#0  mlt_properties_fetch (this=0x0, name=0xb6c8ab18 "_speed") at mlt_properties.c:348
#1  0xb6c7b117 in mlt_properties_set_double (this=0x0, name=0xb6c8ab18 "_speed", value=0)
    at mlt_properties.c:822
#2  0xb6c7e90d in mlt_producer_set_speed (this=0x0, speed=0) at mlt_producer.c:356
#3  0xb6cbe345 in Mlt::Producer::set_speed () from /usr/local/lib/libmlt++.so.2
#4  0xb6d07590 in _wrap_Producer_set_speed () from /usr/lib/python2.6/dist-packages/_mlt.so
#5  0x0806111a in PyObject_Call ()
#6  0x080db1cd in PyEval_EvalFrameEx ()
#7  0x080e00b8 in PyEval_EvalCodeEx ()
#8  0x080de5f8 in PyEval_EvalFrameEx ()
#9  0x080df587 in PyEval_EvalFrameEx ()
#10 0x080df587 in PyEval_EvalFrameEx ()
#11 0x080e00b8 in PyEval_EvalCodeEx ()
#12 0x081687df in ?? ()
#13 0x0806111a in PyObject_Call ()
#14 0x0806801a in ?? ()
#15 0x0806111a in PyObject_Call ()
#16 0x080d8922 in PyEval_CallObjectWithKeywords ()
#17 0x0810ca58 in ?? ()
#18 0xb7ef94ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#19 0xb7e2f49e in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb)


Hope this can help you isolate the issue.
Last edited by fionn on Mon Feb 22, 2010 4:06 pm, edited 1 time in total.
fionn
New member
 
Posts: 6
Joined: Sat Feb 20, 2010 3:12 pm

Re: Segmentation Fault

Postby Cenwen » Sat Feb 20, 2010 3:37 pm

First i want to say that for the people who used Hardy (8.04) the release 1.1.0. will be the last version to work on because we are remove the libglade dependencie by GTKbuilder. :o
@fion
I'm not specialize but you look to have a problem with MLT (and to be more precise with libmlt++2.so and mlt).
I'll say you the answer of Andy above. :roll: What is the version of Openshot ? Have you check the dependencies like here : http://openshotusers.com/forum/viewtopic.php?f=18&t=10 Yous should look because with the evolution of the project that 's changing.
what do you have when you do this two commands:
Code: Select all
melt myfile.myextensionprefered

Code: Select all
ffplay myfile.myextensionprefered


@Ian clarck
Answer at the Andy question, please. If you want to have some help, could you give us more explanations. If i was you i'll check my dependencies too. :roll:
The two problems are not the same and the solutions are not the same. ;)
Thanks.
Le jour où j'ai découvert le libre, j'ai su que je ne reviendrai jamais en arrière
Mon blog sur le multimédia, la photo et Openshot : http://linuxevolution.wordpress.com/
Google+ : https://plus.google.com/u/0/111472725110173916234/posts
User avatar
Cenwen
Moderator
 
Posts: 1609
Joined: Wed Nov 18, 2009 4:07 pm
Location: Clermont-Ferrand-Auvergne-France

Re: Segmentation Fault

Postby fionn » Mon Feb 22, 2010 4:04 pm

Cenwen wrote:First i want to say that for the people who used Hardy (8.04) the release 1.1.0. will be the last version to work on because we are remove the libglade dependencie by GTKbuilder. :o


Yes of course I typed wrong here. I meant version 9.04 (jaunty)

Cenwen wrote:What is the version of Openshot ? Have you check the dependencies like here : http://openshotusers.com/forum/viewtopic.php?f=18&t=10 Yous should look because with the evolution of the project that 's changing.


I downloaded the debs and all dependencies from the openshot homepage download page.
fionn
New member
 
Posts: 6
Joined: Sat Feb 20, 2010 3:12 pm

Re: Segmentation Fault

Postby Andy » Mon Feb 22, 2010 4:56 pm

fionn wrote:I have the same issue here on ubuntu 9.04 with packages from download page. Install wizard fails for me with a compilation error in ffmpeg (libswscale/swscale.c:144: error: expected ‘,’ or ‘;’ before ‘[’ token).

Using gdb I created the following backtrace:

Code: Select all
[New Thread 0xb6835b90 (LWP 22257)]
/usr/share/openshot/windows/SimpleGladeApp.py:340: GtkWarning: gtk_toolbar_set_icon_size: assertion `icon_size != GTK_ICON_SIZE_INVALID' failed
  return gtk.glade.XML(self.glade_path, root, domain)
A new frmMain has been created
[New Thread 0xb463cb90 (LWP 22772)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb463cb90 (LWP 22772)]
mlt_properties_fetch (this=0x0, name=0xb6c8ab18 "_speed") at mlt_properties.c:348
348   mlt_properties.c: No such file or directory.
   in mlt_properties.c
(gdb) bt
#0  mlt_properties_fetch (this=0x0, name=0xb6c8ab18 "_speed") at mlt_properties.c:348
#1  0xb6c7b117 in mlt_properties_set_double (this=0x0, name=0xb6c8ab18 "_speed", value=0)
    at mlt_properties.c:822
#2  0xb6c7e90d in mlt_producer_set_speed (this=0x0, speed=0) at mlt_producer.c:356
#3  0xb6cbe345 in Mlt::Producer::set_speed () from /usr/local/lib/libmlt++.so.2
#4  0xb6d07590 in _wrap_Producer_set_speed () from /usr/lib/python2.6/dist-packages/_mlt.so
#5  0x0806111a in PyObject_Call ()
#6  0x080db1cd in PyEval_EvalFrameEx ()
#7  0x080e00b8 in PyEval_EvalCodeEx ()
#8  0x080de5f8 in PyEval_EvalFrameEx ()
#9  0x080df587 in PyEval_EvalFrameEx ()
#10 0x080df587 in PyEval_EvalFrameEx ()
#11 0x080e00b8 in PyEval_EvalCodeEx ()
#12 0x081687df in ?? ()
#13 0x0806111a in PyObject_Call ()
#14 0x0806801a in ?? ()
#15 0x0806111a in PyObject_Call ()
#16 0x080d8922 in PyEval_CallObjectWithKeywords ()
#17 0x0810ca58 in ?? ()
#18 0xb7ef94ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#19 0xb7e2f49e in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb)


Hope this can help you isolate the issue.


There is something a bit suspicious in your trace there. Can you run the following command at the terminal?

Code: Select all
ls /usr/lib/*libmlt*


Also, run the following commands at the terminal, one by one:

Code: Select all
python
import sys
sys.version
import mlt
mlt.Profile()
mlt.Factory()
mlt.Factory().init()


Then post back here with the output of each of those commands.

Andy.
User avatar
Andy
Site Admin/Openshot Dev
 
Posts: 874
Joined: Mon Nov 16, 2009 10:51 am
Location: London

Re: Segmentation Fault

Postby fionn » Thu Feb 25, 2010 9:30 pm

Code: Select all
{~] ls /usr/lib/*libmlt*   
/usr/lib/libmlt.so    /usr/lib/libmlt.so.0.5.0     /usr/lib/libmlt.so.2
/usr/lib/libmlt++.so  /usr/lib/libmlt++.so.0.5.0  /usr/lib/libmlt++.so.3


Code: Select all
[~] python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.version
'2.6.2 (release26-maint, Apr 19 2009, 01:56:41) \n[GCC 4.3.3]'
>>> import mlt
>>> mlt.Profile()
<mlt.Profile; proxy of <Swig Object of type 'Mlt::Profile *' at 0x991c220> >
>>> mlt.Factory()
<mlt.Factory; proxy of <Swig Object of type 'Mlt::Factory *' at 0x99663c0> >
>>> mlt.Factory().init()
<mlt.Repository; proxy of <Swig Object of type 'Mlt::Repository *' at 0x995e390> >
>>>
fionn
New member
 
Posts: 6
Joined: Sat Feb 20, 2010 3:12 pm

Re: Segmentation Fault

Postby Andy » Thu Feb 25, 2010 10:49 pm

That looks OK.

I think the problem is in your backtrace there is the line:

Code: Select all
#4  0xb6d07590 in _wrap_Producer_set_speed () from /usr/lib/python2.6/dist-packages/_mlt.so


There shouldn't be any mlt files in the dist-packages folder - remove any that are there. Hopefully that will sort you out.
User avatar
Andy
Site Admin/Openshot Dev
 
Posts: 874
Joined: Mon Nov 16, 2009 10:51 am
Location: London

Re: Segmentation Fault

Postby fionn » Fri Feb 26, 2010 2:44 pm

After removing the file as you told me, I get this:

Code: Select all
[~] openshot
Added /usr/share/openshot to system path
--------------------------------
   OpenShot (version 1.0.0)
--------------------------------
*** ERROR: MLT Python bindings failed to import ***
*** ERROR: MLT Python bindings failed to import ***
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 525, in __bootstrap_inner
    self.run()
  File "/usr/share/openshot/classes/thumbnail.py", line 174, in run
    mlt.Factory().init()
NameError: global name 'mlt' is not defined

-------------------------------------------------------
Error:  OpenShot has not been installed in the Python path.
(Both the site-packages and /usr/share/openshot folders were checked)

Use the following command to install OpenShot:
  $ sudo python setup.py install
fionn
New member
 
Posts: 6
Joined: Sat Feb 20, 2010 3:12 pm

Re: Segmentation Fault

Postby fionn » Fri Feb 26, 2010 2:53 pm

I tried looking for _mlt.so like
Code: Select all
dpkg -S _mlt.so
openshot-mlt: /usr/local/share/openshot/main/install/_mlt.so

Then I symlinked this to /usr/local/python2.6/site-packages and tried a restart.
Openshot segfaults again, the backtraces are practically identical (the path to _mlt.so is now in /usr/local/.../site-packages for obivous reasons)
fionn
New member
 
Posts: 6
Joined: Sat Feb 20, 2010 3:12 pm

Re: Segmentation Fault

Postby Ian Clark » Fri Feb 26, 2010 5:08 pm

Are you running gdb because you were getting a segmentation fault?

I was running gbd to hopefully get a trace on what happens before OpenShot crashes my computer. I couldn't find another way to get a record of what is happening before the crash.

How did you install Openshot?

I installed OpenShot through the PPA on Ubuntu Karmic.

I'd check my dependencies.

I've already done that. First, the PPA should solve that. There was something on the dependencies thread that I didn't have before, but I installed that before running gbd. After opening OpenShot I still get "segmentation fault", then my computer crashes. (bug posted at https://bugs.launchpad.net/openshot/+bug/519726)
Ian Clark
New member
 
Posts: 4
Joined: Thu Feb 18, 2010 1:36 am

Re: Segmentation Fault

Postby Andy » Sun Feb 28, 2010 9:33 pm

fionn wrote:I tried looking for _mlt.so like
Code: Select all
dpkg -S _mlt.so
openshot-mlt: /usr/local/share/openshot/main/install/_mlt.so

Then I symlinked this to /usr/local/python2.6/site-packages and tried a restart.
Openshot segfaults again, the backtraces are practically identical (the path to _mlt.so is now in /usr/local/.../site-packages for obivous reasons)



Hmm. tricky.

You have version 0.5 of MLT installed - I assume you compiled that yourself. Did you have Openshot working with a previous version of MLT?
User avatar
Andy
Site Admin/Openshot Dev
 
Posts: 874
Joined: Mon Nov 16, 2009 10:51 am
Location: London

Re: Segmentation Fault

Postby fionn » Tue Mar 02, 2010 8:47 pm

Andy wrote:Hmm. tricky.

You have version 0.5 of MLT installed - I assume you compiled that yourself. Did you have Openshot working with a previous version of MLT?


I never had openshot working. And I never had mlt before the day I tried to install openshot. First I tried the installation with the wizard but the ffmpeg compilation failed with errors. Then I tried the deb packages. And all I got was a seg fault.

So I presume those 0.5 mlt files come from the compilation wizard, because they dont belong to any deb package. I deleted them all:
Code: Select all
cd /usr/lib
[lib] ls -la *mlt*
-rwxr-xr-x 1 root root 390759 2010-02-20 13:57 libmlt.so
-rwxr-xr-x 1 root root 161845 2010-02-20 13:57 libmlt++.so
-rwxr-xr-x 1 root root 390759 2010-02-20 13:57 libmlt.so.0.5.0
-rwxr-xr-x 1 root root 161845 2010-02-20 13:57 libmlt++.so.0.5.0
-rwxr-xr-x 1 root root 390759 2010-02-20 13:57 libmlt.so.2
-rwxr-xr-x 1 root root 161845 2010-02-20 13:57 libmlt++.so.3
[lib] rm *mlt*
[lib] cd
[~] openshot
Added /usr/share/openshot to system path
--------------------------------
   OpenShot (version 1.0.0)
--------------------------------
/usr/share/openshot/windows/SimpleGladeApp.py:340: GtkWarning: gtk_toolbar_set_icon_size: assertion `icon_size != GTK_ICON_SIZE_INVALID' failed
  return gtk.glade.XML(self.glade_path, root, domain)
A new frmMain has been created
zsh: segmentation fault  openshot


Backtrace again?
fionn
New member
 
Posts: 6
Joined: Sat Feb 20, 2010 3:12 pm

Re: Segmentation Fault

Postby Cenwen » Wed Mar 03, 2010 5:37 pm

Before check if you have all your dependencies (obligatory) if you want have a functional Openshot Installation : http://openshotusers.com/forum/viewtopic.php?f=12&t=33
For MLT i'll be back because i have not the command line on this computer. But if you have done a wizard installation you must all remove and clean by the command purge after the command line or in Synaptic, and destroy the folder too. And i a console done too :
Code: Select all
make clean

It will remove all the residue of the previous compilation. :o
Le jour où j'ai découvert le libre, j'ai su que je ne reviendrai jamais en arrière
Mon blog sur le multimédia, la photo et Openshot : http://linuxevolution.wordpress.com/
Google+ : https://plus.google.com/u/0/111472725110173916234/posts
User avatar
Cenwen
Moderator
 
Posts: 1609
Joined: Wed Nov 18, 2009 4:07 pm
Location: Clermont-Ferrand-Auvergne-France

Re: Segmentation Fault

Postby Andy » Wed Mar 03, 2010 9:35 pm

Yes, I suspect a conflict has been caused somewhere due to the two installation methods. If you are able to purge the install from the wizard (which grabs the latest SVN versions of the dependencies), and then uninstall the installation from the .deb install. Then check there is no trace of MLT anywhere and then try the deb install again.
User avatar
Andy
Site Admin/Openshot Dev
 
Posts: 874
Joined: Mon Nov 16, 2009 10:51 am
Location: London

Next

Return to Installation

Who is online

Users browsing this forum: No registered users

cron