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

Source compiled 1st_read.bin results in crash during openMenu execution #50

Open
savaughn opened this issue Sep 19, 2024 · 6 comments
Open

Comments

@savaughn
Copy link

savaughn commented Sep 19, 2024

Describe the bug
Upon launching openMenu on both real hardware and emulator, the application crashes when using 1st_read.bin compiled from source.

I have KOS toolchain installed and I can successfully build individual homebrew applications and launch them on both emulator and hardware.

If I swap back in your release 1st_read.bin, then it works as expected. Any idea as to what I could be doing wrong when generating the 1st_read.bin? I haven't made any source code changes. I've tried on both macOS and ubuntu without success.

To Reproduce
Steps to reproduce the behavior:

  1. on master branch
  2. run make
  3. copy resulting 1st_read.bin to menu_data
  4. load new openMenu with GDMenuCardManager

Expected behavior
openMenu launches with compiled image the same as release image.

Screenshots
Flycast log:

00:40:501 hw/mem/addrspace.cpp:431 N[VMEM]: Info: nvmem is enabled
00:40:505 hw/mem/addrspace.cpp:467 N[VMEM]: BASE 0x288010000 RAM(16 MB) 0x294010000 VRAM64(8 MB) 0x28c010000 ARAM(2 MB) 0x2a8010000
00:40:509 emulator.cpp:54 N[BOOT]: Game ID is [NEODC_1]
00:40:515 emulator.cpp:488 N[BOOT]: Did not load BIOS, using reios
00:40:515 emulator.cpp:54 N[BOOT]: Game ID is [NEODC_1]
00:40:575 reios/reios.cpp:622 N[REIOS]: -----------------
00:40:575 reios/reios.cpp:623 N[REIOS]: REIOS: Booting up
00:40:576 reios/reios.cpp:624 N[REIOS]: -----------------
00:42:587 hw/sh4/interpr/sh4_opcodes.cpp:935 W[INTERPRETER]: TRAP #A4

Desktop (please complete the following information):

  • OS: MacOS 13.6, latest KOS
  • OS: Ubuntu 22.04 LTS

Additional context
issue on my fork: savaughn#1

@savaughn savaughn changed the title Compiling 1st_read.bin results in crash during openMenu execution Source compiled 1st_read.bin results in crash during openMenu execution Sep 19, 2024
@savaughn
Copy link
Author

On hardware, it will reboot to dc logo.
On emulator, I see this error.
image

@kaiopiola
Copy link

got something like this here, I can compile it, run it with card manager and save changes, but console sucks on sega logo

@savaughn
Copy link
Author

I haven't made any further progress on this, but I was working on SAROO and had similar issues. Turned out that running the latest toolchain wasn't compatible with the project. You might try downgrading KOS to at least 3 years ago.

@kaiopiola
Copy link

hey! just downloaded the latest build source code (from 2021 08 dec) and also the megavolt fork, but in both cases it keeps getting me larger files, and im getting crashes and stucks at sega logo.
I used only the "make" command after building the docker container, it made the 1st_read.bin and some themeMenu.elf, no theme or font folders, just this and it keeps don't working, even if I put the same version folders on my menu data on card manager

am I building it wrong?

@kaiopiola
Copy link

ARG VER="gcc-9"

FROM haydenkow/dcdev-kos-toolchain:${VER}```


on the Dockerfile we already got a version gcc-9 from 3 years ago setted 

@savaughn
Copy link
Author

Digging through megavolt85 fork, I found that he has a KOS patch in root directory. May be related?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants