Skip to content

Invisible player sprites - memory leak? #779

Closed

Description

@Trickiy

Describe the issue

When I try and play any episode sometimes player sprites will not be visible even in gameplay.
image

A type of bug

Native bug

Does this issue happens always or randomly?

Happens randomly, rare

Version

1.3.7-dev

Version Hash

#bb07af2

Platform

3DS

Processor architecture

None

Log file (if presented)

No response

Example Case

No response

Recording

No response

Vanilla Recording

No response

Additional context

No response

Activity

  1. added
    NEW-BUG
    on Aug 13, 2024
  2. added
    native bug
    and removed
    NEW-BUG
    on Aug 13, 2024
  3. added this to the Version 1.3.7 milestone on Aug 13, 2024
  4. ds-sloth commented on Aug 13, 2024

    @ds-sloth
    Collaborator

    Thanks a lot for the report!

    There are two possible explanations:
    (1) The game is running out of texture memory -- this is unfortunate and we can keep pushing the game's texture memory capacity up (see 32e3bb3 recently pushing it from 24MB to 28MB), but this will boost the risk of instability in the rest of the game engine. I don't think that I would want to boost the texture memory past 32MB. The 3DS has more RAM than Wii but it certainly does not have unlimited RAM.
    (2) Something is going wrong in the game's code intended to check for custom character sprites in the episode. Does this episode include custom character sprites?

    Please share your logs so I can understand this issue further.

  5. Trickiy commented on Aug 13, 2024

    @Trickiy
    Author

    I am not using any custome sprites there all vanilla sprites. I haven't gotten to making my own yet but are probably buggy anyways. Here's the logs:
    00:00.018 [Info]: Application started>
    00:00.033 [Info]: TheXTech 1.3.7-dev (branch main, commit bb07af2)
    00:00.048 [Info]: Initialized XRender with 26387456 bytes free
    00:00.329 [Warning]: File romfs:/graphics/ui/MenuGFX1-3ds.t3x doesn't exist, trying to load generic one...
    00:00.342 [Warning]: File romfs:/graphics/ui/MenuGFX2-3ds.t3x doesn't exist, trying to load generic one...
    00:00.365 [Warning]: File romfs:/graphics/ui/MenuGFX3-3ds.t3x doesn't exist, trying to load generic one...
    00:00.493 [Warning]: Permanently failed to load romfs:/graphics/ui/Backdrop.t3x, 23527168 free
    00:00.507 [Warning]: Error: 2 (No such file or directory)
    00:00.516 [Warning]: Error loading of image file:
    romfs:/graphics/ui/Backdrop.png
    Reason: file not exist.
    00:00.525 [Warning]: Failed to load texture: romfs:/graphics/ui/Backdrop.png...
    00:04.275 [Info]: Will load SFX romfs:/sound/player-grow.ogg.wav as a multi-music
    00:04.395 [Info]: Will load SFX romfs:/sound/player-died.ogg.wav as a multi-music
    00:04.527 [Info]: Will load SFX romfs:/sound/item-dropped.ogg.wav as a multi-music
    00:05.140 [Info]: Will load SFX romfs:/sound/level-win.ogg.wav as a multi-music
    00:05.164 [Info]: Will load SFX romfs:/sound/boss-beat.ogg.wav as a multi-music
    00:05.194 [Info]: Will load SFX romfs:/sound/dungeon-win.ogg.wav as a multi-music
    00:05.219 [Info]: Will load SFX romfs:/sound/bullet-bill.ogg.wav as a multi-music
    00:05.664 [Info]: Will load SFX romfs:/sound/level-select.ogg.wav as a multi-music
    00:05.883 [Info]: Will load SFX romfs:/sound/key.ogg.wav as a multi-music
    00:06.065 [Info]: Will load SFX romfs:/sound/racoon.ogg.wav as a multi-music
    00:06.508 [Info]: Will load SFX romfs:/sound/smb2-exit.ogg.wav as a multi-music
    00:06.667 [Info]: Will load SFX romfs:/sound/npc-fireball.ogg.wav as a multi-music
    00:06.691 [Info]: Will load SFX romfs:/sound/fireworks.ogg.wav as a multi-music
    00:06.715 [Info]: Will load SFX romfs:/sound/bowser-killed.ogg.wav as a multi-music
    00:06.740 [Info]: Will load SFX romfs:/sound/game-beat.ogg.wav as a multi-music
    00:06.768 [Info]: Will load SFX romfs:/sound/door.ogg.wav as a multi-music
    00:07.235 [Info]: Will load SFX romfs:/sound/got-star.ogg.wav as a multi-music
    00:07.518 [Info]: Will load SFX romfs:/sound/ring.ogg.wav as a multi-music
    00:07.637 [Info]: Will load SFX romfs:/sound/smw-checkpoint.ogg.wav as a multi-music
    00:07.738 [Info]: Will load SFX romfs:/sound/smw-exit.ogg.wav as a multi-music
    00:07.885 [Info]: Will load SFX romfs:/sound/wart-bubble.ogg.wav as a multi-music
    00:07.911 [Info]: Will load SFX romfs:/sound/wart-die.ogg.wav as a multi-music
    00:08.185 [Info]: Will load SFX romfs:/sound/sm-glass.ogg.wav as a multi-music
    00:08.321 [Info]: Will load SFX romfs:/sound/sm-cry.ogg.wav as a multi-music
    00:08.346 [Info]: Will load SFX romfs:/sound/sm-explosion.ogg.wav as a multi-music
    00:08.898 [Info]: Will load SFX romfs:/sound/zelda-died.ogg.wav as a multi-music
    00:09.073 [Info]: Will load SFX romfs:/sound/zelda-item.ogg.wav as a multi-music
    00:09.096 [Info]: Will load SFX romfs:/sound/zelda-key.ogg.wav as a multi-music
    00:09.635 [Info]: Will load SFX romfs:/sound/timeout.ogg.wav as a multi-music
    00:10.077 [Info]: Will load SFX romfs:/sound/larry-shell.ogg.wav as a multi-music
    00:10.100 [Info]: Will load SFX romfs:/sound/larry-die.ogg.wav as a multi-music
    00:10.124 [Info]: Will load SFX romfs:/sound/ludwig-die.ogg.wav as a multi-music
    00:10.311 [Info]: Loaded sound effects: dumped=70; as music=32
    06:08.218 [Warning]: Unknown music alias 'wmusic0'
    08:43.338 [Warning]: Unknown music alias 'wmusic0'
    08:49.672 [Warning]: Unknown music alias 'wmusic0'
    08:50.441 [Warning]: Unknown music alias 'music0'
    08:52.079 [Warning]: Unknown music alias 'music0'
    08:53.049 [Warning]: Unknown music alias 'music0'
    08:53.567 [Warning]: Unknown music alias 'music0'
    10:01.008 [Warning]: Unknown music alias 'wmusic0'
    10:18.590 [Warning]: Permanently failed to load romfs:/graphics/peach/peach-1.t3x, 4701440 free
    10:18.599 [Warning]: Error: 0 (Success)

    00:00.014 [Info]: Application started>
    00:00.031 [Info]: TheXTech 1.3.7-dev (branch main, commit bb07af2)
    00:00.055 [Info]: Initialized XRender with 26387456 bytes free
    00:00.334 [Warning]: File romfs:/graphics/ui/MenuGFX1-3ds.t3x doesn't exist, trying to load generic one...
    00:00.346 [Warning]: File romfs:/graphics/ui/MenuGFX2-3ds.t3x doesn't exist, trying to load generic one...
    00:00.369 [Warning]: File romfs:/graphics/ui/MenuGFX3-3ds.t3x doesn't exist, trying to load generic one...
    00:00.497 [Warning]: Permanently failed to load romfs:/graphics/ui/Backdrop.t3x, 23527168 free
    00:00.509 [Warning]: Error: 2 (No such file or directory)
    00:00.517 [Warning]: Error loading of image file:
    romfs:/graphics/ui/Backdrop.png
    Reason: file not exist.
    00:00.525 [Warning]: Failed to load texture: romfs:/graphics/ui/Backdrop.png...
    00:04.281 [Info]: Will load SFX romfs:/sound/player-grow.ogg.wav as a multi-music
    00:04.401 [Info]: Will load SFX romfs:/sound/player-died.ogg.wav as a multi-music
    00:04.533 [Info]: Will load SFX romfs:/sound/item-dropped.ogg.wav as a multi-music
    00:05.146 [Info]: Will load SFX romfs:/sound/level-win.ogg.wav as a multi-music
    00:05.170 [Info]: Will load SFX romfs:/sound/boss-beat.ogg.wav as a multi-music
    00:05.200 [Info]: Will load SFX romfs:/sound/dungeon-win.ogg.wav as a multi-music
    00:05.224 [Info]: Will load SFX romfs:/sound/bullet-bill.ogg.wav as a multi-music
    00:05.670 [Info]: Will load SFX romfs:/sound/level-select.ogg.wav as a multi-music
    00:05.888 [Info]: Will load SFX romfs:/sound/key.ogg.wav as a multi-music
    00:06.071 [Info]: Will load SFX romfs:/sound/racoon.ogg.wav as a multi-music
    00:06.514 [Info]: Will load SFX romfs:/sound/smb2-exit.ogg.wav as a multi-music
    00:06.673 [Info]: Will load SFX romfs:/sound/npc-fireball.ogg.wav as a multi-music
    00:06.697 [Info]: Will load SFX romfs:/sound/fireworks.ogg.wav as a multi-music
    00:06.721 [Info]: Will load SFX romfs:/sound/bowser-killed.ogg.wav as a multi-music
    00:06.747 [Info]: Will load SFX romfs:/sound/game-beat.ogg.wav as a multi-music
    00:06.774 [Info]: Will load SFX romfs:/sound/door.ogg.wav as a multi-music
    00:07.241 [Info]: Will load SFX romfs:/sound/got-star.ogg.wav as a multi-music
    00:07.524 [Info]: Will load SFX romfs:/sound/ring.ogg.wav as a multi-music
    00:07.643 [Info]: Will load SFX romfs:/sound/smw-checkpoint.ogg.wav as a multi-music
    00:07.744 [Info]: Will load SFX romfs:/sound/smw-exit.ogg.wav as a multi-music
    00:07.891 [Info]: Will load SFX romfs:/sound/wart-bubble.ogg.wav as a multi-music
    00:07.916 [Info]: Will load SFX romfs:/sound/wart-die.ogg.wav as a multi-music
    00:08.192 [Info]: Will load SFX romfs:/sound/sm-glass.ogg.wav as a multi-music
    00:08.310 [Info]: Will load SFX romfs:/sound/sm-cry.ogg.wav as a multi-music
    00:08.335 [Info]: Will load SFX romfs:/sound/sm-explosion.ogg.wav as a multi-music
    00:08.897 [Info]: Will load SFX romfs:/sound/zelda-died.ogg.wav as a multi-music
    00:09.063 [Info]: Will load SFX romfs:/sound/zelda-item.ogg.wav as a multi-music
    00:09.085 [Info]: Will load SFX romfs:/sound/zelda-key.ogg.wav as a multi-music
    00:09.641 [Info]: Will load SFX romfs:/sound/timeout.ogg.wav as a multi-music
    00:10.084 [Info]: Will load SFX romfs:/sound/larry-shell.ogg.wav as a multi-music
    00:10.106 [Info]: Will load SFX romfs:/sound/larry-die.ogg.wav as a multi-music
    00:10.130 [Info]: Will load SFX romfs:/sound/ludwig-die.ogg.wav as a multi-music
    00:10.317 [Info]: Loaded sound effects: dumped=70; as music=32
    08:48.475 [Warning]: Unknown music alias 'music0'

    00:00.014 [Info]: Application started>
    00:00.030 [Info]: TheXTech 1.3.7-dev (branch main, commit bb07af2)
    00:00.053 [Info]: Initialized XRender with 26387456 bytes free
    00:00.335 [Warning]: File romfs:/graphics/ui/MenuGFX1-3ds.t3x doesn't exist, trying to load generic one...
    00:00.348 [Warning]: File romfs:/graphics/ui/MenuGFX2-3ds.t3x doesn't exist, trying to load generic one...
    00:00.372 [Warning]: File romfs:/graphics/ui/MenuGFX3-3ds.t3x doesn't exist, trying to load generic one...
    00:00.500 [Warning]: Permanently failed to load romfs:/graphics/ui/Backdrop.t3x, 23527168 free
    00:00.512 [Warning]: Error: 2 (No such file or directory)
    00:00.520 [Warning]: Error loading of image file:
    romfs:/graphics/ui/Backdrop.png
    Reason: file not exist.
    00:00.529 [Warning]: Failed to load texture: romfs:/graphics/ui/Backdrop.png...
    00:04.280 [Info]: Will load SFX romfs:/sound/player-grow.ogg.wav as a multi-music
    00:04.400 [Info]: Will load SFX romfs:/sound/player-died.ogg.wav as a multi-music
    00:04.532 [Info]: Will load SFX romfs:/sound/item-dropped.ogg.wav as a multi-music
    00:05.145 [Info]: Will load SFX romfs:/sound/level-win.ogg.wav as a multi-music
    00:05.168 [Info]: Will load SFX romfs:/sound/boss-beat.ogg.wav as a multi-music
    00:05.199 [Info]: Will load SFX romfs:/sound/dungeon-win.ogg.wav as a multi-music
    00:05.223 [Info]: Will load SFX romfs:/sound/bullet-bill.ogg.wav as a multi-music
    00:05.669 [Info]: Will load SFX romfs:/sound/level-select.ogg.wav as a multi-music
    00:05.887 [Info]: Will load SFX romfs:/sound/key.ogg.wav as a multi-music
    00:06.070 [Info]: Will load SFX romfs:/sound/racoon.ogg.wav as a multi-music
    00:06.514 [Info]: Will load SFX romfs:/sound/smb2-exit.ogg.wav as a multi-music
    00:06.672 [Info]: Will load SFX romfs:/sound/npc-fireball.ogg.wav as a multi-music
    00:06.696 [Info]: Will load SFX romfs:/sound/fireworks.ogg.wav as a multi-music
    00:06.719 [Info]: Will load SFX romfs:/sound/bowser-killed.ogg.wav as a multi-music
    00:06.743 [Info]: Will load SFX romfs:/sound/game-beat.ogg.wav as a multi-music
    00:06.773 [Info]: Will load SFX romfs:/sound/door.ogg.wav as a multi-music
    00:07.240 [Info]: Will load SFX romfs:/sound/got-star.ogg.wav as a multi-music
    00:07.523 [Info]: Will load SFX romfs:/sound/ring.ogg.wav as a multi-music
    00:07.642 [Info]: Will load SFX romfs:/sound/smw-checkpoint.ogg.wav as a multi-music
    00:07.743 [Info]: Will load SFX romfs:/sound/smw-exit.ogg.wav as a multi-music
    00:07.890 [Info]: Will load SFX romfs:/sound/wart-bubble.ogg.wav as a multi-music
    00:07.915 [Info]: Will load SFX romfs:/sound/wart-die.ogg.wav as a multi-music
    00:08.190 [Info]: Will load SFX romfs:/sound/sm-glass.ogg.wav as a multi-music
    00:08.309 [Info]: Will load SFX romfs:/sound/sm-cry.ogg.wav as a multi-music
    00:08.334 [Info]: Will load SFX romfs:/sound/sm-explosion.ogg.wav as a multi-music
    00:08.896 [Info]: Will load SFX romfs:/sound/zelda-died.ogg.wav as a multi-music
    00:09.061 [Info]: Will load SFX romfs:/sound/zelda-item.ogg.wav as a multi-music
    00:09.084 [Info]: Will load SFX romfs:/sound/zelda-key.ogg.wav as a multi-music
    00:09.640 [Info]: Will load SFX romfs:/sound/timeout.ogg.wav as a multi-music
    00:10.082 [Info]: Will load SFX romfs:/sound/larry-shell.ogg.wav as a multi-music
    00:10.107 [Info]: Will load SFX romfs:/sound/larry-die.ogg.wav as a multi-music
    00:10.131 [Info]: Will load SFX romfs:/sound/ludwig-die.ogg.wav as a multi-music
    00:10.316 [Info]: Loaded sound effects: dumped=70; as music=32
    00:48.299 [Info]: Will load SFX romfs:/worlds/cliche/music/player-died.ogg as a multi-music
    00:48.493 [Info]: Will load SFX romfs:/worlds/cliche/music/victory.ogg as a multi-music
    04:17.774 [Info]: Will load SFX romfs:/worlds/cliche/music/player-died.ogg as a multi-music
    04:17.966 [Info]: Will load SFX romfs:/worlds/cliche/music/victory.ogg as a multi-music
    05:02.683 [Info]: Will load SFX romfs:/worlds/cliche/music/player-died.ogg as a multi-music
    05:02.874 [Info]: Will load SFX romfs:/worlds/cliche/music/victory.ogg as a multi-music
    05:49.867 [Info]: Will load SFX romfs:/worlds/cliche/music/player-died.ogg as a multi-music
    05:50.059 [Info]: Will load SFX romfs:/worlds/cliche/music/victory.ogg as a multi-music
    06:02.980 [Info]: Application closed>

    00:00.021 [Info]: Application started>
    00:00.040 [Info]: TheXTech 1.3.7-dev (branch main, commit bb07af2)
    00:00.060 [Info]: Initialized XRender with 26387456 bytes free
    00:00.340 [Warning]: File romfs:/graphics/ui/MenuGFX1-3ds.t3x doesn't exist, trying to load generic one...
    00:00.353 [Warning]: File romfs:/graphics/ui/MenuGFX2-3ds.t3x doesn't exist, trying to load generic one...
    00:00.376 [Warning]: File romfs:/graphics/ui/MenuGFX3-3ds.t3x doesn't exist, trying to load generic one...
    00:00.503 [Warning]: Permanently failed to load romfs:/graphics/ui/Backdrop.t3x, 23527168 free
    00:00.515 [Warning]: Error: 2 (No such file or directory)
    00:00.524 [Warning]: Error loading of image file:
    romfs:/graphics/ui/Backdrop.png
    Reason: file not exist.
    00:00.532 [Warning]: Failed to load texture: romfs:/graphics/ui/Backdrop.png...
    00:04.043 [Info]: Will load SFX romfs:/sound/player-grow.ogg.wav as a multi-music
    00:04.111 [Info]: Will load SFX romfs:/sound/player-died.ogg.wav as a multi-music
    00:04.213 [Info]: Will load SFX romfs:/sound/item-dropped.ogg.wav as a multi-music
    00:04.539 [Info]: Will load SFX romfs:/sound/level-win.ogg.wav as a multi-music
    00:04.563 [Info]: Will load SFX romfs:/sound/boss-beat.ogg.wav as a multi-music
    00:04.586 [Info]: Will load SFX romfs:/sound/dungeon-win.ogg.wav as a multi-music
    00:04.609 [Info]: Will load SFX romfs:/sound/bullet-bill.ogg.wav as a multi-music
    00:04.845 [Info]: Will load SFX romfs:/sound/level-select.ogg.wav as a multi-music
    00:04.959 [Info]: Will load SFX romfs:/sound/key.ogg.wav as a multi-music
    00:05.069 [Info]: Will load SFX romfs:/sound/racoon.ogg.wav as a multi-music
    00:05.308 [Info]: Will load SFX romfs:/sound/smb2-exit.ogg.wav as a multi-music
    00:05.383 [Info]: Will load SFX romfs:/sound/npc-fireball.ogg.wav as a multi-music
    00:05.407 [Info]: Will load SFX romfs:/sound/fireworks.ogg.wav as a multi-music
    00:05.430 [Info]: Will load SFX romfs:/sound/bowser-killed.ogg.wav as a multi-music
    00:05.454 [Info]: Will load SFX romfs:/sound/game-beat.ogg.wav as a multi-music
    00:05.479 [Info]: Will load SFX romfs:/sound/door.ogg.wav as a multi-music
    00:05.724 [Info]: Will load SFX romfs:/sound/got-star.ogg.wav as a multi-music
    00:05.873 [Info]: Will load SFX romfs:/sound/ring.ogg.wav as a multi-music
    00:05.941 [Info]: Will load SFX romfs:/sound/smw-checkpoint.ogg.wav as a multi-music
    00:06.010 [Info]: Will load SFX romfs:/sound/smw-exit.ogg.wav as a multi-music
    00:06.080 [Info]: Will load SFX romfs:/sound/wart-bubble.ogg.wav as a multi-music
    00:06.106 [Info]: Will load SFX romfs:/sound/wart-die.ogg.wav as a multi-music
    00:06.262 [Info]: Will load SFX romfs:/sound/sm-glass.ogg.wav as a multi-music
    00:06.330 [Info]: Will load SFX romfs:/sound/sm-cry.ogg.wav as a multi-music
    00:06.356 [Info]: Will load SFX romfs:/sound/sm-explosion.ogg.wav as a multi-music
    00:06.731 [Info]: Will load SFX romfs:/sound/zelda-died.ogg.wav as a multi-music
    00:06.833 [Info]: Will load SFX romfs:/sound/zelda-item.ogg.wav as a multi-music
    00:06.856 [Info]: Will load SFX romfs:/sound/zelda-key.ogg.wav as a multi-music
    00:07.173 [Info]: Will load SFX romfs:/sound/timeout.ogg.wav as a multi-music
    00:07.408 [Info]: Will load SFX romfs:/sound/larry-shell.ogg.wav as a multi-music
    00:07.431 [Info]: Will load SFX romfs:/sound/larry-die.ogg.wav as a multi-music
    00:07.454 [Info]: Will load SFX romfs:/sound/ludwig-die.ogg.wav as a multi-music
    00:07.663 [Info]: Loaded sound effects: dumped=70; as music=32
    03:13.870 [Info]: Will load SFX romfs:/sound/player-grow.ogg.wav as a multi-music
    03:13.940 [Info]: Will load SFX romfs:/sound/player-died.ogg.wav as a multi-music
    03:14.046 [Info]: Will load SFX romfs:/sound/item-dropped.ogg.wav as a multi-music
    03:14.394 [Info]: Will load SFX romfs:/sound/level-win.ogg.wav as a multi-music
    03:14.417 [Info]: Will load SFX romfs:/sound/boss-beat.ogg.wav as a multi-music
    03:14.438 [Info]: Will load SFX romfs:/sound/dungeon-win.ogg.wav as a multi-music
    03:14.461 [Info]: Will load SFX romfs:/sound/bullet-bill.ogg.wav as a multi-music
    03:14.713 [Info]: Will load SFX romfs:/sound/level-select.ogg.wav as a multi-music
    03:14.842 [Info]: Will load SFX romfs:/sound/key.ogg.wav as a multi-music
    03:14.953 [Info]: Will load SFX romfs:/sound/racoon.ogg.wav as a multi-music
    03:15.212 [Info]: Will load SFX romfs:/sound/smb2-exit.ogg.wav as a multi-music
    03:15.289 [Info]: Will load SFX romfs:/sound/npc-fireball.ogg.wav as a multi-music
    03:15.313 [Info]: Will load SFX romfs:/sound/fireworks.ogg.wav as a multi-music
    03:15.342 [Info]: Will load SFX romfs:/sound/bowser-killed.ogg.wav as a multi-music
    03:15.366 [Info]: Will load SFX romfs:/sound/game-beat.ogg.wav as a multi-music
    03:15.394 [Info]: Will load SFX romfs:/sound/door.ogg.wav as a multi-music
    03:15.657 [Info]: Will load SFX romfs:/sound/got-star.ogg.wav as a multi-music
    03:15.814 [Info]: Will load SFX romfs:/sound/ring.ogg.wav as a multi-music
    03:15.889 [Info]: Will load SFX romfs:/sound/smw-checkpoint.ogg.wav as a multi-music
    03:15.960 [Info]: Will load SFX romfs:/sound/smw-exit.ogg.wav as a multi-music
    03:16.034 [Info]: Will load SFX romfs:/sound/wart-bubble.ogg.wav as a multi-music
    03:16.063 [Info]: Will load SFX romfs:/sound/wart-die.ogg.wav as a multi-music
    03:16.230 [Info]: Will load SFX romfs:/sound/sm-glass.ogg.wav as a multi-music
    03:16.302 [Info]: Will load SFX romfs:/sound/sm-cry.ogg.wav as a multi-music
    03:16.327 [Info]: Will load SFX romfs:/sound/sm-explosion.ogg.wav as a multi-music
    03:16.728 [Info]: Will load SFX romfs:/sound/zelda-died.ogg.wav as a multi-music
    03:16.846 [Info]: Will load SFX romfs:/sound/zelda-item.ogg.wav as a multi-music
    03:16.869 [Info]: Will load SFX romfs:/sound/zelda-key.ogg.wav as a multi-music
    03:17.205 [Info]: Will load SFX romfs:/sound/timeout.ogg.wav as a multi-music
    03:17.464 [Info]: Will load SFX romfs:/sound/larry-shell.ogg.wav as a multi-music
    03:17.487 [Info]: Will load SFX romfs:/sound/larry-die.ogg.wav as a multi-music
    03:17.510 [Info]: Will load SFX romfs:/sound/ludwig-die.ogg.wav as a multi-music
    03:17.695 [Info]: Loaded sound effects: dumped=70; as music=32
    03:19.860 [Info]: Will load SFX romfs:/sound/player-grow.ogg.wav as a multi-music
    03:19.948 [Info]: Will load SFX romfs:/sound/player-died.ogg.wav as a multi-music
    03:20.048 [Info]: Will load SFX romfs:/sound/item-dropped.ogg.wav as a multi-music
    03:20.390 [Info]: Will load SFX romfs:/sound/level-win.ogg.wav as a multi-music
    03:20.413 [Info]: Will load SFX romfs:/sound/boss-beat.ogg.wav as a multi-music
    03:20.436 [Info]: Will load SFX romfs:/sound/dungeon-win.ogg.wav as a multi-music
    03:20.461 [Info]: Will load SFX romfs:/sound/bullet-bill.ogg.wav as a multi-music
    03:20.705 [Info]: Will load SFX romfs:/sound/level-select.ogg.wav as a multi-music
    03:20.821 [Info]: Will load SFX romfs:/sound/key.ogg.wav as a multi-music
    03:20.934 [Info]: Will load SFX romfs:/sound/racoon.ogg.wav as a multi-music
    03:21.185 [Info]: Will load SFX romfs:/sound/smb2-exit.ogg.wav as a multi-music
    03:21.257 [Info]: Will load SFX romfs:/sound/npc-fireball.ogg.wav as a multi-music
    03:21.281 [Info]: Will load SFX romfs:/sound/fireworks.ogg.wav as a multi-music
    03:21.305 [Info]: Will load SFX romfs:/sound/bowser-killed.ogg.wav as a multi-music
    03:21.332 [Info]: Will load SFX romfs:/sound/game-beat.ogg.wav as a multi-music
    03:21.357 [Info]: Will load SFX romfs:/sound/door.ogg.wav as a multi-music
    03:21.609 [Info]: Will load SFX romfs:/sound/got-star.ogg.wav as a multi-music
    03:21.768 [Info]: Will load SFX romfs:/sound/ring.ogg.wav as a multi-music
    03:21.835 [Info]: Will load SFX romfs:/sound/smw-checkpoint.ogg.wav as a multi-music
    03:21.972 [Info]: Will load SFX romfs:/sound/smw-exit.ogg.wav as a multi-music
    03:22.088 [Info]: Will load SFX romfs:/sound/wart-bubble.ogg.wav as a multi-music
    03:22.113 [Info]: Will load SFX romfs:/sound/wart-die.ogg.wav as a multi-music
    03:22.272 [Info]: Will load SFX romfs:/sound/sm-glass.ogg.wav as a multi-music
    03:22.340 [Info]: Will load SFX romfs:/sound/sm-cry.ogg.wav as a multi-music
    03:22.364 [Info]: Will load SFX romfs:/sound/sm-explosion.ogg.wav as a multi-music
    03:22.758 [Info]: Will load SFX romfs:/sound/zelda-died.ogg.wav as a multi-music
    03:22.860 [Info]: Will load SFX romfs:/sound/zelda-item.ogg.wav as a multi-music
    03:22.895 [Info]: Will load SFX romfs:/sound/zelda-key.ogg.wav as a multi-music
    03:23.217 [Info]: Will load SFX romfs:/sound/timeout.ogg.wav as a multi-music
    03:23.463 [Info]: Will load SFX romfs:/sound/larry-shell.ogg.wav as a multi-music
    03:23.485 [Info]: Will load SFX romfs:/sound/larry-die.ogg.wav as a multi-music
    03:23.508 [Info]: Will load SFX romfs:/sound/ludwig-die.ogg.wav as a multi-music
    03:23.717 [Info]: Loaded sound effects: dumped=70; as music=32
    03:26.697 [Info]: Will load SFX romfs:/sound/player-grow.ogg.wav as a multi-music
    03:26.809 [Info]: Will load SFX romfs:/sound/player-died.ogg.wav as a multi-music
    03:26.933 [Info]: Will load SFX romfs:/sound/item-dropped.ogg.wav as a multi-music
    03:27.508 [Info]: Will load SFX romfs:/sound/level-win.ogg.wav as a multi-music
    03:27.543 [Info]: Will load SFX romfs:/sound/boss-beat.ogg.wav as a multi-music
    03:27.566 [Info]: Will load SFX romfs:/sound/dungeon-win.ogg.wav as a multi-music
    03:27.590 [Info]: Will load SFX romfs:/sound/bullet-bill.ogg.wav as a multi-music
    03:27.996 [Info]: Will load SFX romfs:/sound/level-select.ogg.wav as a multi-music
    03:28.202 [Info]: Will load SFX romfs:/sound/key.ogg.wav as a multi-music
    03:28.376 [Info]: Will load SFX romfs:/sound/racoon.ogg.wav as a multi-music
    03:28.798 [Info]: Will load SFX romfs:/sound/smb2-exit.ogg.wav as a multi-music
    03:28.930 [Info]: Will load SFX romfs:/sound/npc-fireball.ogg.wav as a multi-music
    03:28.954 [Info]: Will load SFX romfs:/sound/fireworks.ogg.wav as a multi-music
    03:28.982 [Info]: Will load SFX romfs:/sound/bowser-killed.ogg.wav as a multi-music
    03:29.005 [Info]: Will load SFX romfs:/sound/game-beat.ogg.wav as a multi-music
    03:29.032 [Info]: Will load SFX romfs:/sound/door.ogg.wav as a multi-music
    03:29.471 [Info]: Will load SFX romfs:/sound/got-star.ogg.wav as a multi-music
    03:29.728 [Info]: Will load SFX romfs:/sound/ring.ogg.wav as a multi-music
    03:29.834 [Info]: Will load SFX romfs:/sound/smw-checkpoint.ogg.wav as a multi-music
    03:29.936 [Info]: Will load SFX romfs:/sound/smw-exit.ogg.wav as a multi-music
    03:30.082 [Info]: Will load SFX romfs:/sound/wart-bubble.ogg.wav as a multi-music
    03:30.108 [Info]: Will load SFX romfs:/sound/wart-die.ogg.wav as a multi-music
    03:30.381 [Info]: Will load SFX romfs:/sound/sm-glass.ogg.wav as a multi-music
    03:30.496 [Info]: Will load SFX romfs:/sound/sm-cry.ogg.wav as a multi-music
    03:30.536 [Info]: Will load SFX romfs:/sound/sm-explosion.ogg.wav as a multi-music
    03:31.070 [Info]: Will load SFX romfs:/sound/zelda-died.ogg.wav as a multi-music
    03:31.221 [Info]: Will load SFX romfs:/sound/zelda-item.ogg.wav as a multi-music
    03:31.244 [Info]: Will load SFX romfs:/sound/zelda-key.ogg.wav as a multi-music
    03:31.760 [Info]: Will load SFX romfs:/sound/timeout.ogg.wav as a multi-music
    03:32.169 [Info]: Will load SFX romfs:/sound/larry-shell.ogg.wav as a multi-music
    03:32.192 [Info]: Will load SFX romfs:/sound/larry-die.ogg.wav as a multi-music
    03:32.215 [Info]: Will load SFX romfs:/sound/ludwig-die.ogg.wav as a multi-music
    03:32.392 [Info]: Loaded sound effects: dumped=70; as music=32
    03:35.539 [Info]: Will load SFX romfs:/sound/player-grow.ogg.wav as a multi-music
    03:35.650 [Info]: Will load SFX romfs:/sound/player-died.ogg.wav as a multi-music
    03:35.775 [Info]: Will load SFX romfs:/sound/item-dropped.ogg.wav as a multi-music
    03:36.351 [Info]: Will load SFX romfs:/sound/level-win.ogg.wav as a multi-music
    03:36.384 [Info]: Will load SFX romfs:/sound/boss-beat.ogg.wav as a multi-music
    03:36.408 [Info]: Will load SFX romfs:/sound/dungeon-win.ogg.wav as a multi-music
    03:36.435 [Info]: Will load SFX romfs:/sound/bullet-bill.ogg.wav as a multi-music
    03:36.838 [Info]: Will load SFX romfs:/sound/level-select.ogg.wav as a multi-music
    03:37.044 [Info]: Will load SFX romfs:/sound/key.ogg.wav as a multi-music
    03:37.218 [Info]: Will load SFX romfs:/sound/racoon.ogg.wav as a multi-music
    03:37.640 [Info]: Will load SFX romfs:/sound/smb2-exit.ogg.wav as a multi-music
    03:37.772 [Info]: Will load SFX romfs:/sound/npc-fireball.ogg.wav as a multi-music
    03:37.799 [Info]: Will load SFX romfs:/sound/fireworks.ogg.wav as a multi-music
    03:37.822 [Info]: Will load SFX romfs:/sound/bowser-killed.ogg.wav as a multi-music
    03:37.845 [Info]: Will load SFX romfs:/sound/game-beat.ogg.wav as a multi-music
    03:37.873 [Info]: Will load SFX romfs:/sound/door.ogg.wav as a multi-music
    03:38.314 [Info]: Will load SFX romfs:/sound/got-star.ogg.wav as a multi-music
    03:38.570 [Info]: Will load SFX romfs:/sound/ring.ogg.wav as a multi-music
    03:38.676 [Info]: Will load SFX romfs:/sound/smw-checkpoint.ogg.wav as a multi-music
    03:38.778 [Info]: Will load SFX romfs:/sound/smw-exit.ogg.wav as a multi-music
    03:38.924 [Info]: Will load SFX romfs:/sound/wart-bubble.ogg.wav as a multi-music
    03:38.949 [Info]: Will load SFX romfs:/sound/wart-die.ogg.wav as a multi-music
    03:39.223 [Info]: Will load SFX romfs:/sound/sm-glass.ogg.wav as a multi-music
    03:39.339 [Info]: Will load SFX romfs:/sound/sm-cry.ogg.wav as a multi-music
    03:39.378 [Info]: Will load SFX romfs:/sound/sm-explosion.ogg.wav as a multi-music
    03:39.912 [Info]: Will load SFX romfs:/sound/zelda-died.ogg.wav as a multi-music
    03:40.058 [Info]: Will load SFX romfs:/sound/zelda-item.ogg.wav as a multi-music
    03:40.081 [Info]: Will load SFX romfs:/sound/zelda-key.ogg.wav as a multi-music
    03:40.613 [Info]: Will load SFX romfs:/sound/timeout.ogg.wav as a multi-music
    03:41.028 [Info]: Will load SFX romfs:/sound/larry-shell.ogg.wav as a multi-music
    03:41.062 [Info]: Will load SFX romfs:/sound/larry-die.ogg.wav as a multi-music
    03:41.089 [Info]: Will load SFX romfs:/sound/ludwig-die.ogg.wav as a multi-music
    03:41.249 [Info]: Loaded sound effects: dumped=70; as music=32
    03:45.453 [Info]: Will load SFX romfs:/sound/player-grow.ogg.wav as a multi-music
    03:45.562 [Info]: Will load SFX romfs:/sound/player-died.ogg.wav as a multi-music
    03:45.687 [Info]: Will load SFX romfs:/sound/item-dropped.ogg.wav as a multi-music
    03:46.296 [Info]: Will load SFX romfs:/sound/level-win.ogg.wav as a multi-music
    03:46.320 [Info]: Will load SFX romfs:/sound/boss-beat.ogg.wav as a multi-music
    03:46.347 [Info]: Will load SFX romfs:/sound/dungeon-win.ogg.wav as a multi-music
    03:46.371 [Info]: Will load SFX romfs:/sound/bullet-bill.ogg.wav as a multi-music
    03:46.798 [Info]: Will load SFX romfs:/sound/level-select.ogg.wav as a multi-music
    03:47.000 [Info]: Will load SFX romfs:/sound/key.ogg.wav as a multi-music
    03:47.176 [Info]: Will load SFX romfs:/sound/racoon.ogg.wav as a multi-music
    03:47.608 [Info]: Will load SFX romfs:/sound/smb2-exit.ogg.wav as a multi-music
    03:47.747 [Info]: Will load SFX romfs:/sound/npc-fireball.ogg.wav as a multi-music
    03:47.784 [Info]: Will load SFX romfs:/sound/fireworks.ogg.wav as a multi-music
    03:47.808 [Info]: Will load SFX romfs:/sound/bowser-killed.ogg.wav as a multi-music
    03:47.834 [Info]: Will load SFX romfs:/sound/game-beat.ogg.wav as a multi-music
    03:47.859 [Info]: Will load SFX romfs:/sound/door.ogg.wav as a multi-music
    03:48.318 [Info]: Will load SFX romfs:/sound/got-star.ogg.wav as a multi-music
    03:48.584 [Info]: Will load SFX romfs:/sound/ring.ogg.wav as a multi-music
    03:48.691 [Info]: Will load SFX romfs:/sound/smw-checkpoint.ogg.wav as a multi-music
    03:48.804 [Info]: Will load SFX romfs:/sound/smw-exit.ogg.wav as a multi-music
    03:48.938 [Info]: Will load SFX romfs:/sound/wart-bubble.ogg.wav as a multi-music
    03:48.963 [Info]: Will load SFX romfs:/sound/wart-die.ogg.wav as a multi-music
    03:49.229 [Info]: Will load SFX romfs:/sound/sm-glass.ogg.wav as a multi-music
    03:49.354 [Info]: Will load SFX romfs:/sound/sm-cry.ogg.wav as a multi-music
    03:49.383 [Info]: Will load SFX romfs:/sound/sm-explosion.ogg.wav as a multi-music
    03:49.934 [Info]: Will load SFX romfs:/sound/zelda-died.ogg.wav as a multi-music
    03:50.090 [Info]: Will load SFX romfs:/sound/zelda-item.ogg.wav as a multi-music
    03:50.112 [Info]: Will load SFX romfs:/sound/zelda-key.ogg.wav as a multi-music
    03:50.636 [Info]: Will load SFX romfs:/sound/timeout.ogg.wav as a multi-music
    03:51.077 [Info]: Will load SFX romfs:/sound/larry-shell.ogg.wav as a multi-music
    03:51.103 [Info]: Will load SFX romfs:/sound/larry-die.ogg.wav as a multi-music
    03:51.127 [Info]: Will load SFX romfs:/sound/ludwig-die.ogg.wav as a multi-music
    03:51.311 [Info]: Loaded sound effects: dumped=70; as music=32
    03:55.197 [Info]: Will load SFX romfs:/sound/player-grow.ogg.wav as a multi-music
    03:55.306 [Info]: Will load SFX romfs:/sound/player-died.ogg.wav as a multi-music
    03:55.431 [Info]: Will load SFX romfs:/sound/item-dropped.ogg.wav as a multi-music
    03:56.040 [Info]: Will load SFX romfs:/sound/level-win.ogg.wav as a multi-music
    03:56.067 [Info]: Will load SFX romfs:/sound/boss-beat.ogg.wav as a multi-music
    03:56.090 [Info]: Will load SFX romfs:/sound/dungeon-win.ogg.wav as a multi-music
    03:56.114 [Info]: Will load SFX romfs:/sound/bullet-bill.ogg.wav as a multi-music
    03:56.541 [Info]: Will load SFX romfs:/sound/level-select.ogg.wav as a multi-music
    03:56.760 [Info]: Will load SFX romfs:/sound/key.ogg.wav as a multi-music
    03:56.928 [Info]: Will load SFX romfs:/sound/racoon.ogg.wav as a multi-music
    03:57.352 [Info]: Will load SFX romfs:/sound/smb2-exit.ogg.wav as a multi-music
    03:57.494 [Info]: Will load SFX romfs:/sound/npc-fireball.ogg.wav as a multi-music
    03:57.518 [Info]: Will load SFX romfs:/sound/fireworks.ogg.wav as a multi-music
    03:57.542 [Info]: Will load SFX romfs:/sound/bowser-killed.ogg.wav as a multi-music
    03:57.566 [Info]: Will load SFX romfs:/sound/game-beat.ogg.wav as a multi-music
    03:57.591 [Info]: Will load SFX romfs:/sound/door.ogg.wav as a multi-music
    03:58.045 [Info]: Will load SFX romfs:/sound/got-star.ogg.wav as a multi-music
    03:58.312 [Info]: Will load SFX romfs:/sound/ring.ogg.wav as a multi-music
    03:58.414 [Info]: Will load SFX romfs:/sound/smw-checkpoint.ogg.wav as a multi-music
    03:58.515 [Info]: Will load SFX romfs:/sound/smw-exit.ogg.wav as a multi-music
    03:58.649 [Info]: Will load SFX romfs:/sound/wart-bubble.ogg.wav as a multi-music
    03:58.674 [Info]: Will load SFX romfs:/sound/wart-die.ogg.wav as a multi-music
    03:58.940 [Info]: Will load SFX romfs:/sound/sm-glass.ogg.wav as a multi-music
    03:59.065 [Info]: Will load SFX romfs:/sound/sm-cry.ogg.wav as a multi-music
    03:59.090 [Info]: Will load SFX romfs:/sound/sm-explosion.ogg.wav as a multi-music
    03:59.625 [Info]: Will load SFX romfs:/sound/zelda-died.ogg.wav as a multi-music
    03:59.784 [Info]: Will load SFX romfs:/sound/zelda-item.ogg.wav as a multi-music
    03:59.807 [Info]: Will load SFX romfs:/sound/zelda-key.ogg.wav as a multi-music
    04:00.329 [Info]: Will load SFX romfs:/sound/timeout.ogg.wav as a multi-music
    04:00.754 [Info]: Will load SFX romfs:/sound/larry-shell.ogg.wav as a multi-music
    04:00.781 [Info]: Will load SFX romfs:/sound/larry-die.ogg.wav as a multi-music
    04:00.805 [Info]: Will load SFX romfs:/sound/ludwig-die.ogg.wav as a multi-music
    04:00.988 [Info]: Loaded sound effects: dumped=70; as music=32
    07:15.029 [Info]: Application closed>

  6. ds-sloth commented on Aug 13, 2024

    @ds-sloth
    Collaborator

    Thank you very much for sharing your logs. Yes, it looks like your char3 sprite (romfs:/graphics/peach/peach-1.t3x) failed to load in the first log you shared. This is very helpful to know.

    I can certainly bump the texture memory up from 28MB to 30MB, which should help with such cases. I want to be careful when doing this, because the result of running out of texture memory is that a texture fails to load, but the worst-case result of running out of main memory is a full application crash. We usually get 64MB total, and sound-related data usually take up around around 10MB, so there's not a lot of RAM left over for the actual game objects.

  7. Trickiy commented on Aug 13, 2024

    @Trickiy
    Author

    Could you do something like compressed cached chunks.

  8. ds-sloth commented on Aug 13, 2024

    @ds-sloth
    Collaborator

    Yes, our textures are currently compressed, and if you saw a case where a texture failed to load due to memory constraints, then all textures not onscreen were already evicted from cache to save memory. This is simply a hard problem: recall that SMBX 1.3 uses over 200MB of RAM all the time, and on 3DS we are managing with 64MB (and on Wii with 40MB, etc).

  9. Trickiy commented on Aug 14, 2024

    @Trickiy
    Author

    I watched a YouTube video a while back where a guy makes a game within 40 kb. The sprite optimizations he dose In it might reduce memory usage on 3ds if possible. Here's the video if you wanna watch.

  10. Wohlstand commented on Aug 14, 2024

    @Wohlstand
    Member

    I watched a YouTube video a while back where a guy makes a game within 40 kb. The sprite optimizations he dose In it might reduce memory usage on 3ds if possible. Here's the video if you wanna watch.

    Actually very interesting thing

  11. Wohlstand commented on Aug 14, 2024

    @Wohlstand
    Member

    And, sounds like, it's possible to make a kind of the automator that will split picture to parts and will find these are equal in various orientations, and then, have in the memory the "compressed" picture, and "rules" that will be used to combine a result on the frame buffer. However, the render code of such sprites will be complicated of course.

  12. changed the title [-]invisible player sprites[/-] [+]Memory leak[/+] on Aug 24, 2024
  13. Trickiy commented on Aug 24, 2024

    @Trickiy
    Author

    This is much more severe than we initially thought because when I play for a extended period of time like an hour. The sprites start to disapear, this bug being time based makes me think it's a memory leak. 6bbbdca is the build I am playing on.

  14. Trickiy commented on Aug 24, 2024

    @Trickiy
    Author

    Here's my debug log
    TheXTech_log_2024_08_24_08_45_48.txt
    towards the bottom the memory runs out.

  15. changed the title [-]Memory leak[/-] [+]Invisible player sprites - memory leak?[/+] on Aug 24, 2024
  16. ds-sloth commented on Aug 24, 2024

    @ds-sloth
    Collaborator

    It's possible that this is a "genuine" memory leak, where memory is allocated and then forgotten, but there are three other possibilities -- (1) there could simply be lots of textures onscreen at once at the time that the texture load failures occur, and you hit a section with that many textures near the end of your play session, (2) load failures are permanent, so it's possible that they are simply accumulating over time, or (3) this could be memory fragmentation of the linear heap.

    If this is a genuine memory leak, then it should not be fixed by changing asset packs at the main menu. If it is not a genuine memory leak, then changing asset packs will unload everything, and reset the load failure markers.

    I'll add some additional tracking code that will help us check these cases further. After that commit arrives, please share another log if you find a similar situation in the future.

  17. ds-sloth commented on Aug 24, 2024

    @ds-sloth
    Collaborator

    I've sent the commit now. Another long from extended play will be very helpful.

  18. Trickiy commented on Aug 24, 2024

    @Trickiy
    Author

    When I am in the mood I will continue my The Invasion 2 run, if Mario's sprites start dissapearing again I will report.

  19. ds-sloth commented on Aug 24, 2024

    @ds-sloth
    Collaborator

    Thank you!

  20. Trickiy commented on Aug 25, 2024

    @Trickiy
    Author

    Ok I did some tests, test 1 being me leaving the game running on the title screen for a few hours nothing changed. This tells that there's no memory leak Wich is good.

    Test 2 continuing my The Invasion 2 run, I played for longer than an hour so its not time based.
    TheXTech_log_2024_08_24_18_10_35.txt

    Test 3 restart my The Invasion 2 run, after restarting the sprites started to dissapear after I was about 38% complete. Now we know that there is leftover code in memory in every load, restart, and maybe death aswell.
    TheXTech_log_2024_08_25_09_04_00.txt

  21. ds-sloth commented on Aug 25, 2024

    @ds-sloth
    Collaborator

    Thanks very much for updating your game and sharing your logs. When I looked at this log, I only found load failures at the title screen. I also looked again at your older log, and it also seems to only have load failures at the title screen. The load failures then carry over to levels due to the game marking them as permanent.

    This is good news. I just added some code that will cause the game to aggressively try to reload these failed sprites. If texture memory becomes more free (as it will when you enter a level from the menu), then the player sprites should get reloaded within around 5 seconds.

  22. ds-sloth commented on Dec 21, 2024

    @ds-sloth
    Collaborator

    This issue seems to have been totally fixed since fe176d0. Thank you for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

native bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions