GNOME Bugzilla – Bug 763030
W32: renderpng.py gets stuck feeding commands to Inkscape
Last modified: 2016-03-03 13:13:50 UTC
Noticed this while trying to make a freash build of Adwaita. Not sure why i never found this before. Maybe i wasn't doing clean rebuilds. Or Inkscape behaviour changed with new version. Anyway, the process gets stuck at the beginning.
Created attachment 322952 [details] [review] Feed Inkscape stdin in a separate thread Writing directly into stdin of child processes from the main thread turned out to cause deadlocks. Fix this by creating a thread for each child and feeding its stdin from that thread. Also, instead of writing to stdin multiple times (for each command), compose a list of commands in memory and then write them all at once. Also, use EOFError exception instead of non-existing UnexpectedEndOfStream.
Attachment 322952 [details] pushed as 6b1458d - Feed Inkscape stdin in a separate thread