Git Product home page Git Product logo

Comments (19)

garf avatar garf commented on July 19, 2024 1

@Ughuuu I added you as a collaborator to the repo. To reproduce you just have to start the game and when the character starts to hit the enemies or collide with them, you will see errors in debug panel.
Thank you!

from godot-rapier-2d.

garf avatar garf commented on July 19, 2024 1

@Ughuuu I couldn't find time yet to make a simpler project. Thank you so much for testing it with an actual game! <3

from godot-rapier-2d.

garf avatar garf commented on July 19, 2024 1

BTW, I tried to disable a separate thread, and it still crashes from time to time. Have no idea why. Also logs say nothing. Will check further. Thank you again for testing!

from godot-rapier-2d.

garf avatar garf commented on July 19, 2024 1

Frequently. Usually after a minute or two of playing.

from godot-rapier-2d.

Ughuuu avatar Ughuuu commented on July 19, 2024 1

My guess is it's because of the asserts most likely. There are a lot of asserts in the rapier wrapper.
After the rewrite of the code to rust, I will correctly handle these cases and not do asserts any more.
As a workaround, what you can do for now is change the .gdextension file to change in the editor to use the release version of the addon.
Eg. if you are on mac you would change from this:

macos.debug = "res://addons/godot-rapier2d/bin/libphysics_server_rapier2d.macos.template_debug.framework"
macos.release = "res://addons/godot-rapier2d/bin/libphysics_server_rapier2d.macos.template_release.framework"

to this:

macos.debug = "res://addons/godot-rapier2d/bin/libphysics_server_rapier2d.macos.template_release.framework"
macos.release = "res://addons/godot-rapier2d/bin/libphysics_server_rapier2d.macos.template_release.framework"

Or even easier, replace all template_debug in the extension with template_release.
The file name in question is godot-rapier2d.gdextension.

from godot-rapier-2d.

Ughuuu avatar Ughuuu commented on July 19, 2024

Can you upload a project, it's not immediately obvious what Just use it to detect collisions means. Or add more information at To reproduce field. Thanks

Looks like it's related to areas somehow?

from godot-rapier-2d.

Ughuuu avatar Ughuuu commented on July 19, 2024

Tested your project, it seems like it would be better to disable the run on separate thread. Not 100% tested with the separate thread thingy, but at least on my machine it generates crash at times.
As for the error, seems like it's just an error generated by the fact that the object is removed when the area event happens. I think I can safely remove that error warning.

from godot-rapier-2d.

Ughuuu avatar Ughuuu commented on July 19, 2024

Hm, I wonder if I can reproduce somehow. About how often would you say the crash happens, or after how long time?

from godot-rapier-2d.

garf avatar garf commented on July 19, 2024

Thank you! I will try to do it.

from godot-rapier-2d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.