ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ZDaemon Mac OS X build
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    ZDaemon Forum Index -> ZDaemon Help & Chatter
View previous topic :: View next topic  
Author Message
Kamika007z
has entered the game!


Joined: 02 Sep 2005

PostPosted: Tue May 16, 2017 8:52 pm    Post subject: Reply with quote

Lyfe wrote:
I've seen this happen. Try deleting the folder & re-extracting the zip. It's failing to find ZDaemon.app in the same folder as ZQuery.app.


Thanks Lyfe... removed the folder and re-downloaded it and copied it back into the Applications folder and ran Zquery.app which works, but the moment I try to launch the game, that's when it always crashes...

Code:
Process:               ZQuery [3050]
Path:                  /Volumes/VOLUME/*/ZQuery.app/Contents/MacOS/ZQuery
Identifier:            org.zdaemon.ZQuery
Version:               1.0 (1)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           ZQuery [3050]
User ID:               501

Date/Time:             2017-05-16 15:50:32.306 -0400
OS Version:            Mac OS X 10.12.5 (16F73)
Report Version:        12
Anonymous UUID:        EED99851-620F-595C-7DB1-494919DE207D

Sleep/Wake UUID:       DAA1840A-20BE-4F85-8CFC-5C9603C28F7B

Time Awake Since Boot: 1100 seconds
Time Since Wake:       190 seconds

System Integrity Protection: enabled

Notes:                 Translocated Process

Crashed Thread:        10

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
*** Terminating app due to uncaught exception 'NSGenericException', reason: 'NSRunAlertPanel may only be invoked from the main thread. Behavior on other threads is undefined.'
abort() called
terminating with uncaught exception of type NSException


EDIT: Just tried it from a different location, such as Downloads and same crash...
Back to top
View user's profile Send private message
Lyfe
Puts the 'Z' in ZDaemon


Joined: 29 May 2002

PostPosted: Wed May 17, 2017 2:02 am    Post subject: Reply with quote

Ok. I'll look tomorrow at moving that NSAlertPanel call into the main thread, so that it'll actually display the error instead of crashing. I guess that's what I get for not updating the code in several years. Apple goes ahead and makes changes to make things more stable on their end.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Kamika007z
has entered the game!


Joined: 02 Sep 2005

PostPosted: Wed May 17, 2017 3:32 am    Post subject: Reply with quote

Lyfe wrote:
Ok. I'll look tomorrow at moving that NSAlertPanel call into the main thread, so that it'll actually display the error instead of crashing. I guess that's what I get for not updating the code in several years. Apple goes ahead and makes changes to make things more stable on their end.


Thanks Lyfe. I really appreciate it.
Back to top
View user's profile Send private message
Lyfe
Puts the 'Z' in ZDaemon


Joined: 29 May 2002

PostPosted: Wed May 17, 2017 3:17 pm    Post subject: Reply with quote

Ok, try this out:
http://www.zdaemon.info/files/ZDaemon_osx_1.10b07.3.zip

It no longer has the function call that was causing a problem, and now if it encounters an error in that spot, it logs it to the window that pops up anyway during launch. Much better solution, and didn't take long to implement (like 3 lines of code changed).

I can't believe I'm having this much trouble getting this to work when distributing it. I suppose I should think about putting OS X in a VM just for testing purposes (it won't have all the libraries installed that I use for development).
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Aeyesx
Spamming!


Joined: 13 Oct 2012
Location: Czech Republic

PostPosted: Wed May 17, 2017 10:05 pm    Post subject: Reply with quote

May there be a chance for the last of the three's... linux binary?
I can offer a test computer and such ^^ some players from odamex would not complain anymore heh.
VOTE4LYFE Shocked
Back to top
View user's profile Send private message Send e-mail
Kamika007z
has entered the game!


Joined: 02 Sep 2005

PostPosted: Thu May 18, 2017 3:59 am    Post subject: Reply with quote

Lyfe wrote:
Ok, try this out:
http://www.zdaemon.info/files/ZDaemon_osx_1.10b07.3.zip

It no longer has the function call that was causing a problem, and now if it encounters an error in that spot, it logs it to the window that pops up anyway during launch. Much better solution, and didn't take long to implement (like 3 lines of code changed).

I can't believe I'm having this much trouble getting this to work when distributing it. I suppose I should think about putting OS X in a VM just for testing purposes (it won't have all the libraries installed that I use for development).


I think we're getting close.

When I try to launch Doom after logging in, a pop-up comes up saying the following:

"Preparing to launch ZDaemon
Failed to find ZDaemon.app in /private/var/folders/l6/tnt20vxx367511jg50w3jghr0000gq/T/AppTranslocation/430E321E-94F4-48B5-A2F7-2AB8FD2EF651/d.

Please verify that ZDaemon.app is in the expected location"

Then I ran just ZDaemon and got a regular 'ol error...

Code:
Process:               ZDaemon [677]
Path:                  /Volumes/VOLUME/*/ZDaemon.app/Contents/MacOS/ZDaemon
Identifier:            org.zdaemon.ZDaemon
Version:               ZDaemon version 1.08.08 (1.0)
Code Type:             X86 (Native)
Parent Process:        ??? [1]
Responsible:           ZDaemon [677]
User ID:               503

