Space Shooter problems

Hi again, @borrrden

I cloned the git for space-shooter and ran into some errors trying to play it on my system.

Windows 8.1 (64-bit)
Unity 5.1.1f1 Personal

  1. When I try to run the game in the editor, I get this error:

Failed to load ‘Assets/Plugins/x64/sqlite3.dll’ with error ‘The operation completed successfully.
’, GetDllDirectory returned ‘’. If GetDllDirectory returned non empty path, check that you’re using SetDirectoryDll correctly.
SQLitePCL.raw:sqlite3_libversion()
SQLitePCL.raw:sqlite3_libversion()
Couchbase.Lite.Shared.SqlitePCLRawStorageEngine:Open(String)
Couchbase.Lite.Database:Open()
Couchbase.Lite.Manager:GetDatabase(String)
c__Iterator2:MoveNext() (at Assets/Scripts/AssetChangeListener.cs:87)

Any ideas?

  1. So then I tried Build & Run, and the game starts, the music plays, the ship fires bullets… but it hangs on the “Loading…” message and never creates any rocks. I have to alt-f4 to quit.

Here are the logs from my cmd prompts, which hopefully will help you out. First the sg.bat window:

C:\Users\David\Documents\GitHub\space-shooter>sg.bat
15:16:25.079434 Enabling logging: [REST REST+ HTTP HTTP+ Access Cache Shadow Sha
dow+ CRUD CRUD+ Changes Changes+ JSON JSON+]
15:16:25.080434 ==== Couchbase Sync Gateway/1.0.4(34;04138fd) ====
15:16:25.081434 Configured Go to use all 4 CPUs; setenv GOMAXPROCS to override t
his
15:16:25.082435 WARNING: Error setting MaxFileDescriptors to 5000: Unsupported o
n Windows – rest.setMaxFileDescriptors() at config.go:378
15:16:25.082435 Opening db /spaceshooter as bucket “ss-sync”, pool “default”, se
rver walrus:.
15:16:25.083435 Opening Walrus database ss-sync on walrus:.
15:16:25.092441 Cache: Initialized changeCache with nextSequence=#2
15:16:25.092441 Shadow: Watching doc changes…
15:16:25.349455 Access: Computed channels for “”: !:1,*:1
15:16:25.536466 Access: Computed roles for “”:
15:16:25.536466 Reset guest user to config
15:16:25.536466 Changes+: Notifying that “ss-sync” changed (keys="{_sync:user:}"
) count=2
15:16:25.536466 Starting admin server on 127.0.0.1:4985
15:16:25.539467 Starting server on :4984 …
2015/07/03 15:16:27 Walrus: Warning: Couldn’t save walrus bucket: rename walrust
emp515865431 ss-sync.walrus: Cannot create a file when that file already exists.

15:17:57.028742 HTTP: #001: PUT /spaceshooter/alternateship
15:17:57.031737 CRUD+: Invoking sync on doc “alternateship” rev 1-1c3545754e1ee0
9226444d361e17840a
15:17:57.144744 Cache: SAVING #3
15:17:57.144744 Cache: Received #3 after 1ms (“alternateship” / “1-1c3545754e1
ee09226444d361e17840a”)
15:17:57.145744 CRUD: Stored doc “alternateship” / "1-1c3545754e1ee09226444d361e
17840a"
15:17:57.145744 HTTP+: #001: --> 201 (118.0 ms)
15:17:57.145744 Cache: Deferring #3 (1 now waiting for #2#2)
15:17:57.189752 HTTP: #002: PUT /spaceshooter/alternateship/data?rev=1-1c354575
4e1ee09226444d361e17840a
15:17:57.214749 CRUD+: Invoking sync on doc “alternateship” rev 2-f50c524c5130bb
62cabdfd542e8b8369
15:17:57.215754 CRUD+: Saving old revision “alternateship” / “1-1c3545754e1ee092
26444d361e17840a” (40 bytes)
15:17:57.215754 CRUD+: Backed up obsolete rev “alternateship”/"1-1c3545754e1ee09
226444d361e17840a"
15:17:57.215754 Cache: SAVING #4
15:17:57.216748 CRUD: Stored doc “alternateship” / "2-f50c524c5130bb62cabdfd542e
8b8369"
15:17:57.216748 Cache: Received #4 after 0ms (“alternateship” / “2-f50c524c513
0bb62cabdfd542e8b8369”)
15:17:57.216748 Cache: Deferring #4 (2 now waiting for #2#2)
15:17:57.216748 HTTP+: #002: --> 201 (27.0 ms)
2015/07/03 15:17:59 Walrus: Warning: Couldn’t save walrus bucket: rename walrust
emp583786698 ss-sync.walrus: Cannot create a file when that file already exists.

