Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression: drag and drop image to canvas crashes godot #10638

Closed
novemberist opened this issue Aug 25, 2017 · 5 comments
Closed

Regression: drag and drop image to canvas crashes godot #10638

novemberist opened this issue Aug 25, 2017 · 5 comments

Comments

@novemberist
Copy link

novemberist commented Aug 25, 2017

Operating system or device, Godot version, GPU Model and driver (if graphics related):
Arch Linux, Godot3 master commit f75678a

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

@novemberist
Copy link
Author

Or is this possibly related to cacced7 ?

@novemberist novemberist changed the title Regression: drag and drop resource to canvas crashes godot Regression: drag and drop image to canvas crashes godot Aug 25, 2017
@Rubonnek
Copy link
Member

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?

@novemberist
Copy link
Author

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

@Rubonnek
Copy link
Member

@novemberist Thanks for testing.

@novemberist
Copy link
Author

I think this is fixed now.

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

No branches or pull requests

3 participants