Skip to content

Large textures crash with "outofmem" error #2746

@EliteMasterEric

Description

@EliteMasterEric

Description
Attempting to load large textures will reliably crash the Armory Player with the following message:

Not enough memory on image.c Buffer.
outofmem

To Reproduce

  1. Utilize a large texture (4096 pixels by 2048 pixels is the smallest I've reproduced the issue with so far) in a material.
  2. Attempt to start the game.

Expected behavior
The expectation is that the large texture would load and be displayed by the game.

Large textures may be necessary in some cases, for example when using tilesheets. The largest I would expect tilesheets to be required to support is 8192x8192.

System
Blender:
Armory: 2022.12.0 (tested on release and git main)
OS: Windows 10
Graphics card: NVidia GTX 3080

Test File
BasicTexture.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue describes a bughas workaroundThis issue has a known workaround

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions