openbullet / OpenBullet2

OpenBullet reinvented
https://docs.openbullet.dev/
MIT License
1.75k stars 466 forks source link

[Bug]: Windows Server 22 Native issue #1073

Open mastercho opened 1 month ago

mastercho commented 1 month ago

This issue respects the following points:

Description of the bug

Unhandled exception thrown on 7/18/2024 2:02:47 PM
System.NotSupportedException: No imaging component suitable to complete this operation was found.
 ---> System.Runtime.InteropServices.COMException (0x88982F8B): The component initialization has failed. (0x88982F8B)
   --- End of inner exception stack trace ---
   at System.Windows.Media.Imaging.BitmapDecoder.SetupDecoderFromUriOrStream(Uri uri, Stream stream, BitmapCacheOption cacheOption, Guid& clsId, Boolean& isOriginalWritable, Stream& uriStream, UnmanagedMemoryStream& unmanagedMemoryStream, SafeFileHandle& safeFilehandle)
   at System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy, Boolean insertInDecoderCache)
   at System.Windows.Media.Imaging.BitmapImage.FinalizeCreation()
   at OpenBullet2.Native.Utils.Images.BytesToBitmapImage(Byte[] bytes)
   at OpenBullet2.Native.Utils.Images.Base64ToBitmapImage(String base64)
   at OpenBullet2.Native.Views.Dialogs.MultiRunJobOptionsViewModel.SetConfigData()
   at OpenBullet2.Native.Views.Dialogs.MultiRunJobOptionsViewModel.SelectConfig(ConfigViewModel vm)
   at OpenBullet2.Native.Views.Dialogs.MultiRunJobOptionsDialog.SelectConfig(ConfigViewModel config)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

For some reason when select config in Native shows this error: image

Reproduction steps

  1. Start Openbullet 2 native in windows server 22
  2. create job
  3. select config

What is the current bug behavior?

.

What is the expected correct behavior?

To create job and select config without error

Version of the client

0.3.1

Type of client

Native client

Environment

- OS: Windows Server 2022
- Virtualization: Probably KVM as is RDP
- Browser: Chrome 126

OpenBullet2 logs

No response

Client / Browser logs

No response

Relevant screenshots or videos

No response

Relevant LoliCode if needed

No response

Additional information

No response

openbullet commented 1 month ago

By googling I found this, maybe the error can safely be ignored https://github.com/microsoft/PowerToys/pull/29663/files