Godot: Regression: drag and drop image to canvas crashes godot

Created on 25 Aug 2017  路  5Comments  路  Source: godotengine/godot

Operating system or device, Godot version, GPU Model and driver (if graphics related):
Arch Linux, Godot3 master commit https://github.com/godotengine/godot/commit/f75678a94f35bfdf177f1e13ba0f5824fec20e92

Issue description:
Using drag and drop to to e.g. add icon.png from the FileSystem docker to the canvas crashes Godot.
This issue must be a relatively new regession, since I don't remember it being present a couple of days ago.

Steps to reproduce:

  1. Create a new project
  2. Add a root node (e.g. Node2D) and select it
  3. try to drag icon.png to the canvas

console output is not very helpfull in this case, I think:

SVG_GENERATION TIME: 0.094089
try to see fs update2
ERROR: _render_target_allocate: Condition ' status != 0x8CD5 ' is true.
   At: drivers/gles3/rasterizer_storage_gles3.cpp:6264.
ERROR: add_child: Can't add child, already has a parent
   At: scene/main/node.cpp:1362.
from file: res://default_env.tres
from file: res://icon.png
cached: res://default_env.tres
cached: res://icon.png
allowed type ShaderMaterial,CanvasItemMaterial
fileS: [res://icon.png]
file: res://icon.png
type: StreamTexture
FILE vs ShaderMaterial
FILE vs CanvasItemMaterial
allowed type Script
fileS: [res://icon.png]
file: res://icon.png
type: StreamTexture
FILE vs Script
ERROR: cast_to: Condition ' p_object == __null ' is true. returned: __null
   At: core/object.h:567.

Tested with: clang 4.0.1 and gcc 7.2.0

bug editor

All 5 comments

Thanks for reporting. This was, indeed, introduced by #10581.

I just pushed a commit that fixes this issue on #10591. Could you test that pull request?

@Rubonnek I can confirm that this PR fixes the crash for me (compiled with gcc 7.2.0)

@novemberist Thanks for testing.

I think this is fixed now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

blurymind picture blurymind  路  3Comments

bojidar-bg picture bojidar-bg  路  3Comments

timoschwarzer picture timoschwarzer  路  3Comments

ducdetronquito picture ducdetronquito  路  3Comments

mefihl picture mefihl  路  3Comments