Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash a few seconds after launch (10s perhaps) #904

Open
1 of 2 tasks
andrewschott opened this issue Dec 24, 2024 · 0 comments
Open
1 of 2 tasks

Crash a few seconds after launch (10s perhaps) #904

andrewschott opened this issue Dec 24, 2024 · 0 comments
Labels
bug Something isn't working crash This issue results in a crash, higher priority

Comments

@andrewschott
Copy link

Description of the crash:

The appimage works fine. However my compilations are the issue here. Built without errors (numerous warnings though). Upon launch of the game, I have perhaps as long as 10s before the game will crash. Irrespective of what I am doing. Initially I got it at the new save slot creation. After some troubleshooting, I noticed sitting and doing nothing would yield a game crash. Below is the terminal output from the launch to crash.

Can you reproduce? If so please list the steps:

  • No, I cannot reproduce this crash
  • Yes, here are the steps to reproduce the crash:
  1. Load up.
  2. A few momets later, segfault

Logs:

Here is what the terminal spits out:

./2s2h.elf 
[2024-12-23 22:22:33.507] [/home/andrew/workspace/git_repos/2ship2harkinian/libultraship/src/resource/archive/ArchiveManager.cpp:152] [info] Reading archive: /home/andrew/workspace/git_repos/2ship2harkinian/build-cmake/mm/./mm.o2r
[2024-12-23 22:22:33.543] [/home/andrew/workspace/git_repos/2ship2harkinian/libultraship/src/resource/archive/ArchiveManager.cpp:182] [info] Adding Archive /home/andrew/workspace/git_repos/2ship2harkinian/build-cmake/mm/./mm.o2r to Archive Manager
[2024-12-23 22:22:33.567] [/home/andrew/workspace/git_repos/2ship2harkinian/libultraship/src/resource/archive/ArchiveManager.cpp:152] [info] Reading archive: /home/andrew/workspace/git_repos/2ship2harkinian/build-cmake/mm/2ship.o2r
[2024-12-23 22:22:33.567] [/home/andrew/workspace/git_repos/2ship2harkinian/libultraship/src/resource/archive/O2rArchive.cpp:28] [trace] Failed to find file version in zip archive  /home/andrew/workspace/git_repos/2ship2harkinian/build-cmake/mm/2ship.o2r.
[2024-12-23 22:22:33.567] [/home/andrew/workspace/git_repos/2ship2harkinian/libultraship/src/resource/archive/ArchiveManager.cpp:182] [info] Adding Archive /home/andrew/workspace/git_repos/2ship2harkinian/build-cmake/mm/2ship.o2r to Archive Manager
[22:22:33.975] [BenPort.cpp:169] [info] Starting 2 Ship 2 Harkinian version Satoko Charlie (1.1.2)
[22:22:34.673] [os.cpp:27] [error] Failed add SDL game controller mappings from "./gamecontrollerdb.txt" (Invalid RWops)
[22:22:37.207] [z_demo.c:1580] [info] Cutscene_HandleConditionalTriggers: entrance: 7168, cutsceneIndex: 0xFFFA
[22:22:37.209] [GameInteractor.cpp:169] [debug] OnFlagSet: flagType: 1, flag: 6976
[22:22:37.209] [GameInteractor.cpp:169] [debug] OnFlagSet: flagType: 1, flag: 7040
[22:22:37.209] [GameInteractor.cpp:169] [debug] OnFlagSet: flagType: 1, flag: 7169
[22:22:37.209] [GameInteractor.cpp:169] [debug] OnFlagSet: flagType: 1, flag: 7170
[22:22:37.209] [GameInteractor.cpp:169] [debug] OnFlagSet: flagType: 1, flag: 7172
File Name scenes/nonmq/SPOT00/SPOT00_room_00
[22:22:37.209] [GameInteractor.cpp:178] [debug] OnFlagUnset: flagType: 1, flag: 6976
[22:22:37.209] [GameInteractor.cpp:178] [debug] OnFlagUnset: flagType: 1, flag: 7040
[22:22:37.209] [GameInteractor.cpp:178] [debug] OnFlagUnset: flagType: 1, flag: 7169
[22:22:37.209] [GameInteractor.cpp:178] [debug] OnFlagUnset: flagType: 1, flag: 7170
[22:22:37.209] [GameInteractor.cpp:178] [debug] OnFlagUnset: flagType: 1, flag: 7172
[22:22:37.210] [GameInteractor.cpp:65] [debug] OnRoomInit: sceneId: 8, roomNum: 0
[22:22:37.210] [GameInteractor.cpp:72] [debug] AfterRoomSceneCommands: sceneId: 8, roomNum: 0
[22:22:37.210] [GameInteractor.cpp:58] [debug] OnSceneInit: sceneId: 8, spawnNum: 0

(zenity:2606204): Gtk-WARNING **: 22:22:55.977: Unknown key gtk-modules in /home/andrew/.config/gtk-4.0/settings.ini
[22:22:57.822] [CrashHandler.cpp:72] [critical] Signal: 11
INVALID ACCESS TO STORAGE
Registers:
RAX: 0x0000000069FA2FFB
RDI: 0xF969FA2FFB11FC1B
RSI: 0x00000000FFFFFFFF
RDX: 0x0000000000D98246
RCX: 0x0000000000000000
R8:  0x0000000000000000
R9:  0x0000000000000000
R10: 0x0000000000000000
R11: 0x000000002D766D50
RSP: 0x00007FFFBBC14CA8
RBX: 0x00000000DF000000
RBP: 0x00007FFFBBC14CA8
R12: 0x0000000000000001
R13: 0x0000000000000000
R14: 0x00007FFA8EC05000
R15: 0x0000000002DAB838
RIP: 0x0000000000D94B77
EFL: 0x0000000000010202
Traceback:
1 /lib64/libc.so.6(+0x1a090) [0x7ffa8e311090]
2 ./2s2h.elf() [0xd94b77]
3 gfx_set_c_img_handler_rdp(F3DGfx**) (+0x27)
4 ./2s2h.elf() [0xd98702]
5 gfx_run(Gfx*, std::unordered_map<MtxS*, MtxF, std::hash<MtxS*>, std::equal_to<MtxS*>, std::allocator<std::pair<MtxS* const, MtxF> > > const&) (+0x488)
6 RunCommands(Gfx*, std::vector<std::unordered_map<MtxS*, MtxF, std::hash<MtxS*>, std::equal_to<MtxS*>, std::allocator<std::pair<MtxS* const, MtxF> > >, std::allocator<std::unordered_map<MtxS*, MtxF, std::hash<MtxS*>, std::equal_to<MtxS*>, std::allocator<std::pair<MtxS* const, MtxF> > > > > const&) (+0x5D)
7 Graph_ProcessGfxCommands (+0x2B3)
8 Graph_ExecuteAndDraw (+0x438)
9 Graph_Update (+0x3A)
10 RunFrame (+0x10F)
11 Graph_ThreadEntry (+0x18)
12 main (+0x104)
13 /lib64/libc.so.6(+0x3248) [0x7ffa8e2fa248]
14 __libc_start_main (+0x8B)
15 _start (+0x25)
,

System Information:

  • OS: Linux - Fedora 41 x86_64 Workstation, i3wm (Xorg)
  • GFX Backend: OpenGL
  • Game Version: Git clone just prior to this bug report to ensure I did all the steps correctly from the build guide.
  • Rom Version: NTSC-U 1.0 (triple checked the hash)

Additional Information:

I noticed the "INVALID ACCESS TO STORAGE", fwiw, I am hosting my /home on an lvm2 partition. Unsure if that would ever matter. I am also compiling and running as my normal user.

I also noticed the SDL controller issue. The game does see my controller and it works fine until the game crashes. Its a PS5 controller linked via bluetooth. Loading the game without the controller linked to the computer still yields a crash.

For squirts and giggles I tried using windowed and fullscreen, no change, same timeframe to a crash.

I would love to know why my compiles fail. I understand missing libs and all, but last I recall appimages need the local libraries present still, so I should fail if there is a version mismatch, right?

Any help here would be greatly appreciated. Starship and Shipwright built fine (literally an hour or so before this venture) and run quite well (thanks!).

@andrewschott andrewschott added bug Something isn't working crash This issue results in a crash, higher priority labels Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crash This issue results in a crash, higher priority
Projects
None yet
Development

No branches or pull requests

1 participant