July 16, 2019, 06:10:27 AM

Author Topic: BMax app quits unexpectedly on MacOs Sierra when downloaded  (Read 1379 times)

Offline Pierrou

  • Jr. Member
  • **
  • Posts: 8
    • Pierrou
BMax app quits unexpectedly on MacOs Sierra when downloaded
« on: September 01, 2017, 11:55:04 PM »
Hello,
I recently recompiled a game I made a few years ago, using BlitzMax 1.51 so that it could run on the latest MacOS releases. The game is inside a folder containing the executable, some pref files and a few folders with images and sounds. I have no problem using the game on the Mac I've used to compile it, but if I put the folder in a DMG file or a zip, then upload it to Google Drive or Wetransfer and download it, and then run it by pressing Alt while clicking on the exe and choosing "open", ignoring the warning window, it just crashes with a "xxx quit unexpectedly" error. That's quite weird and I have no idea how to upload the files like I always did before Sierra... Thanks in advance if you have any idea!

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 1951
Re: BMax app quits unexpectedly on MacOs Sierra when downloaded
« Reply #1 on: September 02, 2017, 12:27:57 AM »
That is weird. Have you tried something like this for distribution?

Out of curiosity if you want to give me a link to a zip file that works on your Mac ( until it's zipped, uploaded and downloaded ) I'll happily have a look to see if I can spot anything.
Until the next time...

Offline Pierrou

  • Jr. Member
  • **
  • Posts: 8
    • Pierrou
Re: BMax app quits unexpectedly on MacOs Sierra when downloaded
« Reply #2 on: September 02, 2017, 07:18:29 AM »
Thanks! I sent you a link. Last time I did a dmg using roughly the same files and folders I had no problem...  :( :(

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 1951
Re: BMax app quits unexpectedly on MacOs Sierra when downloaded
« Reply #3 on: September 02, 2017, 03:46:00 PM »
I didn't have any problems running the app :

Until the next time...

Offline markcwm

  • Sr. Member
  • ****
  • Posts: 390
Re: BMax app quits unexpectedly on MacOs Sierra when downloaded
« Reply #4 on: September 02, 2017, 04:54:19 PM »
Antivirus?

Offline Pierrou

  • Jr. Member
  • **
  • Posts: 8
    • Pierrou
Re: BMax app quits unexpectedly on MacOs Sierra when downloaded
« Reply #5 on: September 02, 2017, 05:29:52 PM »
I didn't have any problems running the app :


Now that's weird... Cool, but weird... I don't have any antivirus on my Mac and the settings are quite standard since I don't use my Mac too much. Is there a security setting enabled somewhere ?
Thanks a lot for the tests and answers...

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 1951
Re: BMax app quits unexpectedly on MacOs Sierra when downloaded
« Reply #6 on: September 03, 2017, 06:48:58 AM »
Quote
Is there a security setting enabled somewhere ?
On my iMac the firewall is enabled and apps are only allowed to run from the AppStore. To open your app I had to do the control + open and agree to the app running. I've not dumbed down any settings.

Are you using a 3rd party unzip tool? - Have you tried downloading via a different browser?

It is odd that I can download and run your app but you can not. So there is clearly something between the download click and the running of the app.

I've PM'd you a link to download your app from my side. It'll be interesting to see if it runs for you.
Until the next time...

Offline Pierrou

  • Jr. Member
  • **
  • Posts: 8
    • Pierrou
Re: BMax app quits unexpectedly on MacOs Sierra when downloaded
« Reply #7 on: September 03, 2017, 08:59:20 AM »
Thanks!! The DMG you sent led to the same result : app quit unexpectedly
Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000034
Exception Note:        EXC_CORPSE_NOTIFY
which is typically what we get when the exe can't access a data file, isn't it?
Standard zip and Tool disk utils used
In fact I became aware of that problem when a user (on MacOS Sierra) to whom I had sent the new dmg told me that she couldn't run the app, and I didn't expect to have the same issue, but I did have the same issue.
The dmg/zip files don't seem corrupted, so it's a bit  ::) ::)
Downloading using Chrome or Safari doesn't change a thing...  :o

Offline Pierrou

  • Jr. Member
  • **
  • Posts: 8
    • Pierrou
Re: BMax app quits unexpectedly on MacOs Sierra when downloaded
« Reply #8 on: September 03, 2017, 04:53:49 PM »
Experiments
- make an archive with just the newly compiled (and working) executables, upload it to Google Drive, download it, put it in a folder with the data files--> run the executable : not working
- doing all of the above, but instead of running the executable itself --> show package content, Contents/MacOS/game file --> run that file ==> working...
It's really weird...

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 1951
Re: BMax app quits unexpectedly on MacOs Sierra when downloaded
« Reply #9 on: September 03, 2017, 05:19:32 PM »
If I remember correctly there was a similar issue with Monkey on Sierra which is why Mark make a PKG installer rather than a DMG. I also remember that moving the app the wouldn't launch to the desktop and then moving it back magically fixed it ( don't know why ).
Until the next time...

Offline Pierrou

  • Jr. Member
  • **
  • Posts: 8
    • Pierrou
Re: BMax app quits unexpectedly on MacOs Sierra when downloaded
« Reply #10 on: September 03, 2017, 05:32:44 PM »
 ??? :D
Well haven't tried the PKG intstaller yet, I will thanks! Fingers crossed...

Offline Pierrou

  • Jr. Member
  • **
  • Posts: 8
    • Pierrou
Re: BMax app quits unexpectedly on MacOs Sierra when downloaded
« Reply #11 on: September 19, 2017, 09:53:03 PM »
Hi!
Using Packages seems to solve the problem, thanks a lot for your help !!