OBS 28.1.2 Fail to update image

Volturno

New Member
I have made a program to create a scorebug in a png file.

I update the file every time I need to change something, but some time OBS fail to load the image and it try to reload it only after a new file modification, so the image disapper for a few seconds or more.

20:50:45.263: Failed to open file 'D:/TT/LiveScoreBoard/Output.png': Invalid data found when processing input
20:50:45.264: WIC: Failed to create IWICBitmapDecoder from file: D:/TT/LiveScoreBoard/Output.png
20:50:45.264: gs_image_file_init_internal: Failed to load file 'D:/TT/LiveScoreBoard/Output.png'
20:50:45.264: [image_source: 'Score 1'] failed to load texture 'D:/TT/LiveScoreBoard/Output.png'

I have encounter this problem with two system: one with windows 10 Pro for workstation and one with windows 11 Pro, all the two system have a ssd storage.

I understand that OBS try to reload the resource from the timestamp change of the file modification.

I suggest two implementation:
- when OBS failed to open the file modified to not clear the previous image in memory.
- when OBS failed to open the file modified retry to load the resource after a few time.

Thanks in advance
 

Volturno

New Member
Does no one have this problem?

It is very annoying to see the image disappear only for a temporary error.
 

R1CH

Forum Admin
Developer
Make sure to update the images atomically, i.e. write + move a new file in rather than overwriting it, otherwise OBS may see a partial file and error trying to load it.
 

Volturno

New Member
The program is written in C# and it's a Bitmap in RAM and i call the Save function in Png format that overwrite the previous file.

bm.Save("Output.png", ImageFormat.Png);

I have see the same issue with an image updated from Dropbox.
Ok the operation is slow, but I suppose that OBS have to try to update it when it finish.

Next time I try to save in different location and than overwrite the previous.
 
Top