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

If the file path contains characters other than English, the camera will not function. #1284

Open
emoto-yasushi opened this issue Dec 24, 2024 · 0 comments
Assignees
Labels
type:build/install Cannot build/install the plugin

Comments

@emoto-yasushi
Copy link

emoto-yasushi commented Dec 24, 2024

Plugin Version or Commit ID

v0.15.0

Unity Version

2022.3.6f1

Your Host OS

Windows11 Home

Target Platform

Windows Standalone

[Windows Only] Visual Studio C++ and Windows SDK Version

Visual C++ 2022 00482-90000-00000-AA457
Windows SDK Version 10.0

[Linux Only] GCC/G++ and GLIBC Version

No response

[Android Only] Android Build Tools and NDK Version

No response

[iOS Only] XCode Version

No response

Command Sequences

Unity projects or built .exe files with file paths containing non-English characters will result in camera images not displaying and errors occurring.

Here are the steps to reproduce the issue:

  1. Launch Unity Hub.
  2. Create a new project with an English name such as "BuildJapanese" via "New project."
  3. Once the Unity Editor launches, import the v0.15.0 .unitypackage via drag and drop.
  4. Open the Unity file located in Assets\MediaPipeUnity\Samples\Scenes\Face Landmark Detection.
  5. Click on Assets\MediaPipeUnity\Samples\Scenes\AppSettings and change the Asset Loader Type from "Local" to "Streaming Asset."
  6. Copy face_landmarker_v2_with_blendshapes.bytes into the Assets\StreamingAssets folder.
  7. Start the game and confirm the camera is working correctly.
  8. Copy the created BuildJapanese Unity Project folder and paste it into a path containing Japanese, Korean, or other non-English characters. (Example: C:/Users/emoto/Documents/Test/てすと/BuildJapanese2)
  9. Add the project path to Unity Hub via Add → Add project from disk.
  10. Start the game in the Unity Project opened from the file path containing non-English characters. The camera image will not display, and an error will occur.

Log

BadStatusException: NOT_FOUND: Unable to open file at C:/Users/emoto/Docouments/Test/てすと/BuildJapanese2/Assets/StreamingAssets\face_landmarker_v2_with_blendshapes.bytes [MediaPipeTasksStatus='601']
Mediapipe.Status.AssertOk () (at ./Packages/com.github.homuler.mediapipe/Runtime/Scripts/Framework/Port/Status.cs:168)
Mediapipe.MpResourceHandle.AssertStatusOk (System.IntPtr statusPtr) (at ./Packages/com.github.homuler.mediapipe/Runtime/Scripts/Core/MpResourceHandle.cs:115)
Mediapipe.Tasks.Core.TaskRunner.Create (Mediapipe.CalculatorGraphConfig config, System.Int32 callbackId, Mediapipe.Tasks.Core.TaskRunner+NativePacketsCallback packetsCallback) (at ./Packages/com.github.homuler.mediapipe/Runtime/Scripts/Tasks/Core/TaskRunner.cs:32)
Mediapipe.Tasks.Vision.Core.BaseVisionTaskApi..ctor (Mediapipe.CalculatorGraphConfig graphConfig, Mediapipe.Tasks.Vision.Core.RunningMode runningMode, Mediapipe.GpuResources gpuResources, Mediapipe.Tasks.Core.TaskRunner+PacketsCallback packetsCallback) (at ./Packages/com.github.homuler.mediapipe/Runtime/Scripts/Tasks/Vision/Core/BaseVisionTaskApi.cs:63)
Mediapipe.Tasks.Vision.FaceLandmarker.FaceLandmarker..ctor (Mediapipe.CalculatorGraphConfig graphConfig, Mediapipe.Tasks.Vision.Core.RunningMode runningMode, Mediapipe.GpuResources gpuResources, System.Collections.Generic.List`1[T] faceGeometriesForRead, Mediapipe.Tasks.Core.TaskRunner+PacketsCallback packetCallback) (at ./Packages/com.github.homuler.mediapipe/Runtime/Scripts/Tasks/Vision/FaceLandmarker/FaceLandmarker.cs:44)
Mediapipe.Tasks.Vision.FaceLandmarker.FaceLandmarker.CreateFromOptions (Mediapipe.Tasks.Vision.FaceLandmarker.FaceLandmarkerOptions options, Mediapipe.GpuResources gpuResources) (at ./Packages/com.github.homuler.mediapipe/Runtime/Scripts/Tasks/Vision/FaceLandmarker/FaceLandmarker.cs:106)
Mediapipe.Unity.Sample.FaceLandmarkDetection.FaceLandmarkerRunner+d__4.MoveNext () (at C:/Users/emoto/Docouments/Test/てすと/BuildJapanese2/Assets/MediaPipeUnity/Samples/Scenes/Face Landmark Detection/FaceLandmarkerRunner.cs:43)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at :0)

Additional Context

No response

@emoto-yasushi emoto-yasushi added the type:build/install Cannot build/install the plugin label Dec 24, 2024
@homuler homuler self-assigned this Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:build/install Cannot build/install the plugin
Projects
None yet
Development

No branches or pull requests

2 participants