# Building Synfig on Windows (Konstantin's report)

**URL:** https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527
**Category:** Building synfig
**Tags:** false-positive, virustotal
**Created:** [June 22, 2013, 5:50pm UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527 "2013-06-22T17:50:36Z")
**Posts on this page:** 20
**Page:** 3

<div class="post-metadata">

### Author: ![Darkspace\_be](https://forums.synfig.org/user_avatar/forums.synfig.org/darkspace_be/32/71_2.png) [@Darkspace\_be](https://forums.synfig.org/u/Darkspace_be)
#### Post date: [July 25, 2013, 6:37am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/41 "2013-07-25T06:37:40Z")

</div>

> [@Genete](#):
>
> Can you share the file for that bug? I would like to see if I can reproduce it on other platforms or it is just a windows related bug.  
> Thanks!  
> -G

Hi Genete,  
Here is the bugged file.  
Greetz!  
[avatar.sifz](https://forums.synfig.org/uploads/default/original/2X/d/d3c6ebbe8894744640a4dbeecdce578b48a288d8.sifz) (29.5 KB)

---

<div class="post-metadata">

### Author: ![Darkspace\_be](https://forums.synfig.org/user_avatar/forums.synfig.org/darkspace_be/32/71_2.png) [@Darkspace\_be](https://forums.synfig.org/u/Darkspace_be)
#### Post date: [July 25, 2013, 6:55am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/42 "2013-07-25T06:55:08Z")

</div>

> [@d.j.a.y](#):
>
> Dutch language is 38% achieved; synfig-core 84% but synfigstudio (ui), 0% ! you can have a look there : [transifex.com/projects/p/synfig/](https://www.transifex.com/projects/p/synfig/)

Ow… 😮 Forgot all about that. I will see what I can do to help complete it.

Greetz!

---

<div class="post-metadata">

### Author: ![Genete](https://forums.synfig.org/user_avatar/forums.synfig.org/genete/32/8_2.png) [@Genete](https://forums.synfig.org/u/Genete)
#### Post date: [July 25, 2013, 6:58am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/43 "2013-07-25T06:58:32Z")

</div>

Using:  
Development version:  
Revision: 20130620  
Branch: crosscompile-win  
Revision ID: 993d45

Built on Jun 23 2013

Cairo render enabled, single thread disabled (or enabled):  
 ![avatar.jpg](https://forums.synfig.org/uploads/default/original/2X/5/5ce2ea2c88ada3df9fc6b232a9c124db75b0bb50.jpg)

I’ll update with the newest binary to see if it happens.  
-G

---

<div class="post-metadata">

### Author: ![Genete](https://forums.synfig.org/user_avatar/forums.synfig.org/genete/32/8_2.png) [@Genete](https://forums.synfig.org/u/Genete)
#### Post date: [July 25, 2013, 7:13am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/44 "2013-07-25T07:13:55Z")

</div>

Update the binary it happens. The issue will be fixed in the currently on revision Cairo render version (not released yet and in progress). In the previous one (the current) the outline renders using the Cairo API when quality is \>6 by using a constant width. For some reason the code or the API fails and produce loops when it shouldn’t and lately produce the artifacts you’ve discovered.

I introduced that with the hope that Cairo native API for outlines were faster than the outline render we use by creating a polygon of the outline like a shape. I have found that the speed render time is not appreciable and that there is not benefit to use the native Cairo API for outlines so I removed that render of the outlines for quality \>6 using Cairo API by use always the polygon approaching.

Just change the quality to something \<=6 and it would render fine.

In the next Cairo render review (0.64.01) it will be fixed.

-G

---

<div class="post-metadata">

### Author: ![Genete](https://forums.synfig.org/user_avatar/forums.synfig.org/genete/32/8_2.png) [@Genete](https://forums.synfig.org/u/Genete)
#### Post date: [July 25, 2013, 11:06am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/45 "2013-07-25T11:06:14Z")

</div>

With the latest binary (build 20130724) I can always reproduce a hang like this:

1. Open Synfig Studio. Cairo render enabled and Disable single thread.
2. Be sure that Navigator panel is visible
3. Press play in Canvas window -\> Hang.

If Navigator is not present, it plays fine.

Error not reproducible if:  
Software render in canvas (regardless Navigator visibility or render type)  
or  
Cairo render in canvas but Navigator not visible  
or  
Single thread is enabled

Error happens only if:  
Cairo render in canvas and Navigator is visible (regardless its render method) and Single thread disabled.

-G

EDIT: it happens with the previous binary too 20130620 (I think, because I’m not sure if I un-installed the last one correctly…)

---

<div class="post-metadata">

### Author: ![Darkspace\_be](https://forums.synfig.org/user_avatar/forums.synfig.org/darkspace_be/32/71_2.png) [@Darkspace\_be](https://forums.synfig.org/u/Darkspace_be)
#### Post date: [July 25, 2013, 11:33am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/46 "2013-07-25T11:33:31Z")

</div>

> [@Genete](#):
>
> Error happens only if:  
> Cairo render in canvas and Navigator is visible (regardless its render method) and Single thread disabled.

Hi!  
I can confirm that bug using Windows 7. Making the Navigator not visible and zoom or pan using ctrl or shift-mousewheel seems to make the system crash less with Single Thread disabled.  
Setting vector quality to 6 helped with the distorted vector files. Thanks for that tip. Now I can enjoy the speed of Cairo. 😃  
Greetz!

---

<div class="post-metadata">

### Author: ![Darkspace\_be](https://forums.synfig.org/user_avatar/forums.synfig.org/darkspace_be/32/71_2.png) [@Darkspace\_be](https://forums.synfig.org/u/Darkspace_be)
#### Post date: [July 25, 2013, 12:26pm UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/47 "2013-07-25T12:26:33Z")

</div>

Hi!

Conclusions after a day of fiddling with the new windows build.

> [@darkspace65](#):
>
> - Cairo works in the sense that it does not crash, but vector graphics still get distorted.

Cairo works like a charm when setting vector quality to 6 or less. Cairospeed ftw!

> [@darkspace65](#):
>
> - Still having resize bug when enlarging the canvas when Single thread is enabled.

Start program, disable Single Thread, resize window, enable Single Thread. Problem solved

> [@darkspace65](#):
>
> - Still having brutal random scrashes when Single thread is disabled.

Crashes mainly come from open canvas navigator. Hide it and use keys and mouse to zoom and pan if you really want the extra supersonic speed of multiple threads

> [@darkspace65](#):
>
> - Program crashes after closing it down.

Happens randomly and since the current file is saved properly it is not a major issue. I mean you wanted to close down the program anywayz…

> [@darkspace65](#):
>
> - Synfig hangs when using a python script

Removed some leftovers from previous Python 2 installation and both provided scripts work fine now. More then one stickman! Yay!

> [@darkspace65](#):
>
> - Menu items still turn white and nearly invisible when you select them.

Nitpicking and not influencing my workflow.

> [@darkspace65](#):
>
> - I got a partially English/Bad generic Dutch version.

I switched back to the fully English version but will try and spend some time in transifex in the future.

Greetz!

---

<div class="post-metadata">

### Author: ![KonstantinDmitriev](https://forums.synfig.org/user_avatar/forums.synfig.org/konstantindmitriev/32/3_2.png) [@KonstantinDmitriev](https://forums.synfig.org/u/KonstantinDmitriev)
#### Post date: [July 25, 2013, 12:42pm UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/48 "2013-07-25T12:42:51Z")

</div>

Hi, darkhog!

Thank you for reporting and outlining the final conclusions. It’s sad that you still have the resize bug. Does canvas makes flickering when you resize?

> [@darkspace65](#):
>
> - Menu items still turn white and nearly invisible when you select them.

I have no control over the GTK/Windows theme engine. You can try changing your Windows theme settings to fix the issue.

> [@Genete](#):
>
> With the latest binary (build 20130724) I can always reproduce a hang like this:
> 
> 1. Open Synfig Studio. Cairo render enabled and Disable single thread.
> 2. Be sure that Navigator panel is visible
> 3. Press play in Canvas window → Hang.
> 
> If Navigator is not present, it plays fine.

Can you please report this to the bugtracker?

I would like to mention that I do NOT have a goal to resolve all the Windows-related bugs - such ambition would postpone the release of “0.64.0 for windows” to infinity. My goal is to bring the build that is at least not worse than previous 0.63.05. ^\_\_\_^

---

<div class="post-metadata">

### Author: ![Darkspace\_be](https://forums.synfig.org/user_avatar/forums.synfig.org/darkspace_be/32/71_2.png) [@Darkspace\_be](https://forums.synfig.org/u/Darkspace_be)
#### Post date: [July 25, 2013, 1:19pm UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/49 "2013-07-25T13:19:23Z")

</div>

Hi!

> [@Zelgadis](#):
>
> Hi, darkhog!

Russian humor, lol. 😆

> [@Zelgadis](#):
>
> Does canvas makes flickering when you resize?

Yep, it flickers and then it hangs, but not always. I can live with it.

> [@Zelgadis](#):
>
> I have no control over the GTK/Windows theme engine. You can try changing your Windows theme settings to fix the issue.

I made Ms Windows my default in the share folder and the problem is solved. Thanks for the tip.

> [@Zelgadis](#):
>
> My goal is to bring the build that is at least not worse than previous 0.63.05. ^\_\_\_^

With the overal speed gain, the Cairo setup working and the python script expansion, you won’t see me returning to 63.05. 😃

Greetz!

---

<div class="post-metadata">

### Author: ![KonstantinDmitriev](https://forums.synfig.org/user_avatar/forums.synfig.org/konstantindmitriev/32/3_2.png) [@KonstantinDmitriev](https://forums.synfig.org/u/KonstantinDmitriev)
#### Post date: [July 25, 2013, 2:46pm UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/50 "2013-07-25T14:46:39Z")

</div>

> [@darkspace65](#):
>
> Russian humor, lol. 😆

OMG… My deep apologies, that was not intentional. I was thinking about something else, that’s why I confused the username. Sorry. ^\_^"

---

<div class="post-metadata">

### Author: ![Genete](https://forums.synfig.org/user_avatar/forums.synfig.org/genete/32/8_2.png) [@Genete](https://forums.synfig.org/u/Genete)
#### Post date: [July 26, 2013, 5:59am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/51 "2013-07-26T05:59:49Z")

</div>

> [@](#):
>
> Can you please report this to the bugtracker?

[Done](http://www.synfig.org/issues/thebuggenie/synfig/issues/464)!

> [@](#):
>
> I would like to mention that I do NOT have a goal to resolve all the Windows-related bugs - such ambition would postpone the release of “0.64.0 for windows” to infinity. My goal is to bring the build that is at least not worse than previous 0.63.05. ^\_\_\_^

Sure!

-G

---

<div class="post-metadata">

### Author: ![KonstantinDmitriev](https://forums.synfig.org/user_avatar/forums.synfig.org/konstantindmitriev/32/3_2.png) [@KonstantinDmitriev](https://forums.synfig.org/u/KonstantinDmitriev)
#### Post date: [July 26, 2013, 7:09am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/52 "2013-07-26T07:09:12Z")

</div>

> [@Genete](#):
>
> > [@](#):
> >
> > Can you please report this to the bugtracker?
> 
> [Done](http://www.synfig.org/issues/thebuggenie/synfig/issues/464)!

Thank you! 🙂

---

<div class="post-metadata">

### Author: ![John\_Smith](https://forums.synfig.org/user_avatar/forums.synfig.org/john_smith/32/3662_2.png) [@John\_Smith](https://forums.synfig.org/u/John_Smith)
#### Post date: [July 31, 2013, 7:25am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/53 "2013-07-31T07:25:58Z")

</div>

How is it going?

---

<div class="post-metadata">

### Author: ![KonstantinDmitriev](https://forums.synfig.org/user_avatar/forums.synfig.org/konstantindmitriev/32/3_2.png) [@KonstantinDmitriev](https://forums.synfig.org/u/KonstantinDmitriev)
#### Post date: [July 31, 2013, 3:22pm UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/54 "2013-07-31T15:22:26Z")

</div>

Hello, everyone!

Here’s another build of Synfig: [dl.dropboxusercontent.com/u/155 … 130731.exe](https://dl.dropboxusercontent.com/u/15516795/synfigstudio-0.64.0-20130731.exe)

Changes:

- Uninstall is not brutal anymore.
- Allow to customize installation (user can choose if he wants to install optional components like ffmpeg and example files).
- Another attempt to fix resize bug.

Regarding to the last: I have made another attempt to fix resize bug. Please test and report if it’s still there. If the bug isn’t fixed, then I have to dive into advanced debugging.

The problem is that resize bug hangs the system and I cannot switch into IDE to inspect what’s happening (in fact I CAN switch, but, as you know, the resize bug disappears immediately then). So, if my workarounds wouldn’t work, I’m gonna to try the [remote debugging](https://netbeans.org/kb/docs/cnd/remotedev-tutorial.html). In any case that would be an interesting technique to learn…

---

<div class="post-metadata">

### Author: ![Darkspace\_be](https://forums.synfig.org/user_avatar/forums.synfig.org/darkspace_be/32/71_2.png) [@Darkspace\_be](https://forums.synfig.org/u/Darkspace_be)
#### Post date: [July 31, 2013, 6:53pm UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/55 "2013-07-31T18:53:15Z")

</div>

Hi!  
Thank you for your continuous efforts to make the windows build of Synfig as stable as possible. It’s greatly appreciated. I installed the newest build and for the last half hour I did nothing else then resizing the canvas window, back and forth, big and small, fast and slow. 😒 Result: no crash, no hang 😃. So that’s cool, ha? Install with or without features works. Cairo works fine too. Python plugin works, but returns the canvas window to a smaller size after implementing the script, but I could resize the canvas window without problems. Program crashed after importing an lst.file but that is a Cairo-render problem since the files the lst was referring to were jpegs. After changing the jpegs in the lst.file into png’s importing the lst.file again using Cairo-render worked fine too. Good work. 😛  
Greetz!

---

<div class="post-metadata">

### Author: ![Genete](https://forums.synfig.org/user_avatar/forums.synfig.org/genete/32/8_2.png) [@Genete](https://forums.synfig.org/u/Genete)
#### Post date: [August 1, 2013, 4:35am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/56 "2013-08-01T04:35:04Z")

</div>

> [@](#):
>
> I installed the newest build and for the last half hour I did nothing else then resizing the canvas window, back and forth, big and small, fast and slow

That’s great. Single thread disabled?  
-G

---

<div class="post-metadata">

### Author: ![Darkspace\_be](https://forums.synfig.org/user_avatar/forums.synfig.org/darkspace_be/32/71_2.png) [@Darkspace\_be](https://forums.synfig.org/u/Darkspace_be)
#### Post date: [August 1, 2013, 5:47am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/57 "2013-08-01T05:47:21Z")

</div>

> [@Genete](#):
>
> That’s great. Single thread disabled?  
> -G

Hi!  
I tried to reproduce the canvas window resize bug, both with single thread disabled and single thread enabled. No crash, no hang. Everything seemed to work.  
Greetz!

---

<div class="post-metadata">

### Author: ![KonstantinDmitriev](https://forums.synfig.org/user_avatar/forums.synfig.org/konstantindmitriev/32/3_2.png) [@KonstantinDmitriev](https://forums.synfig.org/u/KonstantinDmitriev)
#### Post date: [August 1, 2013, 6:05am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/58 "2013-08-01T06:05:01Z")

</div>

Thank you for testing. Please try also to work with complex files. I think resize bug is more likely to appear on big ( = slow) compositions.

---

<div class="post-metadata">

### Author: ![Darkspace\_be](https://forums.synfig.org/user_avatar/forums.synfig.org/darkspace_be/32/71_2.png) [@Darkspace\_be](https://forums.synfig.org/u/Darkspace_be)
#### Post date: [August 1, 2013, 6:23am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/59 "2013-08-01T06:23:02Z")

</div>

Hi!  
The biggest and most complex file I currently have is my switchlayer-template and that worked fine. I also fooled around with some banner animations and that went ok too, and I could even do a realtime playback in the canvas window. Something I was never able to do in the past with any other windows version. Only problem I encountered so far is Cairo giving me some troubles with certain lst.files.  
Greetz!

---

<div class="post-metadata">

### Author: ![Genete](https://forums.synfig.org/user_avatar/forums.synfig.org/genete/32/8_2.png) [@Genete](https://forums.synfig.org/u/Genete)
#### Post date: [August 1, 2013, 6:27am UTC](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527/60 "2013-08-01T06:27:19Z")

</div>

> [@](#):
>
> Here’s another build of Synfig

Congratulations!  
Tested the install options and works fine.  
Resize looks to be fixed in Windows XP 32 bits.  
Played a few minutes with pirates.sif and didn’t crashed (single thread disabled). It still crashing randomly in other cases, even a simple file, like usual ![:mrgreen:](https://forums.synfig.org/uploads/default/original/1X/15680453330e74f929b585a237613f0bdf61e069.gif "Mr. Green")  
With pirates I did -Cairo and Software, single thread disabled:  
Zoom in and immediately start to resize the canvas window. I can see the tiles being rendered meanwhile resizing, everything updated with continuous feedback. I repeated this with different zooms, Cairo, Software and nothing, it didn’t hang. 😃😃😃  
-G

[Previous page](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527.md?page=2)

[Next page](https://forums.synfig.org/t/building-synfig-on-windows-konstantins-report/2527.md?page=4)
