RosaryMala / armok-vision

A 3d realtime visualizer for Dwarf Fortress
MIT License
320 stars 27 forks source link

Armok Vision 'Job failed to exec' for 'weird reason': 13 #49

Closed Simons-Mith closed 7 years ago

Simons-Mith commented 7 years ago

I'm trying Armok Vision with DFHack 0.43.05-beta-2 on Mac OS 10.9.5

The Armok Vision app pops [up on the toolbar] for an instant [barely perceptible actually; the surrounding icons just 'jiggle'] when I try to run it, then it vanishes again.

Nothing at all in the Unity log file. In fact I've been scouring the logs to find anything at all.

Eventually I came across the following in system.log:

May 4 00:21:20 Melanie-Smith-Rawlingss-iMac com.apple.launchd.peruser.501[154] (unity.GopalGraphics.Armok Vision.303632[1464]): Job failed to exec(3) for weird reason: 13 May 4 00:21:20 Melanie-Smith-Rawlingss-iMac.local Finder[180]: 8837325: Attempting to SIGCONT to pid #1464 failed, with errno=#3, or the process failed to actually start May 4 00:21:20 Melanie-Smith-Rawlingss-iMac.local loginwindow[42]: ERROR | -[Application setAppContext:] | Unable to get PID for context [0,290887] May 4 00:21:20 Melanie-Smith-Rawlingss-iMac.local Dock[178]: no information back from LS about running process LSASN:{hi=0x0;lo=0x47047} May 4 00:21:20 Melanie-Smith-Rawlingss-iMac.local Finder[180]: 8837325: Attempting to SIGCONT to pid #1464 failed, with errno=#3, or the process failed to actually start May 4 00:21:50 --- last message repeated 98 times --- May 4 00:22:01 Melanie-Smith-Rawlingss-iMac.local ipcserver[1470]: Valve Steam ipcserver started: 1.04

That's all I've found. At the time I had DFhack running with a fortress open, per the Armok Vision instructions. But I get the same behaviour (and the same 'weird reason' error) if I try to run Armok Vision when DFHack isn't running at all. So I'm guessing Armok Vision cannot tell there's a DF game for it to talk to??

RosaryMala commented 7 years ago

A quick Google search indicates that the permissions are messed up, which also happens with Linux.

Try the solution here:

https://superuser.com/questions/478768/running-app-on-macosx-mountain-lion-job-failed-to-exec3-for-weird-reason-13

On May 4, 2017 5:02 AM, "Simons-Mith" notifications@github.com wrote:

I'm trying Armok Vision with DFHack 0.43.05-beta-2 on Mac OS 10.9.5

The Armok Vision app pops up for an instant when I try to run it, then vanishes again.

Nothing at all in the Unity log file. In fact I've been scouring the logs to find anything at all.

Eventually I came across the following in system.log:

May 4 00:21:20 Melanie-Smith-Rawlingss-iMac com.apple.launchd.peruser.501[154] (unity.GopalGraphics.Armok Vision.303632[1464]): Job failed to exec(3) for weird reason: 13 May 4 00:21:20 Melanie-Smith-Rawlingss-iMac.local Finder[180]: 8837325: Attempting to SIGCONT to pid #1464 failed, with errno=#3 https://github.com/JapaMala/armok-vision/issues/3, or the process failed to actually start May 4 00:21:20 Melanie-Smith-Rawlingss-iMac.local loginwindow[42]: ERROR | -[Application setAppContext:] | Unable to get PID for context [0,290887] May 4 00:21:20 Melanie-Smith-Rawlingss-iMac.local Dock[178]: no information back from LS about running process LSASN:{hi=0x0;lo=0x47047} May 4 00:21:20 Melanie-Smith-Rawlingss-iMac.local Finder[180]: 8837325: Attempting to SIGCONT to pid #1464 failed, with errno=#3 https://github.com/JapaMala/armok-vision/issues/3, or the process failed to actually start May 4 00:21:50 --- last message repeated 98 times --- May 4 00:22:01 Melanie-Smith-Rawlingss-iMac.local ipcserver[1470]: Valve Steam ipcserver started: 1.04

That's all I've found. At the time I had DFhack running with a fortress open, per the Armok Vision instructions. But I get the same behaviour (and the same 'weird reason' error) if I try to run Armok Vision when DFHack isn't running at all. So I'm guessing Armok Vision cannot tell there's a DF game for it to talk to??

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JapaMala/armok-vision/issues/49, or mute the thread https://github.com/notifications/unsubscribe-auth/AARm3epLqls86ZcdXB7eDaBx6PVIIC_qks5r2Q5vgaJpZM4NQE2g .

lethosor commented 7 years ago

By the way, Armok Vision should at least display a window of some kind even if DF isn't running, so failure to communicate with DF wouldn't be the cause here.

I would try Japa's advice. What did you use to unzip the file you downloaded? I've seen third-party extraction tools that sometimes don't make files executable properly.

RosaryMala commented 7 years ago

It's more likely that the file is never properly made executable in the first place, as it's built and packaged on windows, which doesn't have those permissions.

On May 4, 2017 5:37 AM, "Lethosor" notifications@github.com wrote:

By the way, Armok Vision should at least display a window of some kind even if DF isn't running, so failure to communicate with DF wouldn't be the cause here.

I would try Japa's advice. What did you use to unzip the file you downloaded? I've seen third-party extraction tools that sometimes don't make files executable properly.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JapaMala/armok-vision/issues/49#issuecomment-299069183, or mute the thread https://github.com/notifications/unsubscribe-auth/AARm3WmpjZSquomppg-ygRcTQRwg8yUgks5r2RbIgaJpZM4NQE2g .

lethosor commented 7 years ago

At least one previous build has worked fine for me, though.

lethosor commented 7 years ago

0.16.2 works fine for me (on OS X 10.11, using the system archive utility to extract it).

@Simons-Mith are you using 0.16.2 or an earlier version?

Simons-Mith commented 7 years ago

I'm using 0.16.2, and I used WinZip Mac to extract it. It's the same program I've used to extract almost every zip file ever, so having it fall over on just this one application was completely unexpected. Manually chmodding the Armok Vision executable allowed it to run. WTH were Apple thinking, calling something as elementary as this a 'weird error'?? Like an idiot I believed them and assumed it was something genuinely obscure. I think Japa's explanation is the most likely, because otherwise I'd have hit it frequently. This is the first time it's come up!

lethosor commented 7 years ago

It's executable, as far as I can tell, because Archive Utility makes it executable correctly when it's extracted. Has WinZip worked for older versions of Armok Vision?

Simons-Mith commented 7 years ago

Well, no. I've just tried an old copy of AV 0.13.1 and that did need the same chmod tweak. However I've got quite a few other downloaded apps in Zip files - Minetest, notably, and OpenTTD, and they've been fine. Armok Vision is the first app I've ever needed to chmod.

RosaryMala commented 7 years ago

I'm honestly not sure there's a good fix for this unless I get a mac somehow, but I'll try and see if cloud builds have the same problem.

RosaryMala commented 7 years ago

https://developer.cloud.unity3d.com/share/-k5EeS8aBf/

Does this build have the same issue?

Simons-Mith commented 7 years ago

Well, that version does run the moment I copy it out of the zip file, [although I did get a whole slew of 'Invalid pass number (6)' errors for all sorts of material types]. However, in spite of all those I can see the fortress windmill spinning, so there's no sign of the 'weird reason' error.

RosaryMala commented 7 years ago

Okay, then I'll just use the cloud build files for release, after fixing the issues.

alexchandel commented 7 years ago

This has been fixed in all recent builds. Close?

RosaryMala commented 7 years ago

Yeah, good idea.