Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Error encountered while generating world: magick.exe exited with non-zero exit code of 1

A topic by LockeDown created Jul 14, 2023 Views: 143 Replies: 3
Viewing posts 1 to 4

Getting the Title error above when generating custom world. It seems to start out okay then just fails with this error part way through.
Pulled from logs:

GetMaskImg got finalFileResp.

CallProcess debug: D:\Files\Games\AI Roguelite 2D\AI-Roguelite-2D-1\tools\magick.exe .. convert "C:/Users/mfrkl/AppData/LocalLow/MaxLoh/AI Roguelite 2D\saved-world-infos\84d5c775-1749-491f-b6f6-116081b5c2b4\images\c08e660e-a2a2-4a0d-8eb7-064eb650c17d.jpg" "C:/Users/mfrkl/AppData/LocalLow/MaxLoh/AI Roguelite 2D\saved-world-infos\84d5c775-1749-491f-b6f6-116081b5c2b4\images\c08e660e-a2a2-4a0d-8eb7-064eb650c17d_mask.png" -alpha Off -compose CopyOpacity -composite "C:/Users/mfrkl/AppData/LocalLow/MaxLoh/AI Roguelite 2D\saved-world-infos\84d5c775-1749-491f-b6f6-116081b5c2b4\images\c08e660e-a2a2-4a0d-8eb7-064eb650c17d_removedbg.png"

MessageModal cancel reached.

cancel generations.

MessageModal showModal reached.

Exception: process D:\Files\Games\AI Roguelite 2D\AI-Roguelite-2D-1\tools\magick.exe exited with non-zero exit code of 1

  at Utils+<>c__DisplayClass19_0.<CallProcess>b__0 () [0x000a6] in <36da7640cac84cf29256925eab0be4ea>:0 

  at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in <d6232873609549b8a045fa15811a5bd3>:0 

  at System.Threading.Tasks.Task.Execute () [0x00000] in <d6232873609549b8a045fa15811a5bd3>:0 

--- End of stack trace from previous location where exception was thrown ---

  at Utils.CallProcess (System.String fileName, System.String arguments) [0x00082] in <36da7640cac84cf29256925eab0be4ea>:0 

  at AdobeBgClient.GenerateRemovedBgImg (System.String absPath, System.String imgFileName) [0x00246] in <36da7640cac84cf29256925eab0be4ea>:0 

  at TplEntity.GenImgStuff () [0x0015c] in <36da7640cac84cf29256925eab0be4ea>:0 

  at ItemTpl.GenImgStuff () [0x00062] in <36da7640cac84cf29256925eab0be4ea>:0 

  at ItemTpl.Create (System.String absPath, System.String name, System.String desc, System.String visDesc, AbilMechanicTpl attackTemplate, System.Int32 expectedIlvl, System.String uuidOverride) [0x000ba] in <36da7640cac84cf29256925eab0be4ea>:0 

  at NewGameHandler.GenerateWorldInfo (System.String worldNickname, System.String worldBackground) [0x004d5] in <36da7640cac84cf29256925eab0be4ea>:0 

  at NewGameHandler.<OnGenerateWorldInfoClicked>b__36_0 (System.Collections.Generic.List`1[T] listOfStrs) [0x00139] in <36da7640cac84cf29256925eab0be4ea>:0 

  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in <d6232873609549b8a045fa15811a5bd3>:0 

  at UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () [0x00002] in <b7bd145ee2ac420bb03ab6bcfc2dc69d>:0 

  at UnityEngine.UnitySynchronizationContext.Exec () [0x00056] in <b7bd145ee2ac420bb03ab6bcfc2dc69d>:0 

  at UnityEngine.UnitySynchronizationContext.ExecuteTasks () [0x00014] in <b7bd145ee2ac420bb03ab6bcfc2dc69d>:0 

MessageModal cancel reached.

NewGame closed.

Developer

Thanks for reporting! 

If you have time, would you be able to open CMD and copy paste: "D:\Files\Games\AI Roguelite 2D\AI-Roguelite-2D-1\tools\magick.exe" convert "C:/Users/mfrkl/AppData/LocalLow/MaxLoh/AI Roguelite 2D\saved-world-infos\84d5c775-1749-491f-b6f6-116081b5c2b4\images\c08e660e-a2a2-4a0d-8eb7-064eb650c17d.jpg" "C:/Users/mfrkl/AppData/LocalLow/MaxLoh/AI Roguelite 2D\saved-world-infos\84d5c775-1749-491f-b6f6-116081b5c2b4\images\c08e660e-a2a2-4a0d-8eb7-064eb650c17d_mask.png" -alpha Off -compose CopyOpacity -composite "C:/Users/mfrkl/AppData/LocalLow/MaxLoh/AI Roguelite 2D\saved-world-infos\84d5c775-1749-491f-b6f6-116081b5c2b4\images\c08e660e-a2a2-4a0d-8eb7-064eb650c17d_removedbg.png"

And see what it says?

Also, if you could give me the entire Player.log, that would help me figure out whether it was a specific image that caused it, or imagemagick was never able to run

Developer

Never mind, I think I figured it out. I needed to download the portable version of imagemagick rather than default version. I'll try to have a fix soon

Developer

I have pushed a fix in AI-Roguelite-2D-2; please feel free to let me know if it's still broken