Metal Validation Fails with Xcode - swift5

I'm learning how to use the Metal API. I've been following this tutorial: Audio Visualization in Swift using Metal and Acceleration
Building the project in Xcode succeeds but the program does not function and I get these errors in Xcode console:
2021-10-19 21:09:46.224427-0400 AudioVisualizer[12507:279963] Metal GPU Frame Capture Enabled
2021-10-19 21:09:46.236923-0400 AudioVisualizer[12507:279963] MTLIOAccelDevice bad MetalPluginClassName property (null)
2021-10-19 21:09:46.931271-0400 AudioVisualizer[12507:279963] +[MTLIOAccelDevice registerDevices]: Zero Metal services found
2021-10-19 21:09:46.962145-0400 AudioVisualizer[12507:279963] [CAMetalLayer nextDrawable] returning nil because allocation failed.
2021-10-19 21:09:46.980649-0400 AudioVisualizer[12507:279963] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x600001098100> F8BB1C28-BAE8-11D6-9C31-00039315CD46
<AVAudioFormat 0x600003350140: 2 ch, 44100 Hz, Float32, non-inter>
I'm using a MacBook Pro with an integrated GPU. Intel and AMD Radeon with automatic graphic switching. If anyone has any advice to fix or a work around, that'd be great.

Related

Running PowerVR NativeSDK Vulkan Application in R-Car h3e sk

Specifications:—
Hardware Platform :Renesas r-car H3e
GPU Device : PowerVR Series6XT, GX6650
Operating System : Linux h3ulcb 5.10.41-yocto-standard
I ran Vulkan of NativeSDK which is provided by PowerVR in Linux h3ulcb 5.10.41-yocto-standard but failed.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
root#h3ulcb:~/build1/bin# ./VulkanHelloAPI
ERROR: Could not initialise the instance function pointers.
Segmentation fault
root#h3ulcb:~/build1/bin# ./VulkanGameOfLife
Opened ‘/dev/tty’ for input
Successfully connected the Wayland display
Successfully retrieved the Wayland registry
Successfully retrieved the Wayland compositor
Successfully create the Wayland surface
Successfully create the Wayland shell surface
Host library ‘libvulkan.so.1;libvulkan.so’ loadedThe function pointer for ‘vkEnumerateInstanceVersion’ was valid. Vulkan loader instance version : ([1].[2].[162]).
The instance version requested by the application ([1].[0].[0]) is supported by the Vulkan loader on your device
Supported Instance Extensions:
VK_EXT_debug_report : version [9]
VK_EXT_debug_utils : version [2]
Supported Instance Extensions to be Enabled:
Supported Instance Layers:
Exit message set to: InitView threw a runtime exception with message: ‘[VK_ERROR_INCOMPATIBLE_DRIVER] : Instance Constructor’
InitView() failed with pvr error ‘Error while initializing’
InitView threw a runtime exception with message: ‘[VK_ERROR_INCOMPATIBLE_DRIVER] : Instance Constructor’
root#h3ulcb:~/build1/bin#
////////////////////////////////////////////////////////////////////////

Unity Editor Crash Using OVRLipSync On MacOS

