Error when opening existing project

Bug #505288 reported by jorge
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Luciole
Fix Released
Medium
NicoInattendu
0.8
Fix Released
Medium
NicoInattendu
luciole (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Following the next step:
- select "create project", and select an already existing project name.
- luciole click ok on the error window.
-click on "open existing project".

This causes the following error:

---------------------------------------------------------------
$ ./luciole.py
psyco Not found !!
gui_controller : images/luciole.xml
Traceback (most recent call last):
  File "/home/xopxe/sources/luciole/lucioLib/gui/gui_controller.py", line 678, in on_file_open_activate
    self.ctrl_obj.open_project()
  File "/home/xopxe/sources/luciole/lucioLib/luciole_controller.py", line 136, in open_project
    project_path = self.gui.open_project()
  File "/home/xopxe/sources/luciole/lucioLib/gui/gui_controller.py", line 494, in open_project
    filename = GOF.Open_file.open()
  File "/home/xopxe/sources/luciole/lucioLib/gui/open_project.py", line 47, in open
    gtk.STOCK_OPEN,gtk.RESPONSE_OK)
TypeError: an integer is required
---------------------------------------------------------------

The "open" window doesn't open. If i click the "open project" again, it works correctly. The error seems triggered only when following the steps in the order given (ie, after an error creating a project).

Luciole from trunk, Ubuntu Karmic.

Related branches

Changed in luciole:
importance: Undecided → Medium
status: New → Confirmed
assignee: nobody → NicoInattendu (nico-inattendu)
Revision history for this message
NicoInattendu (nico-inattendu) wrote :

In file lucioLib/gui/luciole_export_window.py : The change of directory in filechooser widget wasn't taken into account in the export operation. Code modified to take it to acount.

in file lucioLib/lcl_export/lcl_export_video.py : And code output redirected to logger instead of stdout. Added also error raising

Revision history for this message
NicoInattendu (nico-inattendu) wrote :

Sorry : Comment # 1 is invalid. mismatch with another problem

Revision history for this message
NicoInattendu (nico-inattendu) wrote :

Hum, problem seems harder then I thought :

I have in the same case some times the followng message
TypeError: can't convert return value to desired type
./luciole.py:134: Warning: g_value_get_boolean: assertion `G_VALUE_HOLDS_BOOLEAN (value)' failed
  gtk.main()
./luciole.py:134: Warning: g_value_reset: assertion `G_IS_VALUE (value)' failed
  gtk.main()
./luciole.py:134: Warning: g_value_unset: assertion `G_IS_VALUE (value)' failed
  gtk.main()

It lok likes 2 threads using gtk collapse. In theory in use gtk in the main thread, I go to check if in my code I dont' misccode something and use gtk in a spawned thread .....

Revision history for this message
NicoInattendu (nico-inattendu) wrote :

The problem origin is in the management of the gtk.Assistant . Problem is in page_func function who returns None if we wan't to stay in the same assistant page. this is inccorect as this page_func callback have ro return an int. This is why gtk go in TypeError execpetions on some weird Runtimewaning.

But I think , there are some problems on gtk.assistant to reload the same assistant page. If i reload this page ( after click on 'Next' button) , because for example luciole project data entered by user are invalid, the page is blank and another click on 'Next' Button is needed to display the widgets associated to this page.

To avoid this problem, I coded a workaround : Instead of verifying project data when 'next' button is clicked : I verify data "on the fly" when user enter project name and path. The 'Next' button is active when project data are valid.

The workarouns is available in branch lp:~nico-inattendu/luciole/bug_505288

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package luciole - 0.8.2-0ubuntu1

---------------
luciole (0.8.2-0ubuntu1) lucid; urgency=low

  * New upstream release. Fixes:
    - LP: #498619 Acquisition doesn't work on DVCAM nor WEBCAM
    - LP: #500649 Excessive CPU use while capturing
    - LP: #500158 Impossible to change export path
    - LP: #500652 Weird Mixer behavior
    - LP: #505288 Error when opening existing project
  * Switch to dpkg-source 3.0 (quilt) format
  * debian/README.source: deleted as it's not useful anymore
  * debian/quilt: deleted build dependency on quilt
  * debian/compat: bumped version to 7
  * debian/rules: Converted to debhelper 7 style
  * debian/manpages: created to install luciole.1 manpage
 -- Fabrice Coutadeur <email address hidden> Mon, 08 Feb 2010 20:09:50 +0100

Changed in luciole (Ubuntu):
status: New → 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.