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

Breakpoint crashes after closing database/db.close() #61

Open
Terria-K opened this issue Nov 6, 2021 · 1 comment
Open

Breakpoint crashes after closing database/db.close() #61

Terria-K opened this issue Nov 6, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Terria-K
Copy link

Terria-K commented Nov 6, 2021

Environment:

  • OS: Windows
  • Godot version: 3.4 Stable
  • godot-sqlite version: 3.0-assetlib

Issue description:
I'm trying to use breakpoint after I call a function with db.close() inside of it. But whenever that function was called and breakpoint has reached. The game window just crashes instead of just staying. It didn't gave me an information of an object on the debugger as well.

Steps to reproduce:

  1. Create a function with db.close() inside of it.
  2. Put the function in the _ready() function and put a breakpoint below of the function.
  3. Start the scene and wait for it.

Expected Result: The game will stop when the breakpoint has reached and will give you an information of an object on the debugger, but it will not close the window.
Actual Result: The game will stop but with some crashing noise, and will closed the window when the breakpoint has reached. It will not give you an information of an object on the debugger.

Minimal reproduction project:

const SQLITE := preload("res://addons/godot-sqlite/bin/gdsqlite.gdns")

var db
var db_name := "test"

func _ready() -> void:
read_from_db()
print("Put a breakpoint here")

func read_from_db():
db = SQLITE.new()
db.path = db_name
db.open_db()
db.close_db()

Additional context
No additional info.

@Terria-K Terria-K added the bug Something isn't working label Nov 6, 2021
@2shady4u
Copy link
Owner

2shady4u commented Nov 7, 2021

I can replicate the issue on my end... 🤔
Not sure why it is crashing though... I'll have to hook up the VS debugger to see actually what is happening.

Also, the issue might be related to godot-cpp itself and not something I can easily fix in this plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants