PluginBugs / Issues-CinematicStudio

Repository used to keep track of issues of my plugin CinematicsStudio
1 stars 0 forks source link

Potential IO issues #58

Closed GsTio86 closed 5 months ago

GsTio86 commented 1 year ago

Terms

Discord tag (optional)

galen86

What happened?

First I am developing a player data synchronization addon (HuskSync API) for this plugin Since the plugin operates player data through asyn scheduling, husksync also Therefore, when I implement them, I may conflict with the original files or even destroy them.

The main reason is that it performs IO operations on the same file instead of a single key

Steps to reproduce the issue

N/A

Server version

image

CinematicsStudio Version

image

ProtocolLib Version

image

LoneLibs Version

image

FULL server log

No response

Error (optional)

No response

CinematicsStudio config.yml

No response

Problematic items yml configuration file (optional)

No response

Other files, you can drag and drop them here to upload. (optional)

No response

Screenshots/Videos (you can drag and drop files or paste links)

No response

LoneDev6 commented 12 months ago

Can you make an example about which CinematicStudio files are causing this issue?

GsTio86 commented 12 months ago

Can you make an example about which CinematicStudio files are causing this issue?

The main reason is that CinematicStudio re-calls player_data multiple times asynchronously, and my HuskSyncAddon is also implemented through asynchronous processing. If you write and read the file at the same time, it is very likely that the data will be out of sync.

LoneDev6 commented 12 months ago

What do you mean by "player_data"? The CinematicStudio files or Minecraft player data in world folder?

GsTio86 commented 12 months ago

CinematicStudio files

CinematicStudio files