Win32 Crash on help menu (Spawn) Problem

Has anyone had a look at the Win32 spawn problem lately? (https://bugs.launchpad.net/inkscape/+bug/204779)
Or has anyone managed to compile 0.46 branch with the patch suggested by Adib in 187920 (https://bugs.launchpad.net/inkscape/+bug/187290/comments/34)?
Using the March 3 libs has no spawn problem, but means we drop some extra pango/type support. Is that a satisfactory resolution?

Ulf has done some work on Adib's patch and says it's working for him. Thanks!=) It's posted here; https://bugs.launchpad.net/inkscape/+bug/187290/comments/39
It would be great if some of the Windows guys could test this and get it committed to the 046 branch. If not, I might end up committed... %-|
rygle wrote:
Has anyone had a look at the Win32 spawn problem lately? (https://bugs.launchpad.net/inkscape/+bug/204779)
Or has anyone managed to compile 0.46 branch with the patch suggested by Adib in 187920 (https://bugs.launchpad.net/inkscape/+bug/187290/comments/34)?

A patch has been released for the Win 32 spawn bug now - thanks to Ulf Erikson and Albin Sunnanbo. Great work guys!
https://bugs.launchpad.net/inkscape/0.46.x/+bug/204779
Windows version of Inkscape 0.46 is getting close.

great! once the win32 package is out there, ill start hitting the PR to everyone...
cheers,
ryanlerch
On Thu, Mar 27, 2008 at 1:04 AM, rygle <pittos@...1208...> wrote:
A patch has been released for the Win 32 spawn bug now - thanks to Ulf Erikson and Albin Sunnanbo. Great work guys!
https://bugs.launchpad.net/inkscape/0.46.x/+bug/204779
Windows version of Inkscape 0.46 is getting close.
-- View this message in context: http://www.nabble.com/Win32-Crash-on-help-menu-%28Spawn%29-Problem-tp1629668... Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel

Can someone please commit this patch to both the 046 release branch and trunk? This is a major fix that has been tested by a several different people and marked as fixed released.
https://bugs.launchpad.net/inkscape/+bug/204779/comments/17
Any help greatly appreciated!

How come you haven't got commit rights yet?
-----Original Message----- From: inkscape-devel-bounces@lists.sourceforge.net [mailto:inkscape-devel-bounces@lists.sourceforge.net] On Behalf Of rygle Sent: donderdag 27 maart 2008 6:45 To: inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] Win32 Crash on help menu (Spawn) Problem
Can someone please commit this patch to both the 046 release branch and trunk? This is a major fix that has been tested by a several different people and marked as fixed released.
https://bugs.launchpad.net/inkscape/+bug/204779/comments/17
Any help greatly appreciated!
-- View this message in context: http://www.nabble.com/Win32-Crash-on-help-menu-%28Spawn%29-Pro blem-tp16296681p16322510.html Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.n
et/marketplace
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel

J.B.C.Engelen@...1578... schrieb:
How come you haven't got commit rights yet?
+1 for commit rights to rygle. theAdib. commited (modified) patch to trunk I replace _wspawn declaration by #include <process.h> and #include <wchar.h> in the #ifdef WIN32 section Rygle: I have _wspawn functions in wchar.h which I explicitly included in io\sys.cpp HTH, Adib.
-----Original Message----- From: inkscape-devel-bounces@lists.sourceforge.net [mailto:inkscape-devel-bounces@lists.sourceforge.net] On Behalf Of rygle Sent: donderdag 27 maart 2008 6:45 To: inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] Win32 Crash on help menu (Spawn) Problem
Can someone please commit this patch to both the 046 release branch and trunk? This is a major fix that has been tested by a several different people and marked as fixed released.
https://bugs.launchpad.net/inkscape/+bug/204779/comments/17
Any help greatly appreciated!
-- View this message in context: http://www.nabble.com/Win32-Crash-on-help-menu-%28Spawn%29-Pro blem-tp16296681p16322510.html Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.n
et/marketplace
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel

Hi Adib,
What mingw are you using? I am using the one from inkscape.modevia.com For me the build is broken, because I do not have _wspawn functions. I do have _spawn functions in process.h.
Please fix asap!
Johan
-----Original Message----- From: Adib taraben [mailto:theadib@...1439...] Sent: donderdag 27 maart 2008 22:51 To: Engelen, J.B.C. (Johan) Cc: pittos@...1208...; inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] Win32 Crash on help menu (Spawn) Problem
J.B.C.Engelen@...1578... schrieb:
How come you haven't got commit rights yet?
+1 for commit rights to rygle. theAdib. commited (modified) patch to trunk I replace _wspawn declaration by #include <process.h> and #include <wchar.h> in the #ifdef WIN32 section Rygle: I have _wspawn functions in wchar.h which I explicitly included in io\sys.cpp HTH, Adib.
-----Original Message----- From: inkscape-devel-bounces@lists.sourceforge.net [mailto:inkscape-devel-bounces@lists.sourceforge.net] On Behalf Of rygle Sent: donderdag 27 maart 2008 6:45 To: inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] Win32 Crash on help menu
(Spawn) Problem
Can someone please commit this patch to both the 046 release branch and trunk? This is a major fix that has been tested by a several different people and marked as fixed released.
https://bugs.launchpad.net/inkscape/+bug/204779/comments/17
Any help greatly appreciated!
-- View this message in context: http://www.nabble.com/Win32-Crash-on-help-menu-%28Spawn%29-Pro blem-tp16296681p16322510.html Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.n
et/marketplace
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.n
et/marketplace
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel

Hello Johan,
I am used to update the package from MinGW32 webpage. The current package mingw-runtime-3.14.tar comes with those prototypes.
However I will put the prototypes into the io/sys.hpp soon.
Adib. ---
J.B.C.Engelen@...1578... schrieb:
Hi Adib,
What mingw are you using? I am using the one from inkscape.modevia.com For me the build is broken, because I do not have _wspawn functions. I do have _spawn functions in process.h.
Please fix asap!
Johan
-----Original Message----- From: Adib taraben [mailto:theadib@...1439...] Sent: donderdag 27 maart 2008 22:51 To: Engelen, J.B.C. (Johan) Cc: pittos@...1208...; inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] Win32 Crash on help menu (Spawn) Problem
J.B.C.Engelen@...1578... schrieb:
How come you haven't got commit rights yet?
+1 for commit rights to rygle. theAdib. commited (modified) patch to trunk I replace _wspawn declaration by #include <process.h> and #include <wchar.h> in the #ifdef WIN32 section Rygle: I have _wspawn functions in wchar.h which I explicitly included in io\sys.cpp HTH, Adib.
-----Original Message----- From: inkscape-devel-bounces@lists.sourceforge.net [mailto:inkscape-devel-bounces@lists.sourceforge.net] On Behalf Of rygle Sent: donderdag 27 maart 2008 6:45 To: inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] Win32 Crash on help menu
(Spawn) Problem
Can someone please commit this patch to both the 046 release branch and trunk? This is a major fix that has been tested by a several different people and marked as fixed released.
https://bugs.launchpad.net/inkscape/+bug/204779/comments/17
Any help greatly appreciated!
-- View this message in context: http://www.nabble.com/Win32-Crash-on-help-menu-%28Spawn%29-Pro blem-tp16296681p16322510.html Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.n
et/marketplace
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.n
et/marketplace
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel

Well, most of the patch seems to be there, although a little different to that on the bug report. But as a non-programmer I am mystified where the process.h and wchar.h files or procedures actually are.
I 'm pretty sure they're not files in the source tree or the devlibs. A search in both folders reveals nothing. Are the prototypes still to be put in io/sys.cpp? Is that what this is; http://inkscape.svn.sourceforge.net/viewvc/inkscape/inkscape/trunk/src/io/sy...
Rygle
Adib taraben-4 wrote:
Hello Johan,
I am used to update the package from MinGW32 webpage. The current package mingw-runtime-3.14.tar comes with those prototypes.
However I will put the prototypes into the io/sys.hpp soon.
Adib.
J.B.C.Engelen@...1578... schrieb:
Hi Adib,
What mingw are you using? I am using the one from inkscape.modevia.com For me the build is broken, because I do not have _wspawn functions. I do have _spawn functions in process.h.
Please fix asap!
Johan

Ah, found them in the mingw\include folder.
So is this patch all sorted? Jospeh? Adib? Just wanting to strike them all off. I have 9 and this is the 6th, so three more to check.

There seems to be a packaging problem. On Vista SP1 Inkscape says it's missing libpng12.dll when starting. Then Inkscape terminates. In %PROGRAMFILES%\Inkscappe there is no libpng12.dll, but a libpng13.dll In my C:\devlib there is the libpng13.dll I guess the compilation is done linking to the wrong dll.
// Albin
Rygle skrev:
G'day!
Thanks to a great effort from many, it seems most of the Win32 bugs are ironed out, but we need to test some last minute fixes, so we've put up a Win32 only 0.46pre4 on Sourceforge here - http://sourceforge.net/project/showfiles.php?group_id=93438. This will disappear once the proper release comes, next week we hope.
Please download it and test if you have access to Windows. We are particularly interested in crashes or other show stopper bugs that /need/ to be fixed before release. Please report any issues not mentioned below either to this email list, or on the bug tracker - https://bugs.launchpad.net/inkscape/
*Big ticket Fixes: (please test!)*
* Printing - New GTK common print dialogue and new Cairo back end had crashes, white blocks over images, and small and/or low resolution prints. Fixed. * Python extensions/effects/help menu items - Spawning processes caused a crash. Python environment settings and temp files problematic. Fixed. * Running Inkscape in a directory with a space in the name stopped extensions with an error. Fixed.
*Some known bugs:*
/A few printing bugs that probably won't get fixed before initial 0.46 release:/
* Blurs are sometimes misaligned. Workaround - print to bitmap (Print -> Rendering -> Bitmap). * Masks sometimes don't work/object vanishes. Workaround is the same.
/Others that may or may not get fixed:/
* Command window still pops up briefly when running extensions. Hmm...
*Building For Yourself:* If you're a Windows user, but haven't had a go at building, why not give it a try? The wiki notes on compiling make things easier - http://wiki.inkscape.org/wiki/index.php/Win32Port. We'd love some more apprentice windows developers or testers, so have a go and ask questions on the dev list, or IRC (irc.freenode.net - #inkscape). Look here for other platforms - http://wiki.inkscape.org/wiki/index.php/CompilingInkscape.
* The 0.46 branch source has all the latest high priority win32 patches in packaging\win32\patches (just to be safe) * The trunk is fully up to date with all high priority 0.46 win32 patches committed * For the next day or two, you will need to use patched Cairo dll's to stop a crash and low print resolution fallback print with blurs and gradients. Adrian has posted 2 separate dll's (libcairo-2.dll and libpixman-1.dll used in this build) here - http://annarchy.freedesktop.org/~ajohnson/cairo-2008-03-26/ <http://annarchy.freedesktop.org/%7Eajohnson/cairo-2008-03-26/>. These 2 separate dll's are equivalent to the single libcairo-2.dll from the regular devlibs. That means you need to either edit build.xml and put the patched libs in the c:\devlibs folder, or drop the two files in the Inkscape folder after building against March 13 libs. * Ishmal is going to do a new devlib bundle in the next day or two that will include a patched single libcairo-2.dll. Check here (http://inkscape.modevia.com/win32libs/?C=M;O=D) for a /devlibs-2.1.2-{date} /package with a date after March 13, 2008.
Cheers,
Rygle.
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel

On Fri, Mar 28, 2008 at 1:15 PM, Albin Sunnanbo <albin@...1900...> wrote:
There seems to be a packaging problem. On Vista SP1 Inkscape says it's missing libpng12.dll when starting. Then Inkscape terminates.
I have the same problem on win xp

Hi again If I make a copy of libpng13.dll and call it libpng12.dll everything starts upp OK. I have roughly tested most of the last minute windows bugs I know of and found nothing further to complain about.
// Albin
Albin Sunnanbo skrev:
There seems to be a packaging problem. On Vista SP1 Inkscape says it's missing libpng12.dll when starting. Then Inkscape terminates. In %PROGRAMFILES%\Inkscappe there is no libpng12.dll, but a libpng13.dll In my C:\devlib there is the libpng13.dll I guess the compilation is done linking to the wrong dll.
// Albin

Hello,
2008/3/28, Rygle <pittos@...1208...>:
Thanks to a great effort from many, it seems most of the Win32 bugs are ironed out, but we need to test some last minute fixes, so we've put up a Win32 only 0.46pre4 on Sourceforge here - http://sourceforge.net/project/showfiles.php?group_id=93438. This will disappear once the proper release comes, next week we hope.
I have a performance problem with blurred objects in 0.46pre4: Open the attached file, select the right parallelogram in the background, open the "Fill and strokes" dialog and move the "Blur" slider. Inkscape
* takes a long time to repaint the painting (several seconds) and
* is unresponsive while doing so.
0.45.1 was slow with that, too, though not that much. This might be related to https://bugs.launchpad.net/inkscape/+bug/202704 and might not be windows specific, but it's the only issue with pre4 (Printing was not tested).
[Sorry if this mail arrived twice]
eph

On Fri, Mar 28, 2008 at 3:43 PM, Ephrim Khong <dr.khong@...1439...> wrote:
0.45.1 was slow with that, too, though not that much. This might be related to https://bugs.launchpad.net/inkscape/+bug/202704 and might not be windows specific, but it's the only issue with pre4 (Printing was not tested).
I'm afraid it's not fixable quickly enough. I have added this item to the Known Issues in release notes:
* Blur and other filters are very slow when applied to an object with transform= attribute with rotation or skew. To avoid this slowdown, either do not rotate/skew objects you use with filters, or apply filters only to paths (but not shapes to text) because paths, by default, get no transform= attribute when you rotate or skew them.

The libpng thing has me stumped, as I just ran the packaging script as per the wiki; http://wiki.inkscape.org/wiki/index.php/Win32Port#Create_the_Setup_package_f...
I then did a full install using the NSIS installer, and had no complaints about libpng12.dll being missing (. So the solution for now is to rename libpng13.dll to libpng12.dll? Any thoughts on what's going on there?
Adib suggested on IRC that it's finding it in the path somwhere else. Perhaps Gimp?? My Gimp has both versions, but if I rename libpng12.dll, Inkscape still starts. Perhaps it's somewhere else. Adib suggested http://www.dependencywalker.com/, so I'll check this out later.
About the blur thing, should we add that to the known issues on the wiki? I've updated the bug report; https://bugs.launchpad.net/inkscape/+bug/202704 It's not really fixable for 0.46.0, as we need to keep in step with the Linux release, but should we milestone this for 0.46.1? In the meantime, does reducing the blur quality in the prefs help?
Thanks. More feedback welcome.
Rygle.

It seems that the patched libcairo-2.dll version might depend on libpng12.dll, but hopefully this will be fixed in a day or two with the new devlibs.
I believe the new devlibs will only change the libcairo-2.dll version, since everything else is working well. Then we shouldn't have this extra dependency.
I guess that's why it's good to have this test version...

Do some of you guys mind downloading and testing with dependency walker from here; http://www.dependencywalker.com/
Run that and then Open the Inkscape executable. Under the view menu, select Full Paths. This will show you where you're getting your libs from.
Also, can I ask whether you used the installer version, or one of the zip/7z versions? I think the installer adds a path entry for the directory. The inkscape executable should dynamically modify paths, but it may not be fixed properly. If you have trouble running extensions, that is a sign your path setting isn't right. If that's the case, are you running as administrator? Don't know about Vista, but on XP this may affect your access to certain path related registry settings.

Just found the bug report on the libpng issue here;
https://bugs.launchpad.net/inkscape/+bug/208433

Hi I ran the .exe installer dependencywalker also tells that LIBPNG12.DLL is missing, and that it is referenced by %programfiles%\inkscape\LIBCAIRO-2.DLL // Albin
rygle skrev:
Do some of you guys mind downloading and testing with dependency walker from here; http://www.dependencywalker.com/
Run that and then Open the Inkscape executable. Under the view menu, select Full Paths. This will show you where you're getting your libs from.
Also, can I ask whether you used the installer version, or one of the zip/7z versions? I think the installer adds a path entry for the directory. The inkscape executable should dynamically modify paths, but it may not be fixed properly. If you have trouble running extensions, that is a sign your path setting isn't right. If that's the case, are you running as administrator? Don't know about Vista, but on XP this may affect your access to certain path related registry settings.

This whole thing's weird. With dependency walker I get just libpng13.dll in the correct directory. And the build on SF is the same build I'm using exactly.
I'm going to upload another version of the files with libpng12.dll in it until we figure this out.
Rygle

bulia byak schrieb:
On Fri, Mar 28, 2008 at 3:43 PM, Ephrim Khong <dr.khong@...1439...> wrote:
0.45.1 was slow with that, too, though not that much. This might be related to https://bugs.launchpad.net/inkscape/+bug/202704 and might not be windows specific, but it's the only issue with pre4 (Printing was not tested).
I'm afraid it's not fixable quickly enough. I have added this item to the Known Issues in release notes:
So why is it not possible (as discussed in the bug tracker, I think) to add "Do not render Gaussian blur" as an option below "Lowest quality (fastest)" in the Filters tab of Inkscape Preferences? It can be removed as soon as rendering is fast enough but for now it gives people a simple way to make working with blurred objects feasible again while at the same time avoiding the necessity to switch to outline mode (so that they can see colors, etc.). It should be a very minor change and easy to code, or am I mistaken?
Max

I made a temporary fix by commenting the bypass glib spawn define.
-----Original Message----- From: Engelen, J.B.C. (Johan) Sent: vrijdag 28 maart 2008 0:00 To: 'Adib taraben' Cc: pittos@...1208...; inkscape-devel@lists.sourceforge.net Subject: RE: [Inkscape-devel] Win32 Crash on help menu (Spawn) Problem
Hi Adib,
What mingw are you using? I am using the one from inkscape.modevia.com For me the build is broken, because I do not have _wspawn functions. I do have _spawn functions in process.h.
Please fix asap!
Johan
-----Original Message----- From: Adib taraben [mailto:theadib@...1439...] Sent: donderdag 27 maart 2008 22:51 To: Engelen, J.B.C. (Johan) Cc: pittos@...1208...; inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] Win32 Crash on help menu
(Spawn) Problem
J.B.C.Engelen@...1578... schrieb:
How come you haven't got commit rights yet?
+1 for commit rights to rygle. theAdib. commited (modified) patch to trunk I replace _wspawn declaration by #include <process.h> and #include <wchar.h> in the #ifdef WIN32 section Rygle: I have _wspawn functions in wchar.h which I explicitly included in io\sys.cpp HTH, Adib.
-----Original Message----- From: inkscape-devel-bounces@lists.sourceforge.net [mailto:inkscape-devel-bounces@lists.sourceforge.net] On
Behalf Of
rygle Sent: donderdag 27 maart 2008 6:45 To: inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] Win32 Crash on help menu
(Spawn) Problem
Can someone please commit this patch to both the 046
release branch
and trunk? This is a major fix that has been tested by a several different people and marked as fixed released.
https://bugs.launchpad.net/inkscape/+bug/204779/comments/17
Any help greatly appreciated!
-- View this message in context: http://www.nabble.com/Win32-Crash-on-help-menu-%28Spawn%29-Pro blem-tp16296681p16322510.html Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just
about anything
Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.n
et/marketplace
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just
about anything
Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.n
et/marketplace
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
participants (9)
-
unknown@example.com
-
Adib taraben
-
Albin Sunnanbo
-
bulia byak
-
Ephrim Khong
-
Maximilian Albert
-
ryan lerch
-
rygle
-
Rygle