Thumbnails, clips and tracks gone (but preview is fine)

Bug #1073844 reported by XXLRay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenShot Video Editor
New
Undecided
Unassigned

Bug Description

I use openshot 1.4.3 from the bazaar repository on Ubuntu 11.10.

I accidentally deleted a cut part of a clip on a track. Afterwards I pressed ctrl+z to undo this change. The clip was restored but at the same time all thumbnails from the project file window, all following clips on the same track and all tracks on the bottom of this clip's track were removed.

I thought it was just a display glitch as the preview still worked just fine. Thus I saved the file (as I made many changes from the last save) and opened the project again. Unfortunately the following error message pops up:

There was an error opening this project file.
Please be sure you open the correct *.osp file.

 The command line shows the following text:

/home/myusername/openshot/openshot/classes/sequences.py:781: GtkWarning: gdk_pixbuf_scale_simple: assertion `dest_width > 0' failed
  new_pixbuf = pixbuf.scale_simple(remaining_pixels, height, gtk.gdk.INTERP_NEAREST)
Traceback (most recent call last):
  File "/home/myusername/openshot/openshot/windows/MainGTK.py", line 2508, in on_hsZoom_value_changed
    self.project.Render()
  File "/home/myusername/openshot/openshot/classes/project.py", line 221, in Render
    self.sequences[0].Render()
  File "/home/myusername/openshot/openshot/classes/sequences.py", line 171, in Render
    MyTrack.Render()
  File "/home/myusername/openshot/openshot/classes/track.py", line 94, in Render
    MyClip.Render()
  File "/home/myusername/openshot/openshot/classes/clip.py", line 287, in Render
    self.RenderClip()
  File "/home/myusername/openshot/openshot/classes/clip.py", line 1163, in RenderClip
    pixbuf_width = pixbuf.get_width()
AttributeError: 'NoneType' object has no attribute 'get_width'

Thumbnails, clips and tracks are still missing as described above but the preview works fine (the project file has not been moved to another location). I conclude that the project information is still there but is not displayed. Unfortunately the project is not editable for me that way any more. Please help me to fix this as I already put several hours of work into this video project.

The project file is attached. Please tell me if you need more information.

Revision history for this message
XXLRay (xxlray) wrote :
Revision history for this message
XXLRay (xxlray) wrote :

Here is an attached screenshot where I marked what is missing.

Revision history for this message
XXLRay (xxlray) wrote :

Furthermore I noticed that the red line which indicates the playback position is not displayed either.

Revision history for this message
XXLRay (xxlray) wrote :

When I import one file again all thumbnails suddenly come back. Unfortunately clips and tracks keep being hidden and the thumbnails are missing again after saving and opening the project.

Revision history for this message
XXLRay (xxlray) wrote :

When I try to add a track below the last displayed one only the free space below it grows. I assume it is added but not displayed. This is the message from the command line:

on_mnuAddTrackBelow_activate clicked
project state modified
state saved
Traceback (most recent call last):
  File "/home/hanke/openshot/openshot/windows/MainGTK.py", line 2887, in on_mnuAddTrackBelow_activate
    self.project.Render()
  File "/home/hanke/openshot/openshot/classes/project.py", line 221, in Render
    self.sequences[0].Render()
  File "/home/hanke/openshot/openshot/classes/sequences.py", line 171, in Render
    MyTrack.Render()
  File "/home/hanke/openshot/openshot/classes/track.py", line 94, in Render
    MyClip.Render()
  File "/home/hanke/openshot/openshot/classes/clip.py", line 287, in Render
    self.RenderClip()
  File "/home/hanke/openshot/openshot/classes/clip.py", line 1163, in RenderClip
    pixbuf_width = pixbuf.get_width()
AttributeError: 'NoneType' object has no attribute 'get_width'
on_frmMain_key_press_event

Revision history for this message
XXLRay (xxlray) wrote :

I think I worked around the issue. I re-imported 09102012012_stabilized.mp4 (which is the file where the project got broke) and all thumbnails came back. I guess any other project file would have done it, too. I right-clicked the depending thumbnail and chose "Remove from project". The thumbnail and the clip on the track disappeared and all other clips and tracks cam back. The saved project file (attached) is now properly loadable (although I did not include 09102012012_stabilized.mp4 again yet).

Nevertheless I think it should be a major issue that a project file can break.

Revision history for this message
Andy Finch (fincha) wrote :

This is going to be a tough one to track down. If you create a test project and include your 09102012012_stabilized.mp4 file, does the same thing happen again? If you play that file with the melt command line player, are there any errors in the terminal?

Revision history for this message
XXLRay (xxlray) wrote :

I haven't used melt before. Is the commend just "melt 09102012012_stabilized.mp4"?

Revision history for this message
Andy Finch (fincha) wrote :

Yes, that is the command to use (without the quotation marks).

Revision history for this message
XXLRay (xxlray) wrote :

Here is the output:

$ melt 09102012012_stabilized.mp4
No LADSPA plugins were found!

Check your LADSPA_PATH environment variable.
+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
|1=-10| |2= -5| |3= -2| |4= -1| |5= 0| |6= 1| |7= 2| |8= 5| |9= 10|
+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
+---------------------------------------------------------------------+
| H = back 1 minute, L = forward 1 minute |
| h = previous frame, l = next frame |
| g = start of clip, j = next clip, k = previous clip |
| 0 = restart, q = quit, space = play |
+---------------------------------------------------------------------+
Current Position: 4215

Revision history for this message
Ashton Six (ashtonsix) wrote :

I encountered the same bug after importing a video stabilized with this command:

```
transcode -J stabilize -i art-01.mp4 -y null,null -o dummy
transcode -J transform -i art-01.mp4 -y xvid -o art-01-stable.mp4
```

Removing the clip didn't bring back my tracks but the preview is fine.

Revision history for this message
Ashton Six (ashtonsix) wrote :

tracks came back after removing a collection of 3 recently imported clips

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.