Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Shipwreck

Your ship had to make an emergency landing and you are now shipwrecked! · By Shmellyorc

Segmentation Fault When Opening Build Menu

A topic by Matt1006 created Nov 07, 2020 Views: 415 Replies: 3
Viewing posts 1 to 4
(2 edits)

Version: 0.4

Platform: Ubuntu 20.04.1 LTS


After starting a new game the game crashed when trying to access the build menu. This doesn't seem to happen with other menus.

Running the game with the debug and verbose arguments from a terminal only resulted in "Segmentation fault (Core dumped)"

I noticed that you used Godot 3.2.4 Beta 1 and I figured that may be causing the problem so I swapped the executable for Godot 3.2.3 stable. With the release template the segmentation fault still occurred but with the debug template the segmentation fault stopped but I got the errors below when opening the build menu:

SCRIPT ERROR: on_resource: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:108.
SCRIPT ERROR: update_info: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:59.
SCRIPT ERROR: on_resource: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:108.
SCRIPT ERROR: update_info: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:59.
SCRIPT ERROR: on_resource: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:108.
SCRIPT ERROR: update_info: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:59.
SCRIPT ERROR: on_resource: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:108.
SCRIPT ERROR: update_info: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:59.
SCRIPT ERROR: on_resource: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:108.
SCRIPT ERROR: update_info: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:59.
SCRIPT ERROR: on_resource: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:108.
SCRIPT ERROR: update_info: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:59.
SCRIPT ERROR: on_resource: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:108.
SCRIPT ERROR: update_info: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:59.
SCRIPT ERROR: on_resource: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:108.
SCRIPT ERROR: update_info: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:59.
SCRIPT ERROR: on_resource: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:108.
SCRIPT ERROR: update_info: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:59.
SCRIPT ERROR: on_resource: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:108.
SCRIPT ERROR: update_info: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:59.
SCRIPT ERROR: on_resource: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:108.
SCRIPT ERROR: update_info: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:59.
SCRIPT ERROR: on_resource: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:108.
SCRIPT ERROR: update_info: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:59.
SCRIPT ERROR: on_resource: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:108.
SCRIPT ERROR: update_info: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:59.
SCRIPT ERROR: on_resource: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:108.
SCRIPT ERROR: update_info: Attempt to call function 'free' in base 'null instance' on a null instance.
   At: res://scripts/craft_info.gdc:59.

I encountered some other errors using 3.2.3 but I'll assume that they are because of the differences between versions.

If you run the game with Godot 3.2.3, build some buildings, save, reopen the game with Godot 3.2.4 Beta 1, load the saved game and open the workers menu then it causes what appears to be the same segmentation fault.

I tried it again with the official Godot 3.2.4 Beta 1 debug template and I get the same errors.

I have a similar issue with the 0.4 demo build on Linux: The game crashes when I try to open the build menu, but with a different error:

ERROR: get_as_text: Condition "!f" is true. Returned: String()
   At: core/bind/core_bind.cpp:2106.
ERROR: call: Error parsing JSON at line 0:
   At: modules/gdscript/gdscript_functions.cpp:1268.
WARNING: set_enabled_focus_mode: BaseButton's Enabled Focus Mode property has been deprecated due to redundancy and will be removed in Godot 4.0. Please use Control.set_focus_mode instead.
   At: scene/gui/base_button.cpp:329.