KSP fails to load on MacOS Catalina
trosine opened this issue · 9 comments
I just upgraded to a new laptop on Catalina, and with planetary base systems installed, KSP doesn't even make it past the loading screen. I've narrowed the issue down to the combination of Catalina and KPBS. To simplify things, I uninstalled all of my mods and only installed KPBS. Here's the Player.log with only the following installed:
https://www.dropbox.com/s/4fw4588md8tq867/KPBS-load-Player.log?dl=0
- BreakingGround-DLC 1.5.1
+ CommunityCategoryKit 5.1.0.0
+ CommunityResourcePack 1.3.0.0
- KerbalPlanetaryBaseSystems v1.6.12
+ ModuleManager 4.1.4
I've also tried other combinations to confirm that planetary base systems is the cause of the failure:
- with all of my mods (failure)
- with only KPBS removed from the above list of mods (success)
- all of my mods except KPBS (success)
- all of my mods on my Mojave laptop (success)
PS: thanks for such an awesome mod
Hi, i cannot see any error logged in the file you uploaded.
However the file still lists some other mods as installed:
- 000_Toolbar
- 001_ToolbarControl
- ContractConfigurator
- EasyVesselSwitch
- KSP-AVC
- KerbalEngineer
- ResonantOrbitCalculator
- SCANsat
Maybe the file is not the most up do date one?
I think the "KSP.log" file from KSP's main directory will be better for me to see where the crash happens.
Can you restart KSP with the the mods listed above being installed and the send me the "KSP.log" file?
Here's the KSP.log.
https://www.dropbox.com/s/oouu686ks5gu7yj/KPBS-load-KSP.log?dl=0
It looks like ckan only removes files from the original .zip file when removing mods. Those directories only contain .cfg MiniAVC.dll.pruned, and other cache files.
Just looked at the log, You are right, The other mods seem to be removed.
However neither of the logs shows anything that goes wrong. It just ends while loading. One time while loading a graphic from "CommunityCategoryKit" before it even reached the files from KPBS the other time loading a texture from KPBS. It seems that the program just ends without even recognizing that.
I just searched for "Catalina" in the KSP forums. It looks like there are multiple users having trouble to start KSP on "Catalina". On suggested to re-install KSP as "pkg" file, which solved the problem, https://forum.kerbalspaceprogram.com/index.php?/topic/192852-ksp-191-does-not-start-on-mac-os-x-catalina/#comment-3764869
Can you try to install another mod with a lot of parts and see if KSP crashes there too? Maybe it the number of files that are added that is causing problems or something in that direction.
I've narrowed the issue to these 3 files. If any one of those files are present, the game crashes during loading as before. If all 3 are removed (and the rest of the mod is intact), I get to the main menu. I didn't try playing the game because I'm not sure what kind of havoc it would cause with them missing.
BaseSystem/Agencies/KermanAndKerman.dds
BaseSystem/Flags/PSS.dds
BaseSystem/Flags/KPBS.png
I tried to re-save the png file via the Preview app (with and without Alpha), and both of those versions failed as well. Both versions had a different size/shasum than the one provided in the mod, so I know it didn't just copy the file. Unfortunately, I don't have any skill in image/model editing, so I think the only help I can provide is trying new versions of the files.
I decided to try loading these files in GIMP to see what would happen. GIMP was able to successfully load all of the images, so I tried to re-export them. The two files that were already DDS files, worked when I exported back to a DDS. The files are a bit smaller than the original, so I don't know what might have been lost. Something I did think was odd was that the image appears to be vertically flipped in GIMP.
With KPBS.png, if I exported as a PNG, KSP crashed before the main menu as before, but when I exported that as a DDS, it worked, although it was vertically flipped, so I flipped it in GIMP, so it looked "wrong", and rexported. I went to start a new game with a custom flag, and I can see all 3 of these images in there and they were all oriented properly.
Here are my exported, functional versions of the files.
https://www.dropbox.com/sh/5x4x4ijp9gb41f5/AABUru20xeg7mRUbQxC2Ann-a?dl=0
I tried the following over the weekend:
- verified my game files (no help - although it did fix a few files)
- Tried to export one of the DDS files as PNG, the game crashed as before
- Checked all of the other mods I use with working flags (ContractConfigurator, SCANsat) - and their flags are DDS without mipmaps
- Checked Squad's flags - they are 512x256 PNG
- Checked Squad's agencies - they are 512x256 DDS with mipmaps
- Tried to create my own flags (just my name and some stars painted in a single color)
- As DDS with mipmaps, they worked fine at 256x160 and 512x256
- As PNG, they failed, at 256x160 and 512x256
Not really understanding image editing, I'm not sure what is different about your flags, my simple one, and Squad's, that allow my DDS's or Squad's to work, but not yours. It's even more confusing to me that Squad's PNG files work, but none of my attempts to export as PNG work.
Hi,
wow, you really did a lot of work finding the reason to fix the loading bug and investigate what is causing the issue.
I will replace the problematic files with yours in the next release, so it will work out of the box.
I think that some time ago it was mentioned that the Unity Engine had some issues loading png files on some MacOS versions. Unity uses the native methods from the OS to load image files (if possible) to improve loading times. If i remember correctly the native Method from MacOS had a bug that caused crashes when loading images that were compressed in a certain way. It seems like this problem came back with MacOS Catalina.
My guess is that a png file that was created with an image editing program native to MacOS will work correctly but i'm not sure ;)
Should be fixed with c54946f