Live preview doesn't work after updating the values many times (timeout reached)

Bug #433860 reported by Masato HASHIMOTO
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Low
jazzynico

Bug Description

In Draw From Triangle extension, while turning on and off some common objects many times with live preview, all common objects disappeared and cannot apply anymore.

Steps to reproduce:
1) Draw a triangle by path tool.
2) Call Draw From Triangle extension.
3) Turn on the live preview mode and turn on and off some common objects many times.

Actual result:
All previewed objects disappeared (If you are (un)lucky) and cannot preview and apply anymore after that.

Inkscape version: trunk-r22256
locale: ja_JP.UTF-8
Build & Platform: Build 2009-09-19 on Arch Linux (x86_64)

Attached file:
SVG file, gdb log and xsession-errors (Note: While taking these logs, this issue occurred **3 times**)

Revision history for this message
Masato HASHIMOTO (hashimo) wrote :
Revision history for this message
Alvin Penner (apenner) wrote :

- cannot duplicate this problem on Windows XP, Inkscape build 0.47pre2.
- I turned on and off the object 'incircle' 10 times will no ill effects.
- just for curiosity, which version of Python?
- mine is Python 2.5.1 and libgdkmm-2.4-1.dll

Revision history for this message
su_v (suv-lp) wrote :

Did you use any functions/custom points from the second tab? As explained on the help page, some may result in 'division-by-zero' - I don't know if Python then is supposed to quit or how this is handled when Python is called by Inkscape…

I did see some related console messages like

  ** (inkscape-bin:24962): CRITICAL **: int Inkscape::Extension::Implementation::Script::execute(const std::list<std::string, std::allocator<std::string> >&, const std::list<std::string, std::allocator<std::string> >&, const Glib::ustring&, Inkscape::Extension::Implementation::Script::file_listener&): assertion `in_command.size() > 0' failed

and at one time several repeated

  Can't Spawn!!! spawn returns: 19

but can't yet reproduce it consistently. No disfunctional preview either…

Revision history for this message
su_v (suv-lp) wrote :

forgot: Inkscape 0.46+devel r22268 custom on OS X 10.5.8, Python 2.6.2

Revision history for this message
Masato HASHIMOTO (hashimo) wrote :

Alvin Penner :
Mine is Python 2.6.2 with some patches (http://repos.archlinux.org/viewvc.cgi/python/repos/extra-x86_64/)

~suv:
> Did you use any functions/custom points from the second tab?

No, I don't touch the tab as default.

tags: added: extensions-plugins
Revision history for this message
jazzynico (jazzynico) wrote :

Not reproduced on Ubuntu 11.04, trunk revision 10610.

Are you still affected with recent inkscape versions?

Revision history for this message
Masato HASHIMOTO (hashimo) wrote :

This still reproduced on trunk-r10610.
I recorded it. Please watch attached movie.
If "affect" means that I'm in trouble by this issue, answer is No :)

Revision history for this message
jazzynico (jazzynico) wrote :

Thanks for the record!
I've tried to check/uncheck everything 5 times with no issue, but I remember having noticed it with other extensions, when changing lots of things in live preview. Maybe not related to this extensions but to the extension system.

Revision history for this message
jazzynico (jazzynico) wrote :

Ah, yes, it was when debugging new extensions. But I was live editing the python script while testing in Inkscape (without restarting it)...

Revision history for this message
jazzynico (jazzynico) wrote :

Tested again with Debian testing Inkscape trunk revision 12010, but I still can't reproduce the bug.

Revision history for this message
jazzynico (jazzynico) wrote :

Just ran into the same issue while testing a new extension. But I still can't find clear steps to reproduce it...

Changed in inkscape:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
jazzynico (jazzynico) wrote :

The bug is due to the extension system that unloads the extension when an expiration timer is reached (after 240 seconds). Applying the extension resets the timer, but using the live preview not.
Of course, closing the extension and reopening it resets the timer as well.

Changed in inkscape:
status: Confirmed → Triaged
jazzynico (jazzynico)
summary: - Draw From Triangle: Common objects disappeared in live preview while
- turning on and off some objects many times
+ Live preview doesn't work after updating the values many times (timeout
+ reached)
Revision history for this message
jazzynico (jazzynico) wrote :

The attached patch should reload the extension is its timer has expired while the live preview is still active.
Tested successfully on Crunchbang Waldorf, Inkscape trunk revision 13425.

Changed in inkscape:
assignee: nobody → jazzynico (jazzynico)
milestone: none → 0.91
status: Triaged → In Progress
Revision history for this message
jazzynico (jazzynico) wrote :

Timout reduced to 10 seconds (instead of 240) to help testing (not to be committed!)

Revision history for this message
jazzynico (jazzynico) wrote :

Fixed revision 13430.

Changed in inkscape:
status: In Progress → Fix Committed
jazzynico (jazzynico)
Changed in inkscape:
status: Fix Committed → 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.