Date/Time:             2017-05-17 23:00:46.609 -0400
OS Version:            Mac OS X 10.12.5 (16F73)
Report Version:        12
Anonymous UUID:        3366AD98-F9A3-0A0F-1D98-D043895FE8EC


Time Awake Since Boot: 780 seconds

System Integrity Protection: enabled

Notes:                 Translocated Process

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: @rpath/SDL2.framework/Versions/A/SDL2
  Referenced from: /Volumes/VOLUME/*/ZDaemon.app/Contents/MacOS/ZDaemon
  Reason: image not found"
Back to top
View user's profile Send private message
Lyfe
Puts the 'Z' in ZDaemon


Joined: 29 May 2002

PostPosted: Thu May 18, 2017 5:11 am    Post subject: Reply with quote

Kamika007z wrote:
When I try to launch Doom after logging in, a pop-up comes up saying the following:

"Preparing to launch ZDaemon
Failed to find ZDaemon.app in /private/var/folders/l6/tnt20vxx367511jg50w3jghr0000gq/T/AppTranslocation/430E321E-94F4-48B5-A2F7-2AB8FD2EF651/d.

Please verify that ZDaemon.app is in the expected location"


Ahh. Now that error is a bit more telling. You should extract the Zip to a folder before trying to run anything inside of it. That little folder location there looks like a temporary folder, and I'm guessing it didn't extract both ZQuery.app & ZDaemon.app appropriately. Either that, or there is some other evil magic at work here.

I'll see about maybe making a .dmg file to make this a bit more intuitive. If that is more intuitive.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Kamika007z
has entered the game!


Joined: 02 Sep 2005

PostPosted: Thu May 18, 2017 1:43 pm    Post subject: Reply with quote

Lyfe wrote:
Kamika007z wrote:
When I try to launch Doom after logging in, a pop-up comes up saying the following:

"Preparing to launch ZDaemon
Failed to find ZDaemon.app in /private/var/folders/l6/tnt20vxx367511jg50w3jghr0000gq/T/AppTranslocation/430E321E-94F4-48B5-A2F7-2AB8FD2EF651/d.

Please verify that ZDaemon.app is in the expected location"


Ahh. Now that error is a bit more telling. You should extract the Zip to a folder before trying to run anything inside of it. That little folder location there looks like a temporary folder, and I'm guessing it didn't extract both ZQuery.app & ZDaemon.app appropriately. Either that, or there is some other evil magic at work here.

I'll see about maybe making a .dmg file to make this a bit more intuitive. If that is more intuitive.


I did extract it. In fact, when you double-click a zip file on a stock Mac install, it automatically extracts it.

I tried running ZDaemon executable itself and it just crashes...

Lyfe, also, just wanted to say THANK YOU again for all of your hard work. I and I'm sure the whole community really appreciates this. Smile
Back to top
View user's profile Send private message
Lyfe
Puts the 'Z' in ZDaemon


Joined: 29 May 2002

PostPosted: Thu May 18, 2017 5:42 pm    Post subject: Reply with quote

Ok. Here's a DMG of what should be the same content:
http://www.zdaemon.info/files/ZDaemon_1.10b07.dmg

Just drag the entire folder in the DMG to somewhere useful (like /Applications or such) and run ZQuery.app.

(edit) File updated with corrected ZDaemon.app on May 18 2017, 7PM UTC. Fixed the remaining incorrect library lookups. Dylibs are included in the app, but they were looking for hardcoded locations. This is now fixed in the DMG. Zip version will be fixed shortly.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Aeyesx
Spamming!


Joined: 13 Oct 2012
Location: Czech Republic

PostPosted: Fri May 19, 2017 10:12 am    Post subject: Reply with quote

Thank you aswell

Back to top
View user's profile Send private message Send e-mail
Kamika007z
has entered the game!


Joined: 02 Sep 2005

PostPosted: Fri May 19, 2017 5:58 pm    Post subject: Reply with quote

Lyfe wrote:
Ok. Here's a DMG of what should be the same content:
http://www.zdaemon.info/files/ZDaemon_1.10b07.dmg

Just drag the entire folder in the DMG to somewhere useful (like /Applications or such) and run ZQuery.app.

(edit) File updated with corrected ZDaemon.app on May 18 2017, 7PM UTC. Fixed the remaining incorrect library lookups. Dylibs are included in the app, but they were looking for hardcoded locations. This is now fixed in the DMG. Zip version will be fixed shortly.


Thank you Lyfe!

I'm out of town for the weekend but when I'm back on Sunday I will give it a go. I'm just itching to try it. Smile

Thanks again!
Back to top
View user's profile Send private message
Kamika007z
has entered the game!


Joined: 02 Sep 2005

PostPosted: Mon May 22, 2017 3:23 am    Post subject: Reply with quote

No go... even deleted the whole folder and see if I can run it that way...

I also left my preferences window open to make sure I'm not making any mistakes....

Here's the image (I don't know how to upload it here.. haha): https://ibb.co/bwEJdF

Thanks again!!

Quick edit & note: when I try to run zDaemon, it loads and then closes without any crashes or anything to report.
Back to top
View user's profile Send private message
Lyfe
Puts the 'Z' in ZDaemon


Joined: 29 May 2002

PostPosted: Mon May 22, 2017 3:15 pm    Post subject: Reply with quote

Wow, I would've never realized this happened.

Apple (in 10.12) introduced "App Translocation."

So, it sounds like if you move the ZDaemon folder from /Applications to something like your Desktop, it will start to work fine.
Please note, that the apparent process is to "move" the ZDaemon folder, not copy or re-extract.

BTW, the reason ZDaemon.app opens & closes is because it doesn't find the doom/doom2.wad file. If your doom2.wad is not in the same folder as ZDaemon.app, then ZDaemon needs to be told where it is. It's fairly unintelligent.


I'll see what I can figure out to remedy this, though I need to figure out how to reproduce it first.

Here's someone's long explanation if you're curious: http://lapcatsoftware.com/articles/app-translocation.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Kamika007z
has entered the game!


Joined: 02 Sep 2005

PostPosted: Tue May 23, 2017 10:16 pm    Post subject: Reply with quote

Thanks Lyfe.

Wow... seriously?? Thank you. I'll give this a shot and see...

If you click on the image link I provided, I had the window opened where the WAD location was specified. Is that wrong?
Back to top
View user's profile Send private message
Kamika007z
has entered the game!


Joined: 02 Sep 2005

PostPosted: Tue May 23, 2017 10:48 pm    Post subject: Reply with quote

Lyfe wrote:
Wow, I would've never realized this happened.

Apple (in 10.12) introduced "App Translocation."

So, it sounds like if you move the ZDaemon folder from /Applications to something like your Desktop, it will start to work fine.
Please note, that the apparent process is to "move" the ZDaemon folder, not copy or re-extract.

BTW, the reason ZDaemon.app opens & closes is because it doesn't find the doom/doom2.wad file. If your doom2.wad is not in the same folder as ZDaemon.app, then ZDaemon needs to be told where it is. It's fairly unintelligent.


I'll see what I can figure out to remedy this, though I need to figure out how to reproduce it first.

Here's someone's long explanation if you're curious: http://lapcatsoftware.com/articles/app-translocation.html


Dragged to desktop and still crashed...

Code:
Process:               ZQuery [3623]
Path:                  /private/var/folders/*/ZQuery.app/Contents/MacOS/ZQuery
Identifier:            org.zdaemon.ZQuery
Version:               1.0 (1)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           ZQuery [3623]
User ID:               501

Date/Time:             2017-05-23 17:45:48.306 -0400
OS Version:            Mac OS X 10.12.5 (16F73)
Report Version:        12
Anonymous UUID:        EED99851-620F-595C-7DB1-494919DE207D

Sleep/Wake UUID:       6431B2F9-F376-44CF-8357-5B75C3AB57FB

Time Awake Since Boot: 2200 seconds
Time Since Wake:       220 seconds

System Integrity Protection: enabled

Notes:                 Translocated Process

Crashed Thread:        10

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
*** Terminating app due to uncaught exception 'NSGenericException', reason: 'NSRunAlertPanel may only be invoked from the main thread. Behavior on other threads is undefined.'
abort() called
terminating with uncaught exception of type NSException


It seemed as if it crashed as soon as I tried to download a WAD I didn't have.

When I tried ZDaemon by itself, I spat out the following crash:

Code:
Process:               ZDaemon [3666]
Path:                  /Volumes/VOLUME/*/ZDaemon.app/Contents/MacOS/ZDaemon
Identifier:            org.zdaemon.ZDaemon
Version:               ZDaemon version 1.08.08 (1.0)
Code Type:             X86 (Native)
Parent Process:        ??? [1]
Responsible:           ZDaemon [3666]
User ID:               501

Date/Time:             2017-05-23 17:47:46.845 -0400
OS Version:            Mac OS X 10.12.5 (16F73)
Report Version:        12
Anonymous UUID:        EED99851-620F-595C-7DB1-494919DE207D

Sleep/Wake UUID:       6431B2F9-F376-44CF-8357-5B75C3AB57FB

Time Awake Since Boot: 2300 seconds
Time Since Wake:       340 seconds

System Integrity Protection: enabled

Notes:                 Translocated Process

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    DYLD, [0x2] Wrong architecture

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: /opt/local/lib/libogg.0.dylib
  Referenced from: /private/var/folders/sd/8gg8r_c10vxff11s15gjdnsc0000gn/T/AppTranslocation/A58134B6-2BB7-45F4-908E-D4DE95634A99/d/ZDaemon.app/Contents/Frameworks/libFLAC.8.dylib
  Reason: no suitable image found.  Did find:
   /usr/local/lib/libogg.0.dylib: mach-o, but wrong architecture
   /usr/local/lib/libogg.0.dylib: mach-o, but wrong architecture


This is a completely random thought, but since this machine is relatively new, with a rebuilt/wiped build of Mac OS 10.12.5... could it be that it is working for you under certain circumstances because you may have additional files/resources installed on your machine?
Back to top
View user's profile Send private message
Lyfe
Puts the 'Z' in ZDaemon


Joined: 29 May 2002

PostPosted: Thu May 25, 2017 2:41 pm    Post subject: Reply with quote

Please download the latest version. Those last few errors were fixed in it.

I'm weirded out that it's still doing the App Translocation, which is frustrating at best. Though, if ZQuery is finding ZDaemon (eg, not translocated) then it should all work fine. Though, I'm not sure what it would do to saving settings.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Kamika007z
has entered the game!


Joined: 02 Sep 2005

PostPosted: Fri May 26, 2017 4:24 am    Post subject: Reply with quote

Lyfe wrote:
Please download the latest version. Those last few errors were fixed in it.

I'm weirded out that it's still doing the App Translocation, which is frustrating at best. Though, if ZQuery is finding ZDaemon (eg, not translocated) then it should all work fine. Though, I'm not sure what it would do to saving settings.


I'm at a total loss... I downloaded this one: http://www.zdaemon.info/files/ZDaemon_1.10b07.dmg and I have tried it on both Macs of mine, both running 10.12.5 each and neither of them are working. It's showing the same errors... I can log into zQuery but launching it either gives me some weird error about WAD location even though I specified where the WAD directory is:

Code:
Preparing to launch ZDaemon
Failed to find ZDaemon.app in /private/var/folders/l6/tnt20vxx367511jg50w3jghr0000gq/T/AppTranslocation/9E52FF26-5D5F-4109-A16E-6DA0DE37C740/d.

Please verify that ZDaemon.app is in the expected location


And I also tried launching the standalone zDaemon applcation but, just like before it just doesn't load. The icon shows up on the dock but then it immediately closes. No error or anything.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> ZDaemon Help & Chatter All times are GMT + 1 Hour
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group