ERROR: texture_set_data: Condition ' p_image.empty() ' is true.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Not_a_Robot
:warning: Old Version Published before Godot 3 was released.

Hello!

I’m getting the following error on Android (from adb logcat):

I/godot   (13627): ERROR: texture_set_data: Condition ' p_image.empty() ' is true.

 I/godot   (13627):    At: drivers/gles2/rasterizer_gles2.cpp:962.

 E/TouchFilter(  778): :filter is disable or not support:-1

I don’t know exactly where the error starts in the GDScript file but it is related to a texture switch in a TextureFrame, the use of .duplicate() or a resize thing.

It works when playing it on Ubuntu, but on Android I get a black rectangle.

Ubuntu:
enter image description here

Android:
enter image description here

Any help is appreciated, thanks in advance!