Appcrash issue when resize image with long filepath

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Kimi
Posts: 3
Joined: 2019-10-31T19:59:22-07:00
Authentication code: 1152

Appcrash issue when resize image with long filepath

Post by Kimi » 2019-10-31T20:17:59-07:00

when I use this command to resize an image with the filepath longer than 258, it'll run into crash with error"ImageMagick Studio library and utility programs has stopped working", and I have to manually click "close the programs" to continue.

Code: Select all

for /R "E:\pictures\" %i IN (*.JPG) do c:\ImageMagick\convert.exe "%i" -resize 2000x2000^> "%i" 
Application Version: 7.0.8.0
OS Version: 6.3.9600.2.0.0.272.7

could you help to check how can we make the ImageMagick working for these files with path longer than 256?

One more question, I'm trying to find another way to filter these files but I'm not able to find the correct command line, could you share how can I filter the specific directory? Many thanks.

Details of the crash

Code: Select all

  Problem signature:
  Problem Event Name:	APPCRASH
  Application Name:	convert.exe
  Application Version:	7.0.8.0
  Application Timestamp:	5b201f31
  Fault Module Name:	StackHash_71e7
  Fault Module Version:	6.3.9600.19101
  Fault Module Timestamp:	5b5017ac
  Exception Code:	c0000374
  Exception Offset:	PCH_B4_FROM_ntdll+0x0000000000090D0A
  OS Version:	6.3.9600.2.0.0.272.7
  Locale ID:	1033
  Additional Information 1:	71e7
  Additional Information 2:	71e71ad6e9c001700f7b19fe9bc73a32
  Additional Information 3:	1a2b
  Additional Information 4:	1a2b3a0c53b6bf7266bf7abdd0b3da8d

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=280262

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt


User avatar
fmw42
Posts: 25664
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Appcrash issue when resize image with long filepath

Post by fmw42 » 2019-10-31T20:32:32-07:00

I believe that Windows has a string length limit of 256 characters. But I will defer to Windows users who know more, since I do not use Windows much.

Sorry, I do not understand what and how you want to filter your files! Please clarify further.

Kimi
Posts: 3
Joined: 2019-10-31T19:59:22-07:00
Authentication code: 1152

Re: Appcrash issue when resize image with long filepath

Post by Kimi » 2019-11-01T01:10:51-07:00

fmw42 wrote:
2019-10-31T20:32:32-07:00
I believe that Windows has a string length limit of 256 characters. But I will defer to Windows users who know more, since I do not use Windows much.

Sorry, I do not understand what and how you want to filter your files! Please clarify further.
Thanks.
I'd like to resize all the images on my disk only except one of the sub-folder, but don't know how to do with ImageMagick command line.

snibgo
Posts: 12299
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Appcrash issue when resize image with long filepath

Post by snibgo » 2019-11-01T04:19:56-07:00

What version of Windows?

Windows path lengths (in Windows 8.1) have that limit.

However, IM should handle this limit gracefully, and should not crash.

On filtering: ImageMagick has no facility to process all files except a particular directory. You should handle that in your script.
snibgo's IM pages: im.snibgo.com

Kimi
Posts: 3
Joined: 2019-10-31T19:59:22-07:00
Authentication code: 1152

Re: Appcrash issue when resize image with long filepath

Post by Kimi » 2019-11-04T01:27:48-07:00

snibgo wrote:
2019-11-01T04:19:56-07:00
What version of Windows?

Windows path lengths (in Windows 8.1) have that limit.

However, IM should handle this limit gracefully, and should not crash.

On filtering: ImageMagick has no facility to process all files except a particular directory. You should handle that in your script.
it's Windows Server 2012R2, OS Version: 6.3.9600.2.0.0.272.7, it only display as "ImageMagick Studio library and utility programs has stopped working" when resize the file with long path.
thanks, I'll check with my script.

Post Reply