15:18:27.363491 HTTP: #003: GET /spaceshooter/player_data
15:18:27.364485 HTTP: #003: --> 404 missing (1.0 ms)
15:18:57.943246 HTTP: #004: GET /
15:18:57.944247 HTTP+: #004: --> 200 (1.0 ms)
15:18:58.130259 HTTP: #005: GET /favicon.ico/
15:18:58.131257 HTTP: #005: --> 400 invalid database name “favicon.ico” (1.
0 ms)
15:19:25.111816 WARNING: changeCache: Giving up, accepting #3 even though #2 is
missing – db.(changeCache)._addPendingLogs() at change_cache.go:320
15:19:25.128811 Cache: #3 ==> channel "
"
15:19:25.128811 Cache: #4 ==> channel “
15:19:25.129811 Changes+: Notifying that “ss-sync” changed (keys=”{
}”) count=3
15:20:35.181856 HTTP: #006: GET /spaceshooter/player_data
15:20:35.181856 HTTP: #006: --> 404 missing (0.0 ms)
15:21:42.893756 HTTP: #007: GET /spaceshooter/player-data
15:21:42.893756 HTTP: #007: --> 404 missing (0.0 ms)
15:21:43.034765 HTTP: #008: GET /favicon.ico/
15:21:43.034765 HTTP: #008: --> 400 invalid database name “favicon.ico” (0.
0 ms)
15:22:01.455827 HTTP: #009: GET /spaceshooter/player_data
15:22:01.455827 HTTP: #009: --> 404 missing (0.0 ms)
15:22:01.580841 HTTP: #010: GET /favicon.ico/
15:22:01.581835 HTTP: #010: --> 400 invalid database name “favicon.ico” (1.
0 ms)

And then we have the initialize_data.bat followed by set_ship.py (which also failed).

C:\Users\David\Documents\GitHub\space-shooter\script>initialize_data.bat
{“id”:“alternateship”,“ok”:true,“rev”:“1-1c3545754e1ee09226444d361e17840a”}{“id”
:“alternateship”,“ok”:true,“rev”:“2-f50c524c5130bb62cabdfd542e8b8369”}

C:\Users\David\Documents\GitHub\space-shooter\script>set_ship.py “alternateship"
Traceback (most recent call last):
File “C:\Users\David\Documents\GitHub\space-shooter\script\set_ship.py”, line
14, in
rev = data[”_rev"]
KeyError: ‘_rev’

Thanks again.

Kind regards,
David

Failed to load ‘Assets/Plugins/x64/sqlite3.dll’ with error 'The operation completed successfully.

I love a good error message :stuck_out_tongue_closed_eyes:

This project is mostly a demonstration so I never actually tried to build and run it, I always ran it in the editor. I think I know what it needs to run outside the editor. However, the message you are getting is something I have run into many times. I don’t know how it made its way into your project but it happens when you call the C function SetDllDirectory with a bad path. I’ve pushed up a small fix but the gist of it is this:

Replace the second line of Start in AssetChangeListener to this:

#if UNITY_EDITOR
	Log.SetLogger(new UnityLogger());
	SQLitePCL.SQLite3Provider.SetDllDirectory (null);
#elif UNITY_STANDALONE_WIN
	SQLitePCL.SQLite3Provider.SetDllDirectory (Application.dataPath);
#endif

That should get rid of the first message, and allow the build to work also (I never actually used it as a build, just in the editor always as a demonstration). As far as the python error goes, that will happen if you run the script before the game actually successfully starts since it is trying to edit a non-existent document. This is working on my Windows machine now so let me know if it still doesn’t work.

Hi @borrrden,

Didn’t fix it for me. I trashed the whole thing and re-cloned and it still throws the exact same “failed to load” error.

When I bring up SQLitePCL.SQLite3Provider.SetDllDirectory in the Assembly Browser it shows:

using System;
public static bool SetDllDirectory (string lpPathName)
{
return true;
}

That looks like just a function stub… and no wonder it’s not changing my dll directory.

Is it possible that you are working from a different version of SQLitePCL.raw.dll or Couchbase.Lite.dll (or another dll) than the ones that are in the git repo?

I ask, because I noticed that the files in the latest Unity release were different from the ones in the space-shooter repo. So at first, I copied all of those files into my Plugins folder, which lead to a new compile error…

Assets/Scripts/AssetChangeListener.cs(47,61): error CS0433: The imported type `Couchbase.Lite.Unity.UnityMainThreadScheduler’ is defined multiple times

Assets/Scripts/AssetChangeListener.cs(86,35): error CS0433: The imported type `Couchbase.Lite.Unity.UnityLogger’ is defined multiple times

Turns out that from the latest Unity release both Couchbase.Lite.dll AND Couchbase.Lite.Unity.dll implement UnityMainThreadScheduler(). So, I put the OLD Couchbase.Lite.dll (the one from the space-shooter repo) back into my Plugins directory.

And then I end up with the same old “failed to load” error…

Please update the dlls in the space-shooter repo, I think that’s the problem.

Kind regards,
David

The stub thing was what tipped me off! I’ve made this mistake before, sadly enough, where I’ve put an incorrect version of SQLitePCL.Raw in for whatever platform. I put the stubs in on the other platforms because they are not needed and cause more error messages on other platforms, but on the standalone version it should be there (it should call the native SetDllDirectory from kernel32.dll). That’s why the logic had no effect for you but worked for me (my DllDirectory was already cleared, but apparently yours is not and clearing it had no effect because of the mistaken stub). I ran this on my OS X machine without the proper #if guard and noticed the error message telling me that kernel32.dll could not be found, so I’m pretty sure it’s the right version now.

Also, about the duplicate symbols, beta 2 and newer no longer have an assembly called Couchbase.Lite.Unity. I was building it on top of .NET 3.5 Couchbase Lite before, but now it’s a first class project built right from the shared project, and so has just a Couchbase.Lite assembly like the other platforms.

That being said, I had already done some upgrade work on my OS X machine, but not pushed it. So the DLLs are newer now but not the newest. However if you attempt to replace them like you did, it should work this time. I’ll push up what I’ve got so you can have a look.

Sorry… it’s still not working…

SetDllDirectory is no longer a stub, but it still doesn’t work correctly. No matter what I put in for its parameter, I still get the same error message as before. I’ve tried:

SQLitePCL.SQLite3Provider.SetDllDirectory(null);

and

SQLitePCL.SQLite3Provider.SetDllDirectory (“C:\Users\David\Documents\GitHub\space-shooter”);

and

SQLitePCL.SQLite3Provider.SetDllDirectory (Application.dataPath);

and

SQLitePCL.SQLite3Provider.SetDllDirectory (“WHY_WONT_YOU_DO_ANYTHING_STUPID_FUNCTION!”);

These all return this error message:

Failed to load ‘Assets/Plugins/x64/sqlite3.dll’ with error ‘The operation completed successfully.
’, GetDllDirectory returned ‘’. If GetDllDirectory returned non empty path, check that you’re using SetDirectoryDll correctly.
SQLitePCL.raw:sqlite3_libversion_number()
SQLitePCL.raw:sqlite3_libversion_number()
Couchbase.Lite.Database:.cctor() (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Database.cs:143)
Couchbase.Lite.Manager:GetDatabaseWithoutOpening(String, Boolean) (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Manager.cs:520)
Couchbase.Lite.Manager:GetDatabaseWithoutOpening(String, Boolean) (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Manager.cs:509)
Couchbase.Lite.Manager:GetDatabase(String) (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Manager.cs:318)
c__Iterator2:MoveNext() (at Assets/Scripts/AssetChangeListener.cs:61)

Thanks for your help. Maybe just take the space-shooter that’s working on your windows machine and put that in a brand new repo so that I can be sure I have all the exact same files as that machine?

Kind regards,
David

The version on my windows machine is literally that repo. I cloned it and ran it. Can you try again and look at the editor logs to see if any other error messages are being printed? It’s located at

%localappdata%\Unity\Editor\

sure thing. I’ll try to get to it tomorrow, but it might not be until Monday (US-Central time zone here)

No rush. We have weekends here too :wink:

Yeah, well, I’m getting so obsessed with couchbase, that I worked 10 hours on it on the frickin 4th of July!

Ok, back at my Windows box. I trashed, then re-cloned the space-shooter. Once that downloaded, I ran the sg.bat. That makes note of one warning but otherwise seems to work fine. Here’s the warning:

WARNING: Error setting MaxFileDescriptors to 5000: Unsupported on Windows – rest.setMaxFileDescriptors() at config.go:378

Next I run script\initialize_data.bat. There’s no error/warning on that cmd screen sg’s cmd screen looks like it worked, but there’s a Warning at the end:

Walrus: Warning: Couldn’t save walrus bucket: rename walrustemp042914910 ss-sync.walrus: Cannot create a file when that file already exists.

Ok, now I open up Unity, open other, and select my git repo folder. Upon loading, the Console has this message:

Rebuilding Library because the asset database could not be found!

From here I press the Play triangle to play it in the editor. The console has 6 items now. Here they are:
1

Data path = C:/Users/David/AppData/LocalLow/DefaultCompany/Space Shooter
UnityEngine.Debug:LogFormat(String, Object)
c__Iterator2:MoveNext() (at Assets/Scripts/AssetChangeListener.cs:53)

2

Manager: Starting Manager version: Unofficial
UnityEngine.Debug:Log(Object)
Couchbase.Lite.Unity.UnityLogger:LogUnity(String) (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Unity/UnityLogger.cs:54)
Couchbase.Lite.Unity.c__AnonStorey4:<>m__0() (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Unity/UnityLogger.cs:145)
System.Threading.Tasks.TaskScheduler:TryExecuteTask(Task)
Couchbase.Lite.Util.SingleThreadScheduler:QueueTask(Task) (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Util/SingleThreadScheduler.cs:65)
System.Threading.Tasks.TaskFactory:StartNew(Action)
Couchbase.Lite.Unity.UnityLogger:I(String, String) (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Unity/UnityLogger.cs:143)
Couchbase.Lite.Util.Log:I(String, String) (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Util/Log.cs:194)
Couchbase.Lite.Manager:.ctor(DirectoryInfo, ManagerOptions) (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Manager.cs:194)
Couchbase.Lite.Manager:get_SharedInstance() (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Manager.cs:111)
c__Iterator2:MoveNext() (at Assets/Scripts/AssetChangeListener.cs:61)

3

Failed to load ‘Assets/Plugins/x64/sqlite3.dll’ with error 'The operation completed successfully.
', GetDllDirectory returned ‘’. If GetDllDirectory returned non empty path, check that you’re using SetDirectoryDll correctly.
SQLitePCL.raw:sqlite3_libversion_number()
SQLitePCL.raw:sqlite3_libversion_number()
Couchbase.Lite.Database:.cctor() (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Database.cs:143)
Couchbase.Lite.Manager:GetDatabaseWithoutOpening(String, Boolean) (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Manager.cs:520)
Couchbase.Lite.Manager:GetDatabaseWithoutOpening(String, Boolean) (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Manager.cs:509)
Couchbase.Lite.Manager:GetDatabase(String) (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Manager.cs:318)
c__Iterator2:MoveNext() (at Assets/Scripts/AssetChangeListener.cs:61)

4

Failed to load ‘Assets/Plugins/x64/sqlite3.dll’ with error 'The operation completed successfully.
', GetDllDirectory returned ‘’. If GetDllDirectory returned non empty path, check that you’re using SetDirectoryDll correctly.
SQLitePCL.SQLite3Provider:SQLitePCL.ISQLite3Provider.sqlite3_libversion_number()
SQLitePCL.SQLite3Provider:SQLitePCL.ISQLite3Provider.sqlite3_libversion_number()
SQLitePCL.raw:sqlite3_libversion_number()
Couchbase.Lite.Database:.cctor() (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Database.cs:143)
Couchbase.Lite.Manager:GetDatabaseWithoutOpening(String, Boolean) (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Manager.cs:520)
Couchbase.Lite.Manager:GetDatabaseWithoutOpening(String, Boolean) (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Manager.cs:509)
Couchbase.Lite.Manager:GetDatabase(String) (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Manager.cs:318)
c__Iterator2:MoveNext() (at Assets/Scripts/AssetChangeListener.cs:61)

5

Exception: sqlite3.dll was not loaded.
SQLitePCL.SQLite3Provider+NativeMethods…cctor ()
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for NativeMethods
SQLitePCL.SQLite3Provider.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number ()
SQLitePCL.raw.sqlite3_libversion_number ()
Couchbase.Lite.Database…cctor () (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Database.cs:143)
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Couchbase.Lite.Database
Couchbase.Lite.Manager.GetDatabaseWithoutOpening (System.String name, Boolean mustExist) (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Manager.cs:509)
Couchbase.Lite.Manager.GetDatabase (System.String name) (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Manager.cs:318)
AssetChangeListener+c__Iterator2.MoveNext () (at Assets/Scripts/AssetChangeListener.cs:61)

6

Exception: sqlite3.dll was not loaded.
SQLitePCL.SQLite3Provider+NativeMethods…cctor ()
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for NativeMethods
SQLitePCL.SQLite3Provider.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number ()
SQLitePCL.raw.sqlite3_libversion_number ()
Couchbase.Lite.Database…cctor () (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Database.cs:143)
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Couchbase.Lite.Database
Couchbase.Lite.Manager.GetDatabaseWithoutOpening (System.String name, Boolean mustExist) (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Manager.cs:509)
Couchbase.Lite.Manager.GetDatabase (System.String name) (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Manager.cs:318)
AssetChangeListener+c__Iterator2.MoveNext () (at Assets/Scripts/AssetChangeListener.cs:61)

Attached is the Editor.log from the directory you mentioned. I’ll try the new repo on my Mac tonight and let you know how that goes. Otherwise, I could share my screen through a Skype or Hangout call if that would help.

Kind regards,
David

Editor.zip (19.4 KB)

This build of the game works just fine on my MacBook Pro. Awesome!

Kind regards,
David

@borrrden Any luck on the Windows error?

Nope, I tried to download the log last night and discourse was not having it. I’ll see if it downloads today. I’m thinking now that for some reason you have some kind of permissions problem or some other problem on the native DLL that is preventing you from loading it. I checked around and that error message sometimes happens for those reasons. Does that sound remotely possible?

Yeah, that log is not downloading for me…can you put it into a gist?

Here’s the gist:

Excellent. I didn’t get a chance to work on this today but I will have another look tomorrow. The path it is searching for the dll in is suspicious to me. I’ll try to have a look at what my system says about it and hopefully I’ll find something.

@dbergan In one of your scripts, can you try to access the variable System.Environment.CurrentDirectory when you run from the editor, and see if it matches the location of your project files? If not, that could be a possible cause of this error. The SQLitePCL.Raw dll that I edited will first look for AppDomain.CurrentDomain.BaseDirectory (which is null in Unity) and then System.Environment.CurrentDirectory and then whatever returns from GetDllDirectory() in that order. I was relying on the second one for editor builds.

Hi @borrrden,

I modified AssetChangeListener as so… (line 56-64)

#if UNITY_EDITOR_WIN
      Log.SetLogger(new UnityLogger());
      SQLitePCL.SQLite3Provider.SetDllDirectory (null);
#elif UNITY_STANDALONE_WIN
      SQLitePCL.SQLite3Provider.SetDllDirectory (Application.dataPath);
#endif
      Debug.LogFormat (“System.Environment.CurrentDirectory = {0}”, System.Environment.CurrentDirectory);
      Debug.LogFormat (“AppDomain.CurrentDomain.BaseDirectory = {0}”, AppDomain.CurrentDomain.BaseDirectory);
      _db = Manager.SharedInstance.GetDatabase (“spaceshooter”);

The console thus shows:

System.Environment.CurrentDirectory = C:\Users\David\Documents\GitHub\space-shooter

and

AppDomain.CurrentDomain.BaseDirectory =

That is indeed the directory where space-shooter lies on my hard drive, and C:\Users\David\Documents\GitHub\space-shooter\Assets\Plugins\x64\sqlite3.dll is where we’re trying to get. Looking at the error message again…

Failed to load ‘Assets/Plugins/x64/sqlite3.dll’ with error ‘The operation completed successfully.
’, GetDllDirectory returned ‘’. If GetDllDirectory returned non empty path, check that you’re using SetDirectoryDll correctly.

Maybe it’s a case of forward-slashes vs back-slashes? (That used to be a file-loading concern back when I was doing c++ in college 14 years ago… even though I think all modern compilers automatically solve those issues nowadays… it might be worth a try…?)

Kind regards,
David

Good news! I believe I’ve found the problem. I don’t know if this is something that has changed inside Unity3D or if it never worked in the first place and just happened to work on my system but CurrentDirectory is not the correct place to look for this DLL. I guess I happened to have the correct DLL on another system path so it was picking it up anyway. I found a way to locate the managed DLL at runtime (SQLitePCL.raw.dll) so now I can use that as a reference. As a bonus, this eliminates the need for SetDllDirectory. I have updated the project git repo, and also the SQLitePCL.raw source. You can see how it loads the DLL here:

Hi Jim,

I still get the same old error on my Windows box.

Failed to load ‘Assets/Plugins/x64/sqlite3.dll’ with error ‘The operation completed successfully.
’, GetDllDirectory returned ‘’. If GetDllDirectory returned non empty path, check that you’re using SetDirectoryDll correctly.
SQLitePCL.raw:sqlite3_libversion_number()
SQLitePCL.raw:sqlite3_libversion_number()
Couchbase.Lite.Database:.cctor() (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Database.cs:143)
Couchbase.Lite.Manager:GetDatabaseWithoutOpening(String, Boolean) (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Manager.cs:520)
Couchbase.Lite.Manager:GetDatabaseWithoutOpening(String, Boolean) (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Manager.cs:509)
Couchbase.Lite.Manager:GetDatabase(String) (at /Users/borrrden/Development/couchbase-lite-net/src/Couchbase.Lite.Shared/Manager.cs:318)
c__Iterator2:MoveNext() (at Assets/Scripts/AssetChangeListener.cs:58)

Kind regards,
David

I tried deleting the plugin all together and I think I got a new lead. When the library can’t find the file it gives a different message so that suggests to me that it is finding it ok but cannot load it. What versions of the C++ runtime do you have installed on your computer? I believe you will need the Visual Studio 2012 C++ redistributable installed for sqlite3.dll to load (msvcr110.dll, which should be in C:\Windows\System32)