I'm hitting a strange issue that I can't explain. I'm developing a VR app in Unity and I've recently added the OVRLipSync for mouth movements. It works fine on every other machine except for OSX devices (I only have one, so it might be specific to this device rather than the OS). Another thing is that it works in a whole new project but not in the project I'm currenly working on - If I create a whole new project, import the LipSync package and run the sample it all works fine.
In the project I'm working on however it crashes out both in the sample scene and my own implementation. I have imported the OVRLipSync package and run the sample and as soon as it runs, the editor crashes. I have obviously ensured the OVRLipSync.bundle has permission to run within System Preferences.
The log file states:
OvrLipSync Awake: Queried SampleRate: 44100 BufferSize: 512
UnityEngine.StackTraceUtility:ExtractStackTrace () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
UnityEngine.Logger:Log (UnityEngine.LogType,object)
UnityEngine.Debug:LogWarning (object)
OVRLipSync:Initialize () (at Assets/Oculus/LipSync/Scripts/OVRLipSync.cs:265)
OVRLipSync:Awake () (at Assets/Oculus/LipSync/Scripts/OVRLipSync.cs:217)
(Filename: Assets/Oculus/LipSync/Scripts/OVRLipSync.cs Line: 265)
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.16f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Oculus/LipSync/Plugins/MacOSX/OVRLipSync.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.16f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Oculus/LipSync/Plugins/MacOSX/OVRLipSync.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.16f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Oculus/LipSync/Plugins/MacOSX/OVRLipSync.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.16f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Oculus/LipSync/Plugins/MacOSX/OVRLipSync.bundle
E1115 10:21:07.861620 399812096 init_intrinsics_check.cc:44] CPU feature avx2 is present on your machine, but the Caffe2 binary is not compiled with it. It means you may not get the full speed of your CPU.
E1115 10:21:07.862260 399812096 init_intrinsics_check.cc:44] CPU feature fma is present on your machine, but the Caffe2 binary is not compiled with it. It means you may not get the full speed of your CPU.
Loaded scene 'Temp/__Backupscenes/0.backup'
Deserialize: 64.066 ms
Integration: 493.917 ms
Integration of assets: 0.970 ms
Thread Wait Time: -0.236 ms
Total Operation Time: 558.717 ms
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.16f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Oculus/LipSync/Plugins/MacOSX/OVRLipSync.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.16f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Oculus/LipSync/Plugins/MacOSX/OVRLipSync.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.16f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Oculus/LipSync/Plugins/MacOSX/OVRLipSync.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.16f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Oculus/LipSync/Plugins/MacOSX/OVRLipSync.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.16f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Oculus/LipSync/Plugins/MacOSX/OVRLipSync.bundle
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.16f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Oculus/LipSync/Plugins/MacOSX/OVRLipSync.bundle.dylib
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.16f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Oculus/LipSync/Plugins/MacOSX/OVRLipSync.bundle.so
Fallback handler could not load library /Applications/Unity/Hub/Editor/2020.3.16f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Oculus/LipSync/Plugins/MacOSX/OVRLipSync.bundle
*** Aborted at 1668507668 (unix time) try "date -d #1668507668" if you are using GNU date ***
PC: # 0x193b3b4f3 (unknown)
*** SIGSEGV (#0x0) received by PID 2995 (TID 0x117d4a600) stack trace: ***
# 0x7ff8074c2dfd _sigtramp

Getting Unexpected DMA error in Flutter when using video_player, better_player, and chewie

Im trying to play a video. Im getting the following error:
E/gralloc_ranchu( 2305): updateHostColorBuffer: Unexpected DMA
E/ ( 2305): lockAndWriteDma: ERROR: No DMA context bound!
Im just using the sample code from https://pub.dev/packages/chewie and the video player just shows a green screen and doesnt do anything. Any ideas?
EDIT: Some more comments that may help?
I/ExoPlayerImpl(10386): Release 3310ed3 [ExoPlayerLib/2.12.1] [generic_x86_arm, AOSP on IA Emulator, Google, 28] [goog.exo.core]
D/SurfaceUtils(10386): disconnecting from surface 0xd36c1008, reason disconnectFromSurface
I/ExoPlayerImpl(10386): Release d52c17 [ExoPlayerLib/2.12.1] [generic_x86_arm, AOSP on IA Emulator, Google, 28] [goog.exo.core]
D/SurfaceUtils(10386): disconnecting from surface 0xd2c83808, reason disconnectFromSurface
I/ExoPlayerImpl(10386): Init d3251ff [ExoPlayerLib/2.12.1] [generic_x86_arm, AOSP on IA Emulator, Google, 28]
I/OMXClient(10386): IOmx service obtained
D/SurfaceUtils(10386): connecting to surface 0xd1be1008, reason connectToSurface
I/MediaCodec(10386): [OMX.google.h264.decoder] setting surface generation to 10635268
D/SurfaceUtils(10386): disconnecting from surface 0xd1be1008, reason connectToSurface(reconnect)
D/SurfaceUtils(10386): connecting to surface 0xd1be1008, reason connectToSurface(reconnect)
E/ACodec (10386): [OMX.google.h264.decoder] setPortMode on output to DynamicANWBuffer failed w/ err -1010
I/ACodec (10386): codec does not support config priority (err -1010)
I/OMXClient(10386): IOmx service obtained
I/ACodec (10386): codec does not support config priority (err -2147483648)
I/ACodec (10386): codec does not support config operating rate (err -2147483648)
D/MediaCodec(10386): [OMX.google.h264.decoder] setting dataspace on output surface to #104
I/om.example.kli(10386): Background concurrent copying GC freed 11055(2MB) AllocSpace objects, 769(50MB) LOS objects, 50% free, 5MB/10MB, paused 529us total 209.709ms
W/MapperHal(10386): buffer descriptor with invalid usage bits 0x2000
This is an open issue with no known workarounds at present. It might be helpful if you could also provide the video that you're trying to load for easier replication of the issue.

How to disable Tensorflow js error log for my server host?

As if right now I am in a bit of a rush to get an answer to my problem. The model has been trained and the server works locally with the NN running in the background, but on the server we get the following error message:
2020-04-08 11:54:15.787274: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2799865000 Hz
2020-04-08 11:54:15.787801: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x4b5ca00 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-04-08 11:54:15.787830: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
terminate called after throwing an instance of 'std::system_error'
what(): Resource temporarily unavailable
It seems that the server host doesn't like the fact that Tensorflow is trying to log the following error/warning message:
2020-04-08 11:53:42.453164: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to
use: AVX2
Is there a way in JS to disable these error logs so we can run the trained model on the server? Thanks in advance!

what is the solution of error message when launching PARAVIEW?

I've installed Paraview in my laptop.
When I try to launch it, it shows me an error message telling me that GLEW could not be initialized, and the versionsfunction are not supported on OPENGL ES
How to fix it?
ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line 819
vtkGenericOpenGLRenderWindow (000000000937A9A0): GLEW could not be initialized.
ERROR: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkShaderProgram.cxx, line 409
vtkShaderProgram (00000000099A1F90):
Generic Warning: In C:\bbd\7cc78367\build\superbuild\paraview\src\VTK\Rendering\OpenGL2\vtkOpenGLRenderTimer.cxx, line 104
vtkOpenGLRenderTimer::Stop called before vtkOpenGLRenderTimer::Start. Ignoring.
versionFunctions: Not supported on OpenGL ES