question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue while building release build (exe)

See original GitHub issue

After successful import I built a game using hand tracking graph and Now I’m trying to build an exe for Windows but it is getting failed when I run the exe. Here are the logs:

Fallback handler could not load library C:/unity assets/HandBallShooter/build/HandBallShooter_Data/Mono/mediapipe_c
Fallback handler could not load library C:/unity assets/HandBallShooter/build/HandBallShooter_Data/Mono/mediapipe_c.dll
Fallback handler could not load library C:/unity assets/HandBallShooter/build/HandBallShooter_Data/Mono/mediapipe_c
The file can not be loaded because it was created for another build target that is not compatible with this platform.
Please make sure to build AssetBundles using the build target platform that it is used by.
File's Build target is: 13
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.AssetBundle:LoadFromFile (string)
Mediapipe.AssetBundleManager:LoadAssetBundle () (at C:/unity assets/HandBallShooter/Packages/com.github.homuler.mediapipe/Runtime/Scripts/Util/AssetBundleManager.cs:68)
Mediapipe.AssetBundleManager:PrepareAsset (string,string,bool) (at C:/unity assets/HandBallShooter/Packages/com.github.homuler.mediapipe/Runtime/Scripts/Util/AssetBundleManager.cs:89)
AssetBundleLoader:PrepareAsset (string,string,bool) (at C:/unity assets/HandBallShooter/Assets/Scripts/ResourceManager/AssetBundleLoader.cs:13)
DemoGraph:PrepareDependentAsset (string,string,bool) (at C:/unity assets/HandBallShooter/Assets/Scripts/DemoGraph.cs:192)
DemoGraph:PrepareDependentAsset (string,bool) (at C:/unity assets/HandBallShooter/Assets/Scripts/DemoGraph.cs:196)
HandTrackingGraph:PrepareDependentAssets () (at C:/unity assets/HandBallShooter/Assets/Graphs/HandTracking/Scripts/HandTrackingGraph.cs:122)
DemoGraph:Initialize () (at C:/unity assets/HandBallShooter/Assets/Scripts/DemoGraph.cs:46)
MainController/<RunGraph>d__57:MoveNext () (at C:/unity assets/HandBallShooter/Assets/MainController.cs:323)
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)

[C:/unity assets/HandBallShooter/Packages/com.github.homuler.mediapipe/Runtime/Scripts/Util/AssetBundleManager.cs line 68]

Unknown error occurred while loading 'archive:/CAB-9088be7d56680ae49a9209cb85ca3cb5/CAB-9088be7d56680ae49a9209cb85ca3cb5'.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.AssetBundle:LoadFromFile (string)
Mediapipe.AssetBundleManager:LoadAssetBundle () (at C:/unity assets/HandBallShooter/Packages/com.github.homuler.mediapipe/Runtime/Scripts/Util/AssetBundleManager.cs:68)
Mediapipe.AssetBundleManager:PrepareAsset (string,string,bool) (at C:/unity assets/HandBallShooter/Packages/com.github.homuler.mediapipe/Runtime/Scripts/Util/AssetBundleManager.cs:89)
AssetBundleLoader:PrepareAsset (string,string,bool) (at C:/unity assets/HandBallShooter/Assets/Scripts/ResourceManager/AssetBundleLoader.cs:13)
DemoGraph:PrepareDependentAsset (string,string,bool) (at C:/unity assets/HandBallShooter/Assets/Scripts/DemoGraph.cs:192)
DemoGraph:PrepareDependentAsset (string,bool) (at C:/unity assets/HandBallShooter/Assets/Scripts/DemoGraph.cs:196)
HandTrackingGraph:PrepareDependentAssets () (at C:/unity assets/HandBallShooter/Assets/Graphs/HandTracking/Scripts/HandTrackingGraph.cs:122)
DemoGraph:Initialize () (at C:/unity assets/HandBallShooter/Assets/Scripts/DemoGraph.cs:46)
MainController/<RunGraph>d__57:MoveNext () (at C:/unity assets/HandBallShooter/Assets/MainController.cs:323)
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)

[C:/unity assets/HandBallShooter/Packages/com.github.homuler.mediapipe/Runtime/Scripts/Util/AssetBundleManager.cs line 68]

The AssetBundle 'StreamingAssets\mediapipe' can't be loaded because it was not built with the right version or build target.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.AssetBundle:LoadFromFile (string)
Mediapipe.AssetBundleManager:LoadAssetBundle () (at C:/unity assets/HandBallShooter/Packages/com.github.homuler.mediapipe/Runtime/Scripts/Util/AssetBundleManager.cs:68)
Mediapipe.AssetBundleManager:PrepareAsset (string,string,bool) (at C:/unity assets/HandBallShooter/Packages/com.github.homuler.mediapipe/Runtime/Scripts/Util/AssetBundleManager.cs:89)
AssetBundleLoader:PrepareAsset (string,string,bool) (at C:/unity assets/HandBallShooter/Assets/Scripts/ResourceManager/AssetBundleLoader.cs:13)
DemoGraph:PrepareDependentAsset (string,string,bool) (at C:/unity assets/HandBallShooter/Assets/Scripts/DemoGraph.cs:192)
DemoGraph:PrepareDependentAsset (string,bool) (at C:/unity assets/HandBallShooter/Assets/Scripts/DemoGraph.cs:196)
HandTrackingGraph:PrepareDependentAssets () (at C:/unity assets/HandBallShooter/Assets/Graphs/HandTracking/Scripts/HandTrackingGraph.cs:122)
DemoGraph:Initialize () (at C:/unity assets/HandBallShooter/Assets/Scripts/DemoGraph.cs:46)
MainController/<RunGraph>d__57:MoveNext () (at C:/unity assets/HandBallShooter/Assets/MainController.cs:323)
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)

[C:/unity assets/HandBallShooter/Packages/com.github.homuler.mediapipe/Runtime/Scripts/Util/AssetBundleManager.cs line 68]

NullReferenceException: Object reference not set to an instance of an object
  at Mediapipe.AssetBundleManager.PrepareAsset (System.String name, System.String uniqueKey, System.Boolean overwrite) [0x0001a] in C:\unity assets\HandBallShooter\Packages\com.github.homuler.mediapipe\Runtime\Scripts\Util\AssetBundleManager.cs:92 
  at AssetBundleLoader.PrepareAsset (System.String name, System.String uniqueKey, System.Boolean overwrite) [0x00001] in C:\unity assets\HandBallShooter\Assets\Scripts\ResourceManager\AssetBundleLoader.cs:13 
  at DemoGraph.PrepareDependentAsset (System.String assetName, System.String uniqueKey, System.Boolean overwrite) [0x00001] in C:\unity assets\HandBallShooter\Assets\Scripts\DemoGraph.cs:192 
  at DemoGraph.PrepareDependentAsset (System.String assetName, System.Boolean overwrite) [0x00001] in C:\unity assets\HandBallShooter\Assets\Scripts\DemoGraph.cs:196 
  at HandTrackingGraph.PrepareDependentAssets () [0x00001] in C:\unity assets\HandBallShooter\Assets\Graphs\HandTracking\Scripts\HandTrackingGraph.cs:122 
  at DemoGraph.Initialize () [0x00001] in C:\unity assets\HandBallShooter\Assets\Scripts\DemoGraph.cs:46 
  at MainController+<RunGraph>d__57.MoveNext () [0x00148] in C:\unity assets\HandBallShooter\Assets\MainController.cs:323 
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <cbc2a4dc69734303bc7c8542260e1c75>:0 

(Filename: C:/unity assets/HandBallShooter/Packages/com.github.homuler.mediapipe/Runtime/Scripts/Util/AssetBundleManager.cs Line: 92)

Seems like it is not loading DLL, Is there a way to resolve this issue?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Arham-Aalamcommented, Aug 24, 2021

@MRLesile 只是导入编辑器文件夹和元文件对我有用。

1reaction
homulercommented, Aug 21, 2021

I see. When building the sample app, AssetBundle files will be automatically built. https://github.com/homuler/MediaPipeUnityPlugin/blob/b8ea5c1fb0b5f0eeebb5de731147d2db46a76e23/Assets/Mediapipe/Editor/BuildProcessor.cs#L8

However, this Editor script is not included to the plugin, so you need to build AssetBundle by yourself when building your apps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

exe file is not running in Release folder
I'm trying to launch the application by the project_name.exe file of the release build, but nothing happens. The project_name.exe file of Debug ...
Read more >
Can't build in release mode, only debug mode
I've got a weird issue with Visual Studio 2019. For some reason building my app in Release mode doesn't work. It shortly shows...
Read more >
[Solved] Error in release exe file
This is telling you that an assembly you require is not present in the release directory, or cannot be located in a search...
Read more >
Missing DLL when building release .exe on clean machine
When I run the x64 .exe from the release page on a cleanly installed Windows machine and then try to run any "clang"...
Read more >
VS2019 ...release dll and debug exe has a problem
just set dll releae and runtime is mt at compile. set exe is debug runting is mdd copy release dir dll into exe...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found