webone icon indicating copy to clipboard operation
webone copied to clipboard

"Idle process killed" error when converting to GIF

Open marcoslm opened this issue 4 years ago • 5 comments

I am getting that error when converting PNG / JPG image formats to GIF (Windows version). I have simply added the Amiga IBrowse browser User-Agent (OnHeader = User-Agent: IBrowse / 2.4) in the section to convert PNG / WebP to GIF from the configuration file. The first conversion seems to work, but the subsequent ones fail ("Idle process killed" and incomplete images sent to the Amiga).

I don't know if it's a problem with the "convert.exe" utility. I have been trying other solutions (other converters and scripts) but I get other errors like file not found (converted image). It gives the impression that the converted file is deleted before being sent to the client or may be I doing something wrong.

Thanks for your effort! I hope this interesting project continues to move forward.

marcoslm avatar Jun 23 '20 01:06 marcoslm

Hello!

  1. How your webone.conf looks? You're simply added OnHeader=User-Agent: IBrowse/2.4 near OnHeader=User-Agent: Mozilla/3 or changed anything other too?
  2. Does the bug appear on all web sites or only on particular?
  3. Does the conversion work with something like Netscape Navigator 3?
  4. Does anything writes in console (like file not found or similar) or the ImageMagick (convert.exe) does not starting and thus gets killed as a zombie-process.

atauenis avatar Jun 23 '20 08:06 atauenis

  1. Yes, I did exactly that: added a line just after the Mozilla/3 line. Without changing anything else.
  2. All the sites I tried.
  3. I only tested with ibrowse 2.4 (Amiga m68k) and with Firefox 77.0.1 (Windows 10). No conversion problems with the latter.
  4. ImageMagick seems to be doing the conversion, the problem is later when sending. Here is an example:

22:35:57.365+0 >GET http://media.demozoo.org/screens/s/31/9b/042a.jw45957.png (192.168.1.90) 22:35:57.365+0 >Downloading content... 22:35:57.365+1681256 Add response header: Content-Type: image/gif 22:35:57.365+1685306 200 OK. Body 16K of image/png [Wants convert]. 22:35:57.365+2114989 Converting: convert tempconvert-1825601755.orig.tmp gif:- ... 22:35:57.365+2117382 <Send image/gif stream. 22:35:55.873+25250163 <Done. 22:35:57.365+17420005 Idle process killed.

Since there are no problems with Firefox 77, it may have something to do with the behavior of IBrowse 2.4 (it works well with direct connection, without the webone proxy). I will try a newer version of IBrowse these days.

marcoslm avatar Jun 24 '20 20:06 marcoslm

What is in TemporaryDirectory option in config file? Converting: convert tempconvert-1825601755.orig.tmp gif:- ... should look like Converting: convert c:\temp\convert-1825601755.orig.tmp gif:- ... if WebOne correctly detecting temporary directory path.

Try set TemporaryDirectory=C:\Users\windows user name\Application Data\Temp (or to any other real directory) and then try again with IBrowse.

atauenis avatar Jun 25 '20 18:06 atauenis

Oh, sorry. Later I changed the path of the temporary and log directory (just to try if this solved the problem). I have restored the original configuration again and as you can see, the path of the temporary directory does not seem to be involved in this possible bug.

18:26:21.610+0 >GET http://1.bp.blogspot.com/-pd60h7uiqU0/XOvhYSya5KI/AAAAAAAAqCw/tkPbmqpsfWcZUWr2aRmVEnxZlPL1zteUgCLcBGAs/s640/RyGAR.png (192.168.1.90) 18:26:21.610+0 >Downloading content... 18:26:21.610+1580038 Add response header: Content-Type: image/gif 18:26:21.610+1584590 200 OK. Body 353K of image/png [Wants convert]. 18:26:21.610+3913587 Converting: convert C:\Users\Marcos\AppData\Local\Temp\convert-1428294980.orig.tmp gif:- ... 18:26:21.610+3917173 <Send image/gif stream. 18:26:21.610+19263698 Idle process killed.

marcoslm avatar Jun 27 '20 16:06 marcoslm

Hmm... Can you use Wireshark or something to find difference between IBrowse and Firefox on HTTP/TCP traffic?

atauenis avatar Jul 05 '20 09:07 atauenis