OpenChamp / client

The Godot Project for OpenChamp
GNU General Public License v3.0
127 stars 18 forks source link

crash when 2 players loaded on Release 0.0.4 #82

Closed ace510 closed 4 months ago

ace510 commented 4 months ago

setup: load OpenChampServer.x86_64

load two instances of OpenChamp.x86_64

expected result: game loads

actual result: get error

SCRIPT ERROR: Parse Error: Could not parse global class "ggsSetting" from "res://addons/ggs/classes/resources/ggs_setting.gd".
          at: GDScript::reload (res://ui/settings_menu/settings_menu.gd:52)
SCRIPT ERROR: Parse Error: Could not parse global class "ggsSetting" from "res://addons/ggs/classes/resources/ggs_setting.gd".
          at: GDScript::reload (res://ui/settings_menu/settings_menu.gd:46)
ERROR: Failed to load script "res://ui/settings_menu/settings_menu.gd" with error "Parse error".
   at: load (modules/gdscript/gdscript.cpp:2726)
ERROR: Attempt to open script 'res://addons/sliderlabel/sliderlabel.gd' resulted in error 'File not found'.
   at: load_source_code (modules/gdscript/gdscript.cpp:1025)
ERROR: Failed loading resource: res://addons/sliderlabel/sliderlabel.gd. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:274)
ERROR: Can't load dependency: res://addons/sliderlabel/sliderlabel.gd.
   at: parse_variant (core/io/resource_format_binary.cpp:459)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:503)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:490)
ERROR: Failed loading resource: res://.godot/exported/1801899522/export-57987151cc7808172b41e59f751472d3-settings_menu.scn. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:274)
ERROR: Can't load dependency: res://ui/settings_menu/settings_menu.tscn.
   at: parse_variant (core/io/resource_format_binary.cpp:459)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:503)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:490)
ERROR: Failed loading resource: res://.godot/exported/1801899522/export-c6a2a72f8954216419774581832b2638-test_ui.scn. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:274)
ERROR: Can't load dependency: res://ui/test_ui.tscn.
   at: parse_variant (core/io/resource_format_binary.cpp:459)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:503)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:490)
ERROR: Failed loading resource: res://.godot/exported/1801899522/export-70646380df289afbd2396c2e1e33a700-bridge.scn. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:274)
Map:<Node#26541556984>

Additional info:

Release 0.0.4

OS: Fedora 40 (XFCE)

Terminal: xfce4-terminal 1.1.3

konradybcio commented 4 months ago

Please use three backticks to make the error log legible..

Have you opened the project in the editor at least once, like one of the lines suggests? You can do so with godot . -e

ace510 commented 4 months ago
godot . -e
Godot Engine v4.2.2.stable.fedora.15073afe3 - https://godotengine.org
OpenGL API 3.3.0 NVIDIA 390.157 - Compatibility - Using Device: NVIDIA - GeForce GTS 450
[{ "id": "0", "peer_id": 1280558651, "name": "Player", "champ": "archer", "team": 0 }, { "id": "0", "peer_id": 601500286, "name": "Player", "champ": "archer", "team": 0 }]
SCRIPT ERROR: Parse Error: Could not parse global class "ggsSetting" from "res://addons/ggs/classes/resources/ggs_setting.gd".
          at: GDScript::reload (res://ui/settings_menu/settings_menu.gd:52)
SCRIPT ERROR: Parse Error: Could not parse global class "ggsSetting" from "res://addons/ggs/classes/resources/ggs_setting.gd".
          at: GDScript::reload (res://ui/settings_menu/settings_menu.gd:46)
ERROR: Failed to load script "res://ui/settings_menu/settings_menu.gd" with error "Parse error".
   at: load (modules/gdscript/gdscript.cpp:2726)
ERROR: Attempt to open script 'res://addons/sliderlabel/sliderlabel.gd' resulted in error 'File not found'.
   at: load_source_code (modules/gdscript/gdscript.cpp:1025)
ERROR: Failed loading resource: res://addons/sliderlabel/sliderlabel.gd. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:274)
ERROR: Can't load dependency: res://addons/sliderlabel/sliderlabel.gd.
   at: parse_variant (core/io/resource_format_binary.cpp:459)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:503)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:490)
ERROR: Failed loading resource: res://.godot/exported/1801899522/export-57987151cc7808172b41e59f751472d3-settings_menu.scn. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:274)
ERROR: Can't load dependency: res://ui/settings_menu/settings_menu.tscn.
   at: parse_variant (core/io/resource_format_binary.cpp:459)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:503)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:490)
ERROR: Failed loading resource: res://.godot/exported/1801899522/export-c6a2a72f8954216419774581832b2638-test_ui.scn. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:274)
ERROR: Can't load dependency: res://ui/test_ui.tscn.
   at: parse_variant (core/io/resource_format_binary.cpp:459)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:503)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:490)
ERROR: Failed loading resource: res://.godot/exported/1801899522/export-70646380df289afbd2396c2e1e33a700-bridge.scn. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:274)
Map:<Node#26541556984>
fish: Job 1, './OpenChampServer.x86_64' terminated by signal SIGSEGV (Address boundary error)

similar if not identical message

ace510 commented 4 months ago

able to reproduce on Release 0.0.6

godot . -e
Godot Engine v4.2.2.stable.fedora.15073afe3 - https://godotengine.org
OpenGL API 3.3.0 NVIDIA 390.157 - Compatibility - Using Device: NVIDIA - GeForce GTS 450
[{ "id": "0", "peer_id": 1713261711, "name": "Player", "champ": "archer", "team": 0 }, { "id": "0", "peer_id": 1577749859, "name": "Player", "champ": "archer", "team": 0 }]
SCRIPT ERROR: Parse Error: Could not parse global class "ggsSetting" from "res://addons/ggs/classes/resources/ggs_setting.gd".
          at: GDScript::reload (res://ui/settings_menu/settings_menu.gd:52)
SCRIPT ERROR: Parse Error: Could not parse global class "ggsSetting" from "res://addons/ggs/classes/resources/ggs_setting.gd".
          at: GDScript::reload (res://ui/settings_menu/settings_menu.gd:46)
ERROR: Failed to load script "res://ui/settings_menu/settings_menu.gd" with error "Parse error".
   at: load (modules/gdscript/gdscript.cpp:2726)
ERROR: Attempt to open script 'res://addons/sliderlabel/sliderlabel.gd' resulted in error 'File not found'.
   at: load_source_code (modules/gdscript/gdscript.cpp:1025)
ERROR: Failed loading resource: res://addons/sliderlabel/sliderlabel.gd. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:274)
ERROR: Can't load dependency: res://addons/sliderlabel/sliderlabel.gd.
   at: parse_variant (core/io/resource_format_binary.cpp:459)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:503)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:490)
ERROR: Failed loading resource: res://.godot/exported/1801899522/export-57987151cc7808172b41e59f751472d3-settings_menu.scn. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:274)
ERROR: Can't load dependency: res://ui/settings_menu/settings_menu.tscn.
   at: parse_variant (core/io/resource_format_binary.cpp:459)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:503)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:490)
ERROR: Failed loading resource: res://.godot/exported/1801899522/export-c6a2a72f8954216419774581832b2638-test_ui.scn. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:274)
ERROR: Can't load dependency: res://ui/test_ui.tscn.
   at: parse_variant (core/io/resource_format_binary.cpp:459)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:503)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:490)
ERROR: Failed loading resource: res://.godot/exported/1801899522/export-70646380df289afbd2396c2e1e33a700-bridge.scn. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:274)
Map:<Node#28370273614>
fish: Job 1, './OpenChampServer.x86_64' terminated by signal SIGSEGV (Address boundary error)
ace510 commented 4 months ago

able to reproduce on Release 0.0.7

godot -e .
Godot Engine v4.2.2.stable.fedora.15073afe3 - https://godotengine.org
OpenGL API 3.3.0 NVIDIA 390.157 - Compatibility - Using Device: NVIDIA - GeForce GTS 450
[{ "id": "0", "peer_id": 1408114483, "name": "Player", "champ": "archer", "team": 0 }, { "id": "0", "peer_id": 2044007970, "name": "Player", "champ": "archer", "team": 0 }]
SCRIPT ERROR: Parse Error: Could not parse global class "ggsSetting" from "res://addons/ggs/classes/resources/ggs_setting.gd".
          at: GDScript::reload (res://ui/settings_menu/settings_menu.gd:52)
SCRIPT ERROR: Parse Error: Could not parse global class "ggsSetting" from "res://addons/ggs/classes/resources/ggs_setting.gd".
          at: GDScript::reload (res://ui/settings_menu/settings_menu.gd:46)
ERROR: Failed to load script "res://ui/settings_menu/settings_menu.gd" with error "Parse error".
   at: load (modules/gdscript/gdscript.cpp:2726)
ERROR: Attempt to open script 'res://addons/sliderlabel/sliderlabel.gd' resulted in error 'File not found'.
   at: load_source_code (modules/gdscript/gdscript.cpp:1025)
ERROR: Failed loading resource: res://addons/sliderlabel/sliderlabel.gd. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:274)
ERROR: Can't load dependency: res://addons/sliderlabel/sliderlabel.gd.
   at: parse_variant (core/io/resource_format_binary.cpp:459)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:503)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:490)
ERROR: Failed loading resource: res://.godot/exported/1801899522/export-57987151cc7808172b41e59f751472d3-settings_menu.scn. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:274)
ERROR: Can't load dependency: res://ui/settings_menu/settings_menu.tscn.
   at: parse_variant (core/io/resource_format_binary.cpp:459)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:503)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:490)
ERROR: Failed loading resource: res://.godot/exported/1801899522/export-c6a2a72f8954216419774581832b2638-test_ui.scn. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:274)
ERROR: Can't load dependency: res://ui/test_ui.tscn.
   at: parse_variant (core/io/resource_format_binary.cpp:459)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:503)
ERROR: Error when trying to parse Variant.
   at: parse_variant (core/io/resource_format_binary.cpp:490)
ERROR: Failed loading resource: res://.godot/exported/1801899522/export-70646380df289afbd2396c2e1e33a700-bridge.scn. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:274)
Map:<Node#28403828046>
fish: Job 1, './OpenChampServer.x86_64' terminated by signal SIGSEGV (Address boundary error)
noah1510 commented 4 months ago

At the moment the focus is on porting everything to godot 4.3. As a part of that stuff like this should get fixed.

ace510 commented 4 months ago

Release 0.1.2 seems to have addressed the issue, no longer seeing the error!