Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

MewnBase

Space-cat crafting/survival game with base building. · By Cairn4

macOS — Game launches and immediately closes (no screen visible, just immediately crashes)

A topic by Joshua Meadows created Feb 26, 2018 Views: 2,853 Replies: 24
Viewing posts 1 to 17

As above, the moment I launch the game it just instantly closes without showing anything. If I launch it directly (without the itch app) it remains open but it sits in the dock and there's no game windows or anything else visible. I hadn't seen this posted already so I don't know if it's a bug on my end or what.

Developer
Sounds like the 'ol macOS gatekeeper / security thing preventing it from launching. Easiest thing that usually seems to work is just drag the MewnBase.app (not the folder) into your Applications folder and try launching it from there. Let me know if that works for you.

Unfortunately, I did try that and it didn't fix the issue.

I tried downloading it through the itch app and launching (it just closes instantly), also I tried downloading it through itch as well as directly from the website and the same thing happens if I move the .app file somewhere else or the entire folder. I've had to resort to playing it in a virtual machine to get it to work at all.

Developer

It crashes instantly through the itch app too?  Hmmmmmm.  And it doesn't throw an error popup?  Does itch give any "Examine the cause of failure" dialog or something when it crashes?

Nope, it just literally opens for half a second, the icon bounces a couple times in the dock, and then the icon closes. If I open it directly, the application remains in the dock but doesn't show any windows or anything (it doesn't seem to be locked up, however) and nothing happens.

    __TEXT                 000000010066e000-000000010067e000 [   64K] r-x/rwx SM=COW  /Users/USER/Library/Application Support/itch/*/MewnBase.app/Contents/MacOS/MewnBase

Application Specific Information:
abort() called
*** error for object 0x117232160: pointer being freed was not allocated

throught itch.app

I get the same error, both through the itch app and downloaded from itch and run directly

Developer

Just wanted to mention that I'm still looking into this. There's clearly something up with the macOS version, unfortunately I can't reproduce this crash on my 2012 Mac Mini... but will keep at it. Is anyone with this issue able to launch the Java version directly?  or does that give the same result? 

(1 edit)

Trying to run the jar directly also crashes, but with a different error:

Exception in thread "main" java.lang.ExceptionInInitializerError
at org.lwjgl.glfw.GLFW.glfwCreateWindow(GLFW.java:1647)
at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createGlfwWindow(Lwjgl3Application.java:442)
at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createWindow(Lwjgl3Application.java:391)
at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createWindow(Lwjgl3Application.java:379)
at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:108)
at com.cairn4.moonbase.desktop.DesktopLauncher.main(DesktopLauncher.java:41)
Caused by: java.lang.IllegalStateException: GLFW windows may only be created on the main thread and that thread must be the first thread in the process. Please run the JVM with -XstartOnFirstThread. For offscreen rendering, make sure another window toolkit (e.g. AWT or JavaFX) is initialized before GLFW.
at org.lwjgl.glfw.EventLoop$OffScreen.<clinit>(EventLoop.java:37)
... 6 more
AL lib: (EE) alc_cleanup: 1 device not closed
Developer

Thanks for posting this, think I'm starting to finally get some leads on why the macOS version is being so difficult...

Going to try out a few things over the weekend to see if I can get it launching more reliably.

Since it looks like you at least have a version of Java installed on your machine, see if running this from the Terminal works...

> java -XstartOnFirstThread -jar desktop-1.0.jar

(Assuming that you have the Terminal navigated to the same folder as the jar file)

There might also still be an issue where I'm using a AWT/Swing popup to show crash error messages... but worth trying.

I get the following error:

java(3906,0x7fff99cea340) malloc: *** error for object 0x123b69140: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
[1]    3906 abort      java -XstartOnFirstThread -jar desktop-1.0.jar

Here's the Java version on my machine

java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
Developer

I've just uploaded v0.42.4 of the game.  It has some changes to the macOS version that I hope make it launch a little more reliably. Would love anyone that had the crash issues in this thread to check it out and let me know if it works better or worse. 

Note:  It sometimes will still silently crash the first time the .app is launched, but then will always run fine after that... still investigating.  

I still get it launching and then instantly/immediately closing whether I launch it through the itch app or from the standalone zip download. I tried opening it a couple of times to clear out the first launch issue, but nah — still unplayable for me on macOS unfortunately. Anything else I can test?

I too still get the same crash on launch

I'm getting the having the same problem and have tried all suggested fixes from this thread.

I have the error report that OSX gave me.

Process:               MewnBase [1135]
Path:                  /Applications/MewnBase.app/Contents/MacOS/MewnBase
Identifier:            com.cairn4.moonbase.desktop
Version:               1.0 (???)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           MewnBase [1135]
User ID:               501

Date/Time:             2018-05-29 04:37:54.910 -0600
OS Version:            Mac OS X 10.13.4 (17E202)
Report Version:        12
Anonymous UUID:        D57E2DA7-FE96-A96C-1274-19D360ED19CB

Sleep/Wake UUID:       3A6E2513-5A00-4170-924E-577A5175D676

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

System Integrity Protection: enabled

Crashed Thread:        9  Dispatch queue: com.apple.root.utility-qos.overcommit

Exception Type:        EXC_BAD_ACCESS (SIGABRT)
Exception Codes:       KERN_PROTECTION_FAILURE at 0x0000000113115000
Exception Note:        EXC_CORPSE_NOTIFY

VM Regions Near 0x113115000:
    VM_ALLOCATE            0000000113106000-0000000113107000 [    4K] rw-/rw- SM=PRV  
--> shared memory          0000000113107000-0000000113190000 [  548K] r--/r-- SM=SHM  
    VM_ALLOCATE            0000000113190000-000000011319b000 [   44K] rw-/rwx SM=PRV  

Logical CPU:     0
Error Code:      0x02000148
Trap Number:     13

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 4821
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=347.5M resident=0K(0%) swapped_out_or_unallocated=347.5M(100%)
Writable regions: Total=406.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=406.2M(100%)
 
                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        2 
CoreUI image file                  116K        2 
Kernel Alloc Once                    8K        2 
MALLOC                            55.0M       22 
MALLOC guard page                   32K        9 
MALLOC_LARGE (reserved)           15.6M        2         reserved VM address space (unallocated)
STACK GUARD                        144K       21 
Stack                             24.1M       21 
Stack Guard                       56.0M        9 
VM_ALLOCATE                        2.1G       32 
VM_ALLOCATE (reserved)           205.1M        3         reserved VM address space (unallocated)
__DATA                            24.5M      240 
__FONT_DATA                          4K        2 
__LINKEDIT                       199.7M       18 
__TEXT                           147.8M      240 
__UNICODE                          560K        2 
mapped file                       36.6M       12 
shared memory                      624K        9 
===========                     =======  ======= 
TOTAL                              2.8G      630 
TOTAL, minus reserved VM space     2.6G      630 

Model: MacBookPro8,1, BootROM MBP81.004F.B00, 2 processors, Intel Core i7, 2.8 GHz, 16 GB, SMC 1.68f99
Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1333 MHz, 0x04CD, 0x46412D3133333343392D3847535100000020
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1333 MHz, 0x04CD, 0x46412D3133333343392D3847535100000020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6), Broadcom BCM43xx 1.0 (5.106.98.102.30)
Bluetooth: Version 6.0.5f3, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
Serial ATA Device: TOSHIBA MK7559GSXF, 750.16 GB
Serial ATA Device: MATSHITADVD-R   UJ-8A8

(1 edit)

Just bought the game and experienced the same issue. Here are some details:

MewnBase Version: 0.43
macOS: High Sierra Version 10.13.5
$ java --version
java 9
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)
$ java -jar MewnBase.jar
Exception in thread "main" java.lang.ExceptionInInitializerError
    at org.lwjgl.glfw.GLFW.glfwCreateWindow(GLFW.java:1647)
    at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createGlfwWindow(Lwjgl3Application.java:442)
    at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createWindow(Lwjgl3Application.java:391)
    at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createWindow(Lwjgl3Application.java:379)
    at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:108)
    at com.cairn4.moonbase.desktop.DesktopLauncher.main(DesktopLauncher.java:41)
Caused by: java.lang.IllegalStateException: GLFW windows may only be created on the main thread and that thread must be the first thread in the process. Please run the JVM with -XstartOnFirstThread. For offscreen rendering, make sure another window toolkit (e.g. AWT or JavaFX) is initialized before GLFW.
    at org.lwjgl.glfw.EventLoop$OffScreen.<clinit>(EventLoop.java:37)
    ... 6 more
AL lib: (EE) alc_cleanup: 1 device not closed</clinit></init>
$ java -XstartOnFirstThread -jar MewnBase.jar
MewnBase: SettingsLoader: Creating default settings file
MewnBase: SettingsLoader: Writing settings to disk.
MewnBase: SettingsLoader: validating settings file
MewnBase: Compiling shaders...
java(92750,0x7fff9a00f380) malloc: *** error for object 0x12db1b1a0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
[1]    92750 abort      java -XstartOnFirstThread -jar MewnBase.jar
Developer

Sorry it's still being crashy on macOS everyone :(

Thanks for posting those attempts at running it bytesoup.  Found a bug/issue post for libgdx (engine that MewnBase uses) that sounds like it might be the same issue: https://github.com/libgdx/libgdx/issues/5205

Although I'm not able to test this on my end... the post suggests trying to disable the dedicated/integrated gpu switching on your system (probably like this http://osxdaily.com/2017/01/08/disable-gpu-switching-macbook-pro/) - and then running the game again. Would you mind trying that out and letting me know if it fares any better?  

Thanks for the prompt response! And no worries; I still have at least one fallback OS to play it on.

I checked the issue raised in the libGDX project. Unfortunately I'm running the game on a MacBook (not MacBook Pro) so there is no GPU switch available. However, I'm using an external monitor which was also mentioned - so I unplugged it, but the issue remained.

I have experienced issues with using the LWJGL3 backend before; LWJGL works just fine. I will spend a bit more time looking for a solution and will report back here if I stumble upon something.

Yeah I'm also on a MacBook Pro with a single GPU, so there's no graphics switching on my end either unfortunately.

Same here.  I cannot run this game on my Mac.  Can I get a refund if it's just not going to work on MACs?  And I'd also suggest you take down the links to download it for Mac, and also not advertise it as a MAC OS compatible game since it isn't?

Developer

Sorry the game didn't work for you.

Yes, you can get a refund if it's not working for you on your machine, just shoot me an email (steve@cairn4.com) from the one you used to buy the game and I can forward the request along if you'd like. 

Have considered removing the Mac version, but haven't because on some Apple machines it works fine without any issues (like on my Mac mini), while others experience the launch issue you mentioned. Still haven't been able to figure out why.

In the meantime, will at least either make it super clear to buyers that the Mac version might be crashy or drop it from the store listing for now.

Hi,

There seem to be crashlog files under the  application directory. The stack there seems to be a bit different:

cat /Applications/MewnBase.app/Contents/Resources/crashlog_v0.45_2018-7-22_2.45.04PM.txt
x86_64 | Mac OS X | 10.10.5
UnsatisfiedLinkError: dlopen(/var/folders/b1/1bg9m9pj5bs5z590qkg1brcw0000gn/T/jna-318421385/jna1833933783035071754.tmp, 9): no suitable image found.  Did find:
    /var/folders/b1/1bg9m9pj5bs5z590qkg1brcw0000gn/T/jna-318421385/jna1833933783035071754.tmp: code signature invalid for '/var/folders/b1/1bg9m9pj5bs5z590qkg1brcw0000gn/T/jna-318421385/jna1833933783035071754.tmp'
com.sun.jna.Native.open(Native Method)
com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:288)
com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:427)
com.sun.jna.Library$Handler.<init>(Library.java:179)
com.sun.jna.Native.loadLibrary(Native.java:569)
com.sun.jna.Native.loadLibrary(Native.java:544)
club.minnced.discord.rpc.DiscordRPC.<clinit>(DiscordRPC.java:42)
com.cairn4.moonbase.desktop.DesktopAdapter.updateRPC(DesktopAdapter.java:128)
com.cairn4.moonbase.MoonBase.create(MoonBase.java:139)
com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.initializeListener(Lwjgl3Window.java:429)
com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.update(Lwjgl3Window.java:377)
com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.loop(Lwjgl3Application.java:137)
com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:111)
com.cairn4.moonbase.desktop.DesktopLauncher.main(DesktopLauncher.java:41)</init></clinit></init>

It won't launch for me either... on a Mac book pro.

Still crash on my new MacBook Air .

     

Hope you fix it soon

Update! After I upgraded my MacOS from 10.10.5 to 10.13.6, the issue disappeared - I could launch and enjoy the game!
(just after solving the "Mac Screen Issue" from the other thread...)