Re: CONVERT bug - converting text to .png fails
Posted: 2013-02-21T08:45:44-07:00
What exception message are you getting?
We just ran your script under Windows 8 with 32-bit ImageMagick 6.8.3-3 for 100,000 iterations and it completed without complaint. We ran it twice, once with test.txt with just a new line and once with the single letter 'a'. We also ran it for 100,000 iterations under Linux without fail.
For your system, we can think of two possibilities. One is that your Windows OS is returning spurious problems with certain system (e.g. malloc()) or I/O calls or there is a race condition. Either way, unless we can reproduce the problem, its very tough to fix. To see if its a race condition, add '-limit thread 1' to your convert.exe command line to make sure it only uses 1 thread. Does that help?
We just ran your script under Windows 8 with 32-bit ImageMagick 6.8.3-3 for 100,000 iterations and it completed without complaint. We ran it twice, once with test.txt with just a new line and once with the single letter 'a'. We also ran it for 100,000 iterations under Linux without fail.
For your system, we can think of two possibilities. One is that your Windows OS is returning spurious problems with certain system (e.g. malloc()) or I/O calls or there is a race condition. Either way, unless we can reproduce the problem, its very tough to fix. To see if its a race condition, add '-limit thread 1' to your convert.exe command line to make sure it only uses 1 thread. Does that help?