Application randomly crashes

Bug #653549 reported by Arkadius
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenShot Video Editor
Fix Released
Undecided
Unassigned

Bug Description

Here is last few lines from terminal where OpenHot was run:

on_tlbSnap_toggled called with self.GtkToggleToolButton
project modified: Klip przeniesiony
state saved
project saved! - zwiazek
on_mnuRemoveClip_activate clicked
project modified: Removed clip
state saved
project saved! - zwiazek
on_tlbPlay_clicked called with self.GtkToolButton
on_frmMain_destroy
Killed

My software:
Linux ubuntu-home 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:26:08 UTC 2010 i686 GNU/Linux

Revision history for this message
Arkadius (arkadius) wrote :

set_view_mode
project modified: Przeskalowany klip
state saved
on_mnuRemoveClip_activate clicked
project modified: Removed clip
state saved
project modified: Usunięty plik
state saved
on_tlbArrow_clicked called with self.GtkToggleToolButton
on_tlbResize_toggled called with self.GtkToggleToolButton
project modified: Klip przeniesiony
state saved
on_tlbImportFiles_clicked called with self.GtkToolButton
project modified: Dodany plik
state saved

GLib-ERROR **: /build/buildd/glib2.0-2.24.1/glib/gmem.c:137: failed to allocate 220000 bytes
aborting...
Aborted

Revision history for this message
Arkadius (arkadius) wrote :
Revision history for this message
Olivier Girard (eolinwen) wrote :

Hi,
what is your version of Openshot ? 1.1.3 or 1.2.2 ?
If it is the first version, check all your dependencies like it is saying here : http://openshotusers.com/forum/viewtopic.php?f=12&t=372
We have also forgotten the frei0r-plugins and it can explain this situation. It is resolved on the last version.
Thanks.

Revision history for this message
Arkadius (arkadius) wrote :

Another time :(

[mp3 @ 0x9c21e90]mdb:23, lastbuf:22 skipping granule 0
on_mnuRemoveClip_activate clicked
project modified: Removed clip
state saved
project modified: Usunięty plik
state saved
on_tlbImportFiles_clicked called with self.GtkToolButton
project modified: Dodany plik
state saved
project modified: Added clip
state saved
on_tlbResize_toggled called with self.GtkToggleToolButton
on_tlbArrow_clicked called with self.GtkToggleToolButton
set_preview_mode
set_view_mode
project modified: Przeskalowany klip
state saved
Segmentation fault

Revision history for this message
Arkadius (arkadius) wrote :

I use version 1.2.2
I had check your link and check my version of melt
MLT melt 0.4.4
Copyright (C) 2002-2009 Ushodaya Enterprises Limited
<http://www.mltframework.org/>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

So I did
sudo apt-get remove openshot
sudo apt-get clean
sudo apt-get purge
sudo apt-get autoremove
sudo apt-get install openshot

AND now I have:
MLT melt 0.5.4
Copyright (C) 2002-2009 Ushodaya Enterprises Limited
<http://www.mltframework.org/>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Maybe this was MY problem :)
I did distro upgrade from Ubuntu 9.10 and my MELT package didn't upgrade for some rison...

I will check now how Open Show work and report here in few days.

Revision history for this message
Arkadius (arkadius) wrote :

After I reinstall openshot I have error message:

begin ---------------------------------------------------------------------------------------------------
arek@ubuntu-home:~/Pulpit$ openshot
--------------------------------
   OpenShot (version 1.2.2)
--------------------------------
Process no longer exists: 13801. Creating new pid lock file.
*** 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 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/pymodules/python2.6/openshot/classes/thumbnail.py", line 170, 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
end ---------------------------------------------------------------------------------------------------

And I found solution here:
https://answers.launchpad.net/openshot/+question/87661

After executing this command:
sudo ln -s $(ls -C /usr/lib/libmlt++.so.* | cut -f 1 -d' ') /usr/lib/libmlt++.so.2

OpenShot started to work.

Revision history for this message
Arkadius (arkadius) wrote :

openshot.debug AFTER reinstall

Revision history for this message
Olivier Girard (eolinwen) wrote :

Perfect, if it is working and thanks for the feedback and to have persevere.

Revision history for this message
Arkadius (arkadius) wrote :

Bug STILL exists

Revision history for this message
Dan Dennedy (dan-dennedy) wrote :

Arkadius, still crashing with the _same_ error? If so, which one?
A single bug report for _any_ crash is useless. To never crash is a goal, of course; not all crashes are the same bug. We need to know the steps to reproduce the crash.

Revision history for this message
Arkadius (arkadius) wrote :

It is look like app is randomly crashing.
I can't find common cause.

I can describe the work.
I imported 1 episode of some serial, about 300MB size
I also imported 20 short WAV files and I cut scenes from AVI and add sound from WAV files.

See JPG attachment

Most common operations are cutting video, resizing and playing preview.
There is a lot of WAV files in the backgroung.

Thats all.

Let's focus on some kind of errors.

I two times crashed Openshot:
I opened project
Clicked Play preview
moved a little WAV file
and clicked play againg which should stop preview
and after this app crashed.

See attachment.

Revision history for this message
Arkadius (arkadius) wrote :

Debug file from running Openshot first time

Revision history for this message
Arkadius (arkadius) wrote :

Debug file from running Openshot second time

Revision history for this message
Arkadius (arkadius) wrote :

View of Project which causes crash

Revision history for this message
Olivier Girard (eolinwen) wrote :

Could you update your version of MLT, she looks to be the 0.5.4, the actual (i.e. 0.5.10) is better and you have here more explanation for his instalaltion.
If the problem is always present, and like you have a segfault error, could you use this method for having more details about her.
http://openshotusers.com/forum/viewtopic.php?f=12&t=180
Thanks.

Revision history for this message
Arkadius (arkadius) wrote :
Download full text (4.9 KiB)

After instruction in the topic you send me:

arek@ubuntu-home:/usr/lib$ gdb python
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 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 "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/python...Reading symbols from /usr/lib/debug/usr/bin/python2.6...done.
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.

So I found openshot.py in
./usr/share/pyshared/openshot/openshot.py

(gdb) /usr/lib/pymodules/python2.6/openshot/openshot.py
Undefined command: "". Try "help".
(gdb) run /usr/share/pyshared/openshot/openshot.py
Starting program: /usr/bin/python /usr/share/pyshared/openshot/openshot.py
[Thread debugging using libthread_db enabled]
Traceback (most recent call last):
  File "/usr/share/pyshared/openshot/openshot.py", line 22, in <module>
    from classes import info
ImportError: No module named classes

Program exited with code 01.
(gdb)

arek@ubuntu-home:/$ ls -l ./usr/share/pyshared/openshot/openshot.py
-rw-r--r-- 1 root root 2530 2010-09-19 21:59 ./usr/share/pyshared/openshot/openshot.py
arek@ubuntu-home:/$ ls -l ./usr/lib/pymodules/python2.6/openshot/openshot.py
lrwxrwxrwx 1 root root 40 2010-11-06 22:51 ./usr/lib/pymodules/python2.6/openshot/openshot.py -> /usr/share/pyshared/openshot/openshot.py

arek@ubuntu-home:/$ ls -l /usr/lib/*libmlt*
-rw-r--r-- 1 root root 120396 2010-04-22 03:44 /usr/lib/libmlt.so.0.5.4
-rw-r--r-- 1 root root 121140 2010-04-22 03:44 /usr/lib/libmlt++.so.0.5.4
lrwxrwxrwx 1 root root 15 2010-10-02 21:04 /usr/lib/libmlt.so.2 -> libmlt.so.0.5.4
lrwxrwxrwx 1 root root 26 2010-10-02 21:24 /usr/lib/libmlt++.so.2 -> /usr/lib/libmlt++.so.0.5.4
lrwxrwxrwx 1 root root 17 2010-10-02 21:04 /usr/lib/libmlt++.so.3 -> libmlt++.so.0.5.4

arek@ubuntu-home:/$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.version
'2.6.5 (r265:79063, Apr 16 2010, 13:09:56) \n[GCC 4.4.3]'
>>> import mlt
>>> mlt.Profile()
<mlt.Profile; proxy of <Swig Object of type 'Mlt::Profile *' at 0x9169c28> >
>>> mlt.Factory()
<mlt.Factory; proxy of <Swig Object of type 'Mlt::Factory *' at 0x9190da8> >
>>> mlt.Factory().init()
<mlt.Repository; proxy of <Swig Object of type 'Mlt::Repository *' at 0x917bd58> >

arek@ubuntu-home:/$ dpkg -S _mlt.so
python-mlt2: /usr/lib/pyshared/python2.6/_mlt.so
python-mlt2: /usr/lib/python2.5/site-packages/_mlt.so

arek@ubuntu-home:/$ cd /usr/lib
arek@ubuntu-home:/usr/lib$ ls -la *mlt*
-rw-r--r-- 1 root root 120396 2010-04-22 03:44 libmlt.so.0.5.4
-rw-r--r-- 1 root root 121140 2010-04-22 03:44 libmlt++.so.0.5.4
lrwxrwxrwx 1 r...

Read more...

Revision history for this message
Olivier Girard (eolinwen) wrote :

Thanks.
First, do the upgrade of MLT (i.e. 0.5.10) and try again.
Second. How have you install Openshot ? the official repository or with the PPA ?
I asked this because i have a feedback for somebody who was some problems with the offiicial repository and none after remove it and re-install it by with the PPA.
So, it can explain it perhaps.

Revision history for this message
Arkadius (arkadius) wrote :
Download full text (8.5 KiB)

Yes I installed Openshot via the PPA.
See post #5
> So I did
> sudo apt-get remove openshot
> sudo apt-get clean
> sudo apt-get purge
> sudo apt-get autoremove
> sudo apt-get install openshot

And after this I have version 1.2.2

I updated MLT:

------------------------------------------------------------------

arek@ubuntu-home:~/Pulpit$ sudo apt-add-repository ppa:sunab/kdenlive-release

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 6976C1CEB06586061C2C0472B5115B98AA836CA8
gpg: zapytanie o klucz AA836CA8 z hkp serwera keyserver.ubuntu.com
gpg: klucz AA836CA8: zaimportowano klucz publiczny ,,Launchpad PPA for C.A.B/sunab''
gpg: Ogółem przetworzonych kluczy: 1
gpg: dołączono do zbioru: 1 (RSA: 1)

arek@ubuntu-home:~/Pulpit$ sudo apt-get update
[...]
arek@ubuntu-home:~/Pulpit$ sudo apt-get upgrade
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności
Odczyt informacji o stanie... Gotowe
Następujące pakiety zostaną zaktualizowane:
  frei0r-plugins libmlt++3 libmlt-data libmlt2 melt
5 aktualizowanych, 0 nowo instalowanych, 0 usuwanych i 0 nieaktualizowanych.
Konieczne pobranie 3357kB archiwów.
Po tej operacji zostanie dodatkowo użyte 606kB miejsca na dysku.
Kontynuować [T/n]? T
Pob: 1 http://ppa.launchpad.net/sunab/kdenlive-release/ubuntu/ lucid/main frei0r-plugins 1.2-0ubuntu0~sunab~lucid1 [400kB]
Pob: 2 http://ppa.launchpad.net/sunab/kdenlive-release/ubuntu/ lucid/main libmlt2 0.5.10-0ubuntu0~sunab~lucid1 [470kB]
Pob: 3 http://ppa.launchpad.net/sunab/kdenlive-release/ubuntu/ lucid/main libmlt++3 0.5.10-0ubuntu0~sunab~lucid1 [42,6kB]
Pob: 4 http://ppa.launchpad.net/sunab/kdenlive-release/ubuntu/ lucid/main libmlt-data 0.5.10-0ubuntu0~sunab~lucid1 [2396kB]
Pob: 5 http://ppa.launchpad.net/sunab/kdenlive-release/ubuntu/ lucid/main melt 0.5.10-0ubuntu0~sunab~lucid1 [48,7kB]
Pobrano 3357kB w 14s (239kB/s)
(Odczytywanie bazy danych ... 257355 plików i katalogów obecnie zainstalowanych.)
Przygotowanie do zastąpienia frei0r-plugins 1.1.22git20090409+repack-0ubuntu3 (wykorzystując .../frei0r-plugins_1.2-0ubuntu0~sunab~lucid1_i386.deb) ...
Rozpakowanie pakietu zastępującego frei0r-plugins ...
Przygotowanie do zastąpienia libmlt2 0.5.4-1 (wykorzystując .../libmlt2_0.5.10-0ubuntu0~sunab~lucid1_i386.deb) ...
Rozpakowanie pakietu zastępującego libmlt2 ...
Przygotowanie do zastąpienia libmlt++3 0.5.4-1 (wykorzystując .../libmlt++3_0.5.10-0ubuntu0~sunab~lucid1_i386.deb) ...
Rozpakowanie pakietu zastępującego libmlt++3 ...
Przygotowanie do zastąpienia libmlt-data 0.5.4-1 (wykorzystując .../libmlt-data_0.5.10-0ubuntu0~sunab~lucid1_all.deb) ...
Rozpakowanie pakietu zastępującego libmlt-data ...
Przygotowanie do zastąpienia melt 0.5.4-1 (wykorzystując .../melt_0.5.10-0ubuntu0~sunab~lucid1_i386.deb) ...
Rozpakowanie pakietu zas...

Read more...

Revision history for this message
Arkadius (arkadius) wrote :

Bug still exists

I opened project
Clicked Play preview
moved a little WAV file
and clicked play againg which should stop preview
and after this app crashed.

-----------------------------------------------------------
arek@ubuntu-home:~/Pulpit$ openshot
--------------------------------
   OpenShot (version 1.2.2)
--------------------------------
Process no longer exists: 9937. Creating new pid lock file.
state saved
project modified: Opened project
state saved
[mp3 @ 0xb1425de0]mdb:70, lastbuf:0 skipping granule 0
[mp3 @ 0xb311fdf0]mdb:62, lastbuf:0 skipping granule 0
on_tlbPlay_clicked called with self.GtkToolButton
project modified: Klip przeniesiony
state saved
on_tlbPlay_clicked called with self.GtkToolButton
Segmentation fault
------------------------------------------------------------

Revision history for this message
Olivier Girard (eolinwen) wrote :

I have no idea now; I don't understand why he marks you a mp in the output for a wave file.

Andy Finch (fincha)
summary: - Application randomly chashes
+ Application randomly crashes
Revision history for this message
Andy Finch (fincha) wrote :

As this is an old bug report, please can you let us know if this is still a problem using the latest versions of OpenShot & MLT.

Changed in openshot:
status: New → Incomplete
Revision history for this message
Arkadius (arkadius) wrote :

You can close this Bug.
I installed new Ubuntu 12.04.1 x64.

Andy Finch (fincha)
Changed in openshot:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.