You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description:
When I try to preload and then create an instance of gdscript.gdns the debugger and game crash when callaing SQLite.new(). I'm following along with the video linked in the readme and have the similar code. There is no stack trace or error in the logs of what is going on. Here's a video showing the issue Video of overview Steps to reproduce:
Start a project in Godot 3.3.1 and through AssetLib add "godot-sqlite", add a 2D scene and attach the following script (it fails on db = SQLite.new()) and have a debug point in the script and try to debug it:
extends Node2D
const SQLite = preload("res://addons/godot-sqlite/bin/gdsqlite.gdns")
var db # db instance
var db_name = "res://DataStore/sqaures" # db path after creating db
func _ready():
commit_data_to_db()
func commit_data_to_db():
db = SQLite.new()
db.path = db_name
db.open_db()
var tableName = "GameInfo"
var dict : Dictionary = Dictionary()
var date = OS.get_datetime();
dict["DateTime"] = str(date.year) + "-" + str(date.month) + "-" + \
str(date.day) + " " + str(date.hour) + ":" + str(date.minute) + ":" + str(date.second)
dict["Score"] = 0
dict["Difficuly"] = 0
db.insert_row(tableName, dict)
db.close_db()
Minimal reproduction project:
See previous section.
Additional context
I've tried a couple version of Godot including Mono versions (which is what I use to develop on). Any help would be appreciated! Thank you
EDIT: Tested on 3.3.2.stable.official as I saw that's the version listed in the 3.0 release
The text was updated successfully, but these errors were encountered:
I tried the demo in this repository and it fails on the SQLite.new() as well, though there is a bit more information that shows up when loading this project. Maybe it can help
ERROR: Another resource is loaded from path 'res://addons/godot-sqlite/bin/gdsqlite.gdnlib' (possible cyclic resource inclusion).
At: core/resource.cpp:82```
So it appears if I don't have a breakpoint it works... I had set a breakpoint on SQLite.new() and that was causing it to break. Is there an editor or something in the debugger that is missing that causes the addon to crash?
Environment:
Issue description:
When I try to preload and then create an instance of
gdscript.gdns
the debugger and game crash when callaingSQLite.new()
. I'm following along with the video linked in thereadme
and have the similar code. There is no stack trace or error in the logs of what is going on. Here's a video showing the issue Video of overviewSteps to reproduce:
Start a project in Godot 3.3.1 and through AssetLib add "godot-sqlite", add a 2D scene and attach the following script (it fails on
db = SQLite.new()
) and have a debug point in the script and try to debug it:Minimal reproduction project:
See previous section.
Additional context
I've tried a couple version of Godot including Mono versions (which is what I use to develop on). Any help would be appreciated! Thank you
EDIT: Tested on 3.3.2.stable.official as I saw that's the version listed in the 3.0 release
The text was updated successfully, but these errors were encountered: