0
Cannot Reproduce

Codebase consistently deletes itself after playing.

Patricio 2 years ago • updated 2 years ago 11

Hey,

I was very excited to use Bolt, but I am consistently getting these errors. Basically, I will load and setup everything correctly (to my knowledge, just ran the built in setup thing), and it works ok (usually), until I press play. When I return from play, all the codebases are gone. Keep in mind, this is with a fresh install of Unity 2017.1.0f3 (I did a fresh install, because I got the same error when I used 2017.1.1f. 

Please help, Bolt looks awesome and I very much want to use it!

Here is a gif of it happening.

Failed to load 'Assets/Plugins/Assemblies/sqlite3.dll' with error 'A dynamic link library (DLL) initialization routine failed.
Ludiq.Dependencies.Sqlite.SQLiteConnection:.ctor(String, Boolean) (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Dependencies/SQLite/SQLite.cs:193)
Ludiq.Dependencies.Sqlite.SQLiteConnection:.ctor(String, Boolean) (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Dependencies/SQLite/SQLite.cs:191)
Bolt.UnitBase:CacheStaticUnits() (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Editor/Options/UnitBase.cs:135)
Bolt.TypeOptionsPage:Complete() (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Editor/Windows/TypeOptionsPage.cs:94)
Bolt.TypeOptionsPage:OnContentGUI() (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Editor/Windows/TypeOptionsPage.cs:81)
Ludiq.Page:DrawContent() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/Page.cs:56)
Ludiq.Wizard:OnGUI() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/Wizard.cs:103)
Ludiq.WrappedEditorWindow:OnGUI() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/WrappedEditorWindow.cs:41)
UnityEditor.HostView:OnGUI()
<em></em>
Failed to load 'Assets/Plugins/Assemblies/sqlite3.dll' with error 'A dynamic link library (DLL) initialization routine failed.
'.
Ludiq.Dependencies.Sqlite.SQLiteConnection:.ctor(String, SQLiteOpenFlags, Boolean) (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Dependencies/SQLite/SQLite.cs:240)
Ludiq.Dependencies.Sqlite.SQLiteConnection:.ctor(String, SQLiteOpenFlags, Boolean) (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Dependencies/SQLite/SQLite.cs:228)
Ludiq.Dependencies.Sqlite.SQLiteConnection:.ctor(String, Boolean) (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Dependencies/SQLite/SQLite.cs:191)
Bolt.UnitBase:CacheStaticUnits() (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Editor/Options/UnitBase.cs:135)
Bolt.TypeOptionsPage:Complete() (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Editor/Windows/TypeOptionsPage.cs:94)
Bolt.TypeOptionsPage:OnContentGUI() (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Editor/Windows/TypeOptionsPage.cs:81)
Ludiq.Page:DrawContent() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/Page.cs:56)
Ludiq.Wizard:OnGUI() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/Wizard.cs:103)
Ludiq.WrappedEditorWindow:OnGUI() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/WrappedEditorWindow.cs:41)
UnityEditor.HostView:OnGUI()
Failed to save option to file.
System.DllNotFoundException: sqlite3
  at (wrapper managed-to-native) Ludiq.Dependencies.Sqlite.SQLite3:Open (byte[],intptr&,int,intptr)
  at Ludiq.Dependencies.Sqlite.SQLiteConnection..ctor (System.String databasePath, SQLiteOpenFlags openFlags, Boolean storeDateTimeAsTicks) [0x00043] in C:\Users\Lazlo\Projects\Ludiq\Ludiq.Core\Editor\Dependencies\SQLite\SQLite.cs:228 
  at Ludiq.Dependencies.Sqlite.SQLiteConnection..ctor (System.String databasePath, Boolean storeDateTimeAsTicks) [0x00000] in C:\Users\Lazlo\Projects\Ludiq\Ludiq.Core\Editor\Dependencies\SQLite\SQLite.cs:191 
  at Bolt.UnitBase.CacheStaticUnits () [0x00136] in C:\Users\Lazlo\Projects\Ludiq\Bolt.Flow\Editor\Options\UnitBase.cs:135 
UnityEngine.Debug:LogError(Object)
Bolt.UnitBase:CacheStaticUnits() (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Editor/Options/UnitBase.cs:145)
Bolt.TypeOptionsPage:Complete() (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Editor/Windows/TypeOptionsPage.cs:94)
Bolt.TypeOptionsPage:OnContentGUI() (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Editor/Windows/TypeOptionsPage.cs:81)
Ludiq.Page:DrawContent() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/Page.cs:56)
Ludiq.Wizard:OnGUI() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/Wizard.cs:103)
Ludiq.WrappedEditorWindow:OnGUI() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/WrappedEditorWindow.cs:41)
UnityEditor.HostView:OnGUI()
Failed to load 'Assets/Plugins/Assemblies/sqlite3.dll' with error 'A dynamic link library (DLL) initialization routine failed.
'.
Ludiq.Dependencies.Sqlite.SQLiteConnection:Dispose(Boolean) (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Dependencies/SQLite/SQLite.cs:1540)
Ludiq.Dependencies.Sqlite.SQLiteConnection:Dispose(Boolean) (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Dependencies/SQLite/SQLite.cs:1539)
Ludiq.Dependencies.Sqlite.SQLiteConnection:Finalize() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Dependencies/SQLite/SQLite.cs:1528)
Bolt Version:
Unity Version:
.NET Version:

So I tried running Bolt on my laptop with 2017.1.1f1, and I do not get these errors. I wonder what's wrong with my PC.

Try deleting Bolt completely from your desktop and do a fresh install from the Asset store. You can occasionally get a corrupted install, probably not the issue but it happens and easy enough to test.

Just tried this and no luck :(

Just a wild guess, did you create this in a version previous to 2017.2 then open in 2017.2 after? And you regenerated your database of units, and added the Unity new assemblies. They aren't default till next update. My guess was maybe you did that, and since the assemblies changed, maybe you didn't change them to reflect that. Maybe you have nodes created already, but the assembly isn't actually there, and it's failing to read it.

Nah, I deleted Unity completely and made a new project once I installed 2017.1.  Should I install 2017.2?

+1

No, not unless you want to. The assembly changes are the only thing you'd have to do different in 2017.2. but if a project was created fresh in 2017.2  it just needs the new unity assemblies added. Until Bolt 1.1.3. but if you created a fresh one in 2017.1 and a different fresh one in 2017.2 and now getting that. It's not the issue. Just going to have to wait on Lazlo to check this out. He'll understand what your errors actually mean in respect to Bolt.

Under Review

It seems unrelated to Bolt itself, more to loading SQLite, the library used for the unit database.

Can you confirm that this file exists?

Assets/Plugins/Assemblies/sqlite3.dll

What operating system are you using? 

It seems like a common error on Google; I wonder if you SQLite dll got corrupted. Have you tried reimporting?

+1

Yeah, I'm starting to think it's an issue with my pc in particular. 
Yeah sqlite3.dll is there. I tried reimporting it and the error appears right after it adds the codebases. 
Also I'm using Windows 10.

+1

Okay, so I looked into the whole .dll thingy. I ended up getting sqlite3 from elsewhereand just replacing it annnd it works so far! 

Cannot Reproduce

Ok, good to know! If ever someone else has the issue, can I ask where you got your DLL from?