BIg slowdown using Tweak tool -- sp-item.cpp
by John Bintz
Hi, all. It looks like a change that occurred in rev. 15821 has caused
some big performance issues when using the Tweak tool. In
sp_item_update, this block of code is called with every update:
if (item->display && item->display->arenaitem) {
NRRect item_bbox;
sp_item_invoke_bbox(item, &item_bbox, NR::identity(), TRUE,
SPItem::GEOMETRIC_BBOX);
NR::Maybe<NR::Rect> i_bbox = item_bbox;
nr_arena_item_set_item_bbox(item->display->arenaitem, i_bbox);
}
and this is making the Tweak tool very slow to respond. Is there a
better way of computing the SVG bounding box for the Arena item on an
as-needed basis, rather than with every update? Also, I looked at other
places that used item->display and that seems to be a linked list
instead of just a single item.
Thanks,
John
15 years, 7 months
PDF import extension
by Miklós Erdélyi
Hi,
the cairo-based simple PDF import extension has been in trunk for a
while (well, for a week or so :) ). Now I have committed a preliminary
version of the native libpoppler-based one to trunk (you can activate
it by uncommenting the line Internal::PdfInput::init() in
src/extension/init.cpp).
I did commit this unstable version because I need your help regarding
a strange bug. When a PDF document is opened Inkscape crashes with
segmentation fault, giving the following backtrace:
#0 0xb6ebeb46 in malloc_usable_size () from /lib/tls/i686/cmov/libc.so.6
#1 0xb6ec0ecd in free () from /lib/tls/i686/cmov/libc.so.6
#2 0xb6ec283f in malloc () from /lib/tls/i686/cmov/libc.so.6
#3 0xb70844b7 in operator new () from /usr/lib/libstdc++.so.6
#4 0xb70845ed in operator new[] () from /usr/lib/libstdc++.so.6
#5 0xb71719d2 in PDFDoc::checkFooter (this=0xa6c5700) at PDFDoc.cc:248
#6 0xb7171e90 in PDFDoc::setup (this=0xa6c5700, ownerPassword=0x0,
userPassword=0x0) at PDFDoc.cc:185
#7 0xb71721c5 in PDFDoc (this=0xa6c5700, fileNameA=0xa6c56c8,
ownerPassword=0x0, userPassword=0x0, guiDataA=0x0) at PDFDoc.cc:102
#8 0x08594ec7 in Inkscape::Extension::Internal::PdfInput::open (
this=0x8857030, mod=0x8861350, uri=0xab497e4 "/home/shudo/tiger.pdf")
at extension/internal/pdfinput/pdf-input.cpp:51
Please test whether the same thing happens on your system also (note:
PDF import is not yet available on Windows) and tell us if you have
any ideas regarding the solution to this problem which sets back the
further development of the import extension.
Thank you,
miklos
15 years, 7 months
Re: [Inkscape-devel] [Inkscape-user] contribute to graphics research!
by bulia byak
(forwarding this to devel list as well)
This sounds like a very nice addition. We (developers) actually were
thinking about adding something like that, as an option. Would you
consider adding your patch to the SVN trunk so it becomes part of the
official Inkscape releases? For users, persistent undo is an important
enough feature by itself, with or without helping your graphics
research :) And if you keep working on it to add more features like
selective undo, this is much better to do in the main trunk.
On 10/5/07, Sara Su <sarasu@...1814...> wrote:
> Hello inkscape-users,
>
> I am a graduate student in the Computer Graphics Group at
> MIT, and we are researching ways to visualize the editing
> history of graphical documents. We want to test our
> software prototype (built on Inkscape) on a diverse sample
> of illustrations, and we need your help! Please see our
> webpage for details:
>
> http://csail.mit.edu/~sarasu/history
>
> If you could spare 10 minutes, we would be grateful for your
> help. Let me know if you have any questions or suggestions
> regarding this work. We will keep you posted on cool
> features (e.g. selective undo) that grow out of it.
>
> Thanks in advance!
>
> Sara
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Inkscape-user mailing list
> Inkscape-user(a)lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/inkscape-user
>
--
bulia byak
Inkscape. Draw Freely.
http://www.inkscape.org
15 years, 7 months
Tabbing in Docked Dialogs (0.45+Dev, Sept 6 Release)
by Tony Vigil
Using the tab key while editing parameters inside docked dialogs in the development version doesn't work as expected. Tabbing still cycles the object selection as though the canvas has focus. This can lead to very unwanted results if you enter data, tab to the next parameter, enter more data, then hit return.
Is this tabbing behavior while in the docked dialogs intentional?
- Tony
15 years, 7 months
paypal on main page
by Alexandre Prokoudine
Hi,
An issue was raised in #inkscape today about donations. Some people
would like to donate money to the project, but
1) We have no PayPal link on main page, and SourceForge page is not
obvious enough.
2) Not everyone wnats to register at SF to be able to donate.
What shall we do?
Alexandre
15 years, 7 months
Re: [Inkscape-devel] GUI For Insckape Script Extensions
by Ted Gould
On Fri, 2007-10-05 at 07:41 -0700, Redefined Horizons wrote:
> You wrote: "You should look through the INX files in Inkscape..."
>
> I really did look at some of the INX files. I opened at least 3 or 4
> of them, but couldn't find what I was looking for. I think the dummy
> INX file that you attached will get me going in the correct direction.
I find it useful to grep for things I'm looking for in that directory.
So something like this would give me the list of all INX files that have
enums in them:
grep enum *.inx
> Maybe you could help me with a couple questions in this regard. I was
> trying to add the PyGTK modules to my Inx file. But I wasn't sure if
> they should be labeled as "executable". Is there a more appropriate
> term, like "library", or do all Python modules used in my script need
> to be labeled "executable" in my INX file?
You don't need to specify the modules in your INX file. The dependency
checking that Inkscape has isn't very smart, it is only the basically
looking to see if a file exists in the path or in the extensions
directory. It doesn't know about how to load Python modules or anything
like that.
> Also, what version of the Python interpreter is used by Inkscape? Is
> it the Python interpreter I have installed on my system, or is it an
> embedded interpreter? I need to make sure that my PyGTK and Python
> versions are matching up.
On Linux, Inkscape will use the python interpreter from your system
first. You can overwrite that in your settings if you like. On
Windows, it will use the version of Python that is packaged with
Inkscape, which I believe is 2.5.
> Thanks for all the support guys. This is really great and unexpected!
No problem Scott. In the Inkscape project we believe that success is
determined by the number and quality of contributions. We want everyone
to be able to contribute what they can.
--Ted
15 years, 7 months
nodepath.cpp compile failure with gcc3; which isnan.h?
by John Faith
Hello,
I did 'svn up' to version 16183 and hit trouble in nodepath.cpp when
building with gcc 3.3 under OS X 10.3.:
...
g++ ... nodepath.cpp
...
2geom/linear.h:90: error: `isfinite' undeclared in namespace `std'
I noticed that src/2geom/linear.h includes src/2geom/isnan.h, which is
a bit different from src/isnan.h. The former does not have gcc3/apple
ifdefs.
Was isnan.h copied into 2geom at some point, and if it should be the
same file, why not just let the include path find the one in src/?
By the way, replacing src/2geom/isnan.h with src/isnan.h (which has
the ifdef gcc3 stuff) does not fix this.
Thanks,
John
15 years, 7 months
Little enhancement for font toolbox dropdown
by Daniel Genrich
Heym
some guys on irc forced me to write this on the mailinglist :)
I had to test 200 fonts if they fit for my text.
Everytime I selected some font from the list, the dropdown menu closed.
Quite annoying for me.
This little patch prevents automatic closing, enables browsing via
arrow-up and arrow-down, and closing of the dropdown menu via return/enter.
Already tested by some irc guys :)
you'll find the diff against today's svn here: http://pastebin.ca/725982
It's a 4-liner :)
Greetings and good work,
Daniel
15 years, 7 months
GUI For Insckape Script Extensions
by Redefined Horizons
I noticed the attached slide on Ted's presentation on Inkscape
extensions. In the python example available online I see how to use
the automatic GUI for scripts to collect text or String data. Can
someone point out some examples or documentation that explains how to
set up an automatic GUI for a script that uses enumerations or radio
buttons?
Would it be possible to use PyGTK from within an Inkscape extension script?
Thanks for the help.
Scott Huey
15 years, 7 months