Jump to content

DMD-extensions 2.2.2 not working because different thread


Recommended Posts

Posted

Hello

When I launch the test command for DMDext I have this message :

 

C:\vPinball\VisualPinball\VPinMAME>dmdext test -d auto
 [1] 2024/08/25 18:11:22.543  INFO | Launching console tool v2.2.2
 [1] 2024/08/25 18:11:23.670  INFO | PinDMDv1 device not found.
 [1] 2024/08/25 18:11:23.670  WARN | Device PinDMDv1 is not available.
 [1] 2024/08/25 18:11:23.670  INFO | PinDMDv2 device not found.
 [1] 2024/08/25 18:11:23.670  WARN | Device PinDMDv2 is not available.
 [1] 2024/08/25 18:11:23.670  INFO | Checking port COM1 for PinDMDv3...
 [1] 2024/08/25 18:11:23.712 ERROR | Error: Paramètre incorrect.
 [1] 2024/08/25 18:11:23.712  INFO | Checking port COM4 for PinDMDv3...
 [1] 2024/08/25 18:11:23.717 ERROR | Error: The maximum baud rate for the device is 2187500.
Parameter name: baudRate
 [1] 2024/08/25 18:11:23.717  INFO | PinDMDv3 device not found.
 [1] 2024/08/25 18:11:23.717  WARN | Device PinDMDv3 is not available.
 [1] 2024/08/25 18:11:27.713  INFO | ZeDMD device found
 [1] 2024/08/25 18:11:27.713  INFO | Added ZeDMD renderer.
 [1] 2024/08/25 18:11:30.493  INFO | ZeDMD HD device not found
 [1] 2024/08/25 18:11:30.493  WARN | Device LibDmd.Output.ZeDMD.ZeDMDHD is not available.
 [1] 2024/08/25 18:11:33.281  INFO | ZeDMD WiFi device not found
 [1] 2024/08/25 18:11:33.281  INFO | ZeDMD WiFi device not found
 [1] 2024/08/25 18:11:33.281  WARN | Device LibDmd.Output.ZeDMD.ZeDMDWiFi is not available.
 [1] 2024/08/25 18:11:36.061  INFO | ZeDMD HD WiFi device not found
 [1] 2024/08/25 18:11:36.061  INFO | ZeDMD HD WiFi device not found
 [1] 2024/08/25 18:11:36.061  WARN | Device LibDmd.Output.ZeDMD.ZeDMDHDWiFi is not available.
 [1] 2024/08/25 18:11:36.061  WARN | Device PIN2DMD is not available.
 [1] 2024/08/25 18:11:36.077  WARN | Device PIN2DMDXL is not available.
 [1] 2024/08/25 18:11:36.077  WARN | Device PIN2DMDHD is not available.
 [1] 2024/08/25 18:11:36.077  INFO | Checking port COM1 for Pixelcade...
 [1] 2024/08/25 18:11:36.299 ERROR | Error: The operation has timed out.
 [1] 2024/08/25 18:11:36.422  INFO | Checking port COM4 for Pixelcade...
 [1] 2024/08/25 18:11:36.530 ERROR | Error: Access to the port 'COM4' is denied.
 [1] 2024/08/25 18:11:36.530  INFO | Pixelcade device not found.
 [1] 2024/08/25 18:11:36.530  WARN | Device Pixelcade is not available.
 [1] 2024/08/25 18:11:36.598  INFO | Added virtual DMD renderer.
 [1] 2024/08/25 18:11:36.614  INFO | Setting up Render Graph for 2 destination(s) [ ZeDMD, Virtual DMD ]
 [1] 2024/08/25 18:11:36.614  INFO |   -> Connecting Image Source to ZeDMD (Bitmap -> Rgb24)
 [1] 2024/08/25 18:11:36.631  INFO |   -> Connecting Image Source to Virtual DMD (Bitmap -> Bitmap)
 [1] 2024/08/25 18:11:36.631  INFO | Press CTRL+C to close.
[17] 2024/08/25 18:11:36.631 ERROR | The calling thread cannot access this object because a different thread owns it.
[17] 2024/08/25 18:11:36.631 ERROR | System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it.
   at System.Windows.Threading.Dispatcher.VerifyAccess()
   at System.Windows.Media.Imaging.BitmapSource.get_PixelWidth()
   at LibDmd.Common.ImageUtil.ConvertToRgb24(BitmapSource bmp, Int32 offset, Double lum)
   at LibDmd.Frame.BmpFrame.ConvertToRgb24()
   at LibDmd.RenderGraph.<>c__DisplayClass62_0.<Connect>b__14(BmpFrame frame)
   at System.Reactive.Linq.ObservableImpl.Select`2._.OnNext(TSource value)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Reactive.Stubs.<.cctor>b__1(Exception ex)
   at System.Reactive.AnonymousSafeObserver`1.OnError(Exception error)
   at System.Reactive.Linq.ObservableImpl.Select`2._.OnNext(TSource value)
   at System.Reactive.Linq.ObservableImpl.Select`2._.OnNext(TSource value)
   at System.Reactive.ScheduledObserver`1.Dispatch(ICancelable cancel)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
 [1] 2024/08/25 18:11:36.810  INFO | Creating FBOs for 128x32

Exception non gérée : System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it.
   at System.Windows.Threading.Dispatcher.VerifyAccess()
   at System.Windows.Media.Imaging.BitmapSource.get_PixelWidth()
   at LibDmd.Common.ImageUtil.ConvertToRgb24(BitmapSource bmp, Int32 offset, Double lum)
   at LibDmd.Frame.BmpFrame.ConvertToRgb24()
   at LibDmd.RenderGraph.<>c__DisplayClass62_0.<Connect>b__14(BmpFrame frame)
   at System.Reactive.Linq.ObservableImpl.Select`2._.OnNext(TSource value)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Reactive.Stubs.<.cctor>b__1(Exception ex)
   at System.Reactive.AnonymousSafeObserver`1.OnError(Exception error)
   at System.Reactive.Linq.ObservableImpl.Select`2._.OnNext(TSource value)
   at System.Reactive.Linq.ObservableImpl.Select`2._.OnNext(TSource value)
   at System.Reactive.ScheduledObserver`1.Dispatch(ICancelable cancel)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

C:\vPinball\VisualPinball\VPinMAME>


Someone have a solution for working it ?

Bests regards

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...