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

Failed to load 'Assets/Mapbox/Core/Plugins/sqlite/x64/sqlite3.dll #361

Closed
gannebamm opened this issue Nov 14, 2017 · 3 comments
Closed

Failed to load 'Assets/Mapbox/Core/Plugins/sqlite/x64/sqlite3.dll #361

gannebamm opened this issue Nov 14, 2017 · 3 comments
Assignees
Labels
Milestone

Comments

@gannebamm
Copy link

gannebamm commented Nov 14, 2017

Hi there,
I am unable to develop with Unity 2017.1.1f1 and Mapbox SDK 1.2 on a Win10 OS x64 with Visual Studio 2017 Community Edition. I later want to deploy the app to a Hololens (x86). If I start a completly new project with the mapbox sdk 1.2 and try to 'play' the MeshGeneration.uniy example it gives me the following error:

Failed to load 'Assets/Mapbox/Core/Plugins/sqlite/x64/sqlite3.dll' with error 'Eine DLL-Initialisierungsroutine ist fehlgeschlagen. '. Mapbox.Platform.MbTiles.MbTilesDb:openOrCreateDb(String) (at Assets/Mapbox/Core/mapbox-sdk-cs/Platform/MbTiles/MbTiles.cs:134) Mapbox.Platform.MbTiles.MbTilesDb:openOrCreateDb(String) (at Assets/Mapbox/Core/mapbox-sdk-cs/Platform/MbTiles/MbTiles.cs:132) Mapbox.Platform.MbTiles.MbTilesDb:.ctor(String, Nullable1) (at Assets/Mapbox/Core/mapbox-sdk-cs/Platform/MbTiles/MbTiles.cs:32) Mapbox.Platform.Cache.MbTilesCache:initializeMbTiles(String) (at Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/MbTilesCache.cs:101) Mapbox.Platform.Cache.MbTilesCache:Get(String, CanonicalTileId) (at Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/MbTilesCache.cs:124) Mapbox.Platform.Cache.CachingWebFileSource:Request(String, Action1, Int32, CanonicalTileId, String) (at Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/CachingWebFileSource.cs:112) Mapbox.Unity.MapboxAccess:Request(String, Action1, Int32, CanonicalTileId, String) (at Assets/Mapbox/Unity/MapboxAccess.cs:157) Mapbox.Map.Tile:Initialize(IFileSource, CanonicalTileId, String, Action) (at Assets/Mapbox/Core/mapbox-sdk-cs/Map/Tile.cs:139) Mapbox.Unity.MeshGeneration.Factories.MapImageFactory:OnRegistered(UnityTile) (at Assets/Mapbox/Unity/MeshGeneration/Factories/MapImageFactory.cs:89) Mapbox.Unity.MeshGeneration.Factories.AbstractTileFactory:Register(UnityTile) (at Assets/Mapbox/Unity/MeshGeneration/Factories/AbstractTileFactory.cs:50) Mapbox.Unity.Map.AbstractMapVisualizer:LoadTile(UnwrappedTileId) (at Assets/Mapbox/Unity/Map/AbstractMapVisualizer.cs:158) Mapbox.Unity.Map.AbstractMap:TileProvider_OnTileAdded(UnwrappedTileId) (at Assets/Mapbox/Unity/Map/AbstractMap.cs:152) Mapbox.Unity.Map.AbstractTileProvider:AddTile(UnwrappedTileId) (at Assets/Mapbox/Unity/Map/AbstractTileProvider.cs:33) Mapbox.Unity.Map.RangeTileProvider:OnInitialized() (at Assets/Mapbox/Unity/Map/RangeTileProvider.cs:20) Mapbox.Unity.Map.AbstractTileProvider:Initialize(IMap) (at Assets/Mapbox/Unity/Map/AbstractTileProvider.cs:22) Mapbox.Unity.Map.BasicMap:Initialize(Vector2d, Int32) (at Assets/Mapbox/Unity/Map/BasicMap.cs:20) Mapbox.Unity.Map.AbstractMap:Start() (at Assets/Mapbox/Unity/Map/AbstractMap.cs:131)

@wilhelmberg
Copy link
Contributor

@gannebamm I just tried and I'm not able to reproduce with the 1.2.0 SDK.

Coud you check if your settings look like this:
for Assets/Mapbox/Core/Plugins/sqlite/x64/sqlite3.dll
image

for Assets/Mapbox/Core/Plugins/sqlite/x86/sqlite3.dll
image


Also check if you have Microsoft Visual C++ Redistributable runtime installed.
From the top of my head I think 2013 is required.

You can get them here:
https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads


If you got past this, remember to install SQLite for Universal Windows Platform into your UWP project for HoloLens:

https://www.mapbox.com/mapbox-unity-sdk/docs/windowsstore-uwp-hololens.html

@MiroMuse MiroMuse added this to the S17.4.4 milestone Nov 14, 2017
@gannebamm
Copy link
Author

I have found the issue: It was due to a not installed .net Framework 3.5. I had to install it by the dsim command with the win10 image.

@wilhelmberg
Copy link
Contributor

Interesting.
Glad you found the solution.
Thanks for posting back ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants