DS-Homebrew / nds-bootstrap

Boot an nds file
https://wiki.ds-homebrew.com/nds-bootstrap/
GNU General Public License v3.0
1.17k stars 75 forks source link

In-game menu freezes when opening #1671

Open amitkulk123 opened 8 months ago

amitkulk123 commented 8 months ago

Game Console(s) used

Launch Method

Launched any game via SD card. Not sure about SCFG locked/unlocked

Version used

Latest release v1.2.0

Game tested/used/applicable

Pokemon Platinum, Pokemon Mystery Dungeon Explorers of Sky, osu! tatakae ouendan

Expected Behavior

The in-game menu should open normally.

Actual Behavior

The in-game menu freezes upon opening and I can't navigate it or close it. This happens when opening/closing several times.

Steps to reproduce

Open and close the menu several times and eventually it will display the menu but it'll freeze so you can't navigate or close it.

nds-bootstrap.ini

[NDS-BOOTSTRAP]
NDS_PATH = sd:/roms/nds/Osu! Tatakae! Ouendan (Japan).nds
SAV_PATH = sd:/roms/nds/saves/Osu! Tatakae! Ouendan (Japan).sav
BOOST_CPU = 0
DEBUG = 0
LOCK_ARM9_SCFG_EXT = 0
LOGGING = 1
B4DS_MODE = 0
ROMREAD_LED = 0
DMA_ROMREAD_LED = -1
PRECISE_VOLUME_CONTROL = 0
SDNAND = 1
MACRO_MODE = 0
SLEEP_MODE = 1
SOUND_FREQ = 1
CONSOLE_MODEL = 2
HOTKEY = 284
CACHE_FAT_TABLE = 0
BOOST_VRAM = 0
CARD_READ_DMA = 1
ASYNC_CARD_READ = 0
DSI_MODE = 1
SWI_HALT_HOOK = 1
EXTENDED_MEMORY = 0
DONOR_SDK_VER = 0
PATCH_MPU_REGION = 0
PATCH_MPU_SIZE = 0
LANGUAGE = -1
REGION = -1
RAM_DRIVE_PATH = sd:/null.img
GUI_LANGUAGE = en
USE_ROM_REGION = 1
FORCE_SLEEP_PATCH = 0
AP_FIX_PATH = 
HOMEBREW_ARG =

Logs

Loading the NDS file... Header CRC is valid! findModuleParamsOffset: Module params offset found Module params offset: 02000B18 sdk_version: 02017530 arm9 is compressed Secure area already decrypted Switched to NTR mode BIOS Cloneboot detected patchCardNds

findCardIrqEnableOffset: irq enable found

cardIrqEnable location : 02007C80

startOffset : 02000000

findMpuStartOffset: Mpu init found

Mpu start: 02000A40

findMpuDataOffset: Mpu data found

Mpu data: 02000AD4

Mpu init: 0200A214

findMpuDataOffsetAlt: Mpu data found

Mpu data alt: 0200A0A0

findMpuStartOffset: Mpu init found

Mpu start 2: 02000A48

findMpuDataOffset: Mpu data found

Mpu data 2: 02000AD8

Mpu init 2: 0200A21C

findWaitCpuCyclesOffset: Wait CPU cycles found

waitCpuCycles location : 0200AB18

findCardReadEndOffsetThumb: ARM9 Card read end thumb not found

findCardReadEndOffsetType0: ARM9 Card read end (type 0) short found: 020108AC

findCardReadStartOffsetThumb: ARM9 Card read start thumb not found ARM9 Card read start thumb alt not found

findCardReadStartOffsetType0: ARM9 Card read start (type 0) found

cardRead location : 020107B4 03700000

findCardPullOutOffset: Card pull out handler SDK 2 elaborate found

cardPullOut location : 02010E8C

findCardIdEndOffset: Card ID end not found

patchCardSetDma findCardSetDma cardSetDmaSignatureValue1 found 020108AC : 04100010 cardSetDmaSignatureValue1 found 02010AC8 : 04100010 cardSetDmaSignatureValue2 found 02010AD0 : 040001A4 cardSetDmaEnd found 02010AD0 : 040001A4 cardSetDmaSignatureStart used: cardSetDma found

NDMA CARD SET METHOD ACTIVE cardSetDma location : 02010A7C

findCardReadDmaEndOffset: Card read DMA end found: 020109F8

findCardEndReadDma

offsetDmaHandler found 02010A04 : 02010A08 cardEndReadDma found

NDMA CARD READ METHOD ACTIVE cardEndReadDma location : 02010A48

findResetOffset Reset found: 0200AB38 Reset constant found: 0200ABB4 Reset found

reset location : 0200AB38

ERR_NONE

findSleepPatchOffset: Sleep patch found

Sleep location : 0238D918

findCardIrqEnableOffset: irq enable found

cardIrqEnable location : 02383918

findCardCheckPullOutOffset: Card check pull out not found

forwardedRelocStartAddr 02380158 vAddrOfRelocSrc 02380170 Relocation src: 02380170 Relocation dst: 037F8000 RAM mirror check location : 0238011C

Arm7 (patch v1) cardReadEndAddr: 0238B9BC cardstructAddr: 03809480 readCacheEnd: 0238BADC JumpTableFunc: 0238BAE0 Retry the search JumpTableFunc: 0238BB78 specificWramAddr: 03802E5C someAddr_799C: 0238B534 Eeprom page erase: 0238BB88 Eeprom verify: 0238BBA4 Eeprom page write: 0238BBC0 Eeprom page prog: 0238BBDC Eeprom read: 0238BBF8 Card read: 0238BC18 Card id: 0238BC24 findSwi12Offset: swi 0x12 call found

findSwiGetPitchTableOffset: swiGetPitchTable SDK <= 2 call not found swiGetPitchTable SDK <= 2 call alt 1 not found swiGetPitchTable SDK <= 2 call alt 2 not found swiGetPitchTable SDK <= 2 call alt 3 not found swiGetPitchTable SDK <= 2 call alt 4 not found swiGetPitchTable SDK <= 2 call alt 5 not found swiGetPitchTable SDK <= 2 call alt 6 not found swiGetPitchTable SDK <= 2 call alt 7 not found swiGetPitchTable SDK <= 2 call alt 8 not found swiGetPitchTable SDK <= 2 call alt 9 found

swi12 location : 0238BF64

swiGetPitchTable location : 0238702C

ERR_NONE

Card patch successful

hookNdsRetailArm7 hookLocation arm7: 0238FAC0

ERR_NONE handlerStartSig 0208A6C0 handlerEndSig 0208A700 tableAddr 027C0004 returnAddr 01FF8058 hookLocation arm9: 027C0004

chipID: 00003FC2

Other notes

No response

Will you be available for future issues and/or replies?

Yes

RocketRobz commented 8 months ago

I've encountered that same issue, but didn't (and still don't) know how to fix it.

RocketRobz commented 8 months ago

v1.2.1 should hopefully fix the issue. If it does not fix it, then idk.

amitkulk123 commented 8 months ago

v1.2.1 should hopefully fix the issue. If it does not fix it, then idk.

I just tried v1.2.1 but it didn't fix the issue for me unfortunately. Closing the menu or putting the system to sleep while the menu is open works fine; it's only when opening the menu where it freezes. That too it happens completely randomly.