Skip to content

Out of memory warning during build/simulation?  #56

@techninja

Description

@techninja

Making great progress with the game I'm making with my son, but suddenly adding a sprite sheet to the manifest results in the build breaking in strange ways. Totally stopping the project in its tracks.

makerzeph/squishybabs#1

# png2bmp faces-color.bmp faces-alpha.bmp
# mcrez resources
# cc mc.resources.c (slots in flash)
# ld main.bin
/home/techninja/esp/toolchain/Linux/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.5/../../../../xtensa-lx106-elf/bin/ld: /home/techninja/web/moddable/build/tmp/esp/release/src/main.elf section `.irom0.text' will not fit in region `irom0_0_seg'
collect2: error: ld returned 1 exit status
/home/techninja/web/moddable/build/tmp/esp/release/src/makefile:525: recipe for target '/home/techninja/web/moddable/build/bin/esp/release/src/main.bin' failed

I tried cropping the image in half and it built, though there were other issues and this doesn't solve the implementation problem. I suppose my questions are as follows:

  1. Are there image resource size limits for images?
  2. Should there be clearer build failures for resource exhaustion?
  3. Is there any way I can keep working on this project using sprites without moving to some other drawing method (image compression, custom color indexed images, vector)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions