Open yoshiyoshyosh opened 3 weeks ago
Based on what I saw in the logs and the usage report, I believe the engine is failing to fetch the record for "Top Bar" and "Screens" as I am seeing multiple records for them. This would explain why the space continuously grows and why the "Top Bar" and "Screens" records keep syncing back (the third record is always R-SettingsData
). Looking at the decompiled code snippit, I assume record
is null due to the fetching failure. If possible, see if you can monitor your network traffic (mitmproxy or similar) to capture the HTTP request and response for those records.
On another note, -ResetDash
does not create a new record; it utilizes the same record id used for the "Top Bar" and "Screens" records. The difference is that it does not load the corresponding brson
file and allows the default "Top Bar" and "Screens" to load. The engine marks those as modified afterwards, which causes those records to be forcefully resynced back with entirely different brson
files.
This could have a similar cause as the issue I commented about in https://github.com/yellow-dog-man/brotli.net/issues/3#issuecomment-2188664090. Essentially, the Dash does not save on the Linux Native version. If the Dash is modified and saved on the Windows version (either on Windows, or under Proton), the modified Dash loads fine on the Linux native version. If the Dash is saved on the Linux native version, it resets on restart . The logs I get appear very similar to those in the post here.
Note that in order to get anything to sync at all, I'm running a patched Brotli.NET.
This issue sounds like it could potentially have some relation with #594.
Seeking input from @Frooxius.
Describe the bug?
When launching the game, I've been noticing that my cloud storage increases by ~300KB every single time. Even if I don't do anything, send any messages, get sent and messages, save items, whatever, it still happens. This is, of course, annoying, because it represents a slow time bomb to my storage being full.
In order to get to the bottom of what could possibly be taking up this space, I requested a usage report. I found hundreds of
TopBar
andScreens
objects filling the usage report, each one increasing ever so slightly--tens of KB--as it went on. I requested another usage report between a few relaunches, anddiff
'd what could possibly be different about the two. Sure enough, the only different items were theTopBar
andScreens
objects (also, every record had its record ID shuffled? even inventory objects? is that normal? could that be the underlying reason? you'll see why I'm asking this question later)Looking at my logs, I suspiciously noticed some lines saying
Searching for the log lines in the code, I was led to the
LoadTargetWorkspace()
function inFrooxEngine.Workspace
(culled a bit for brevity's sake):It appears that the
if (!LocalForceReinitialize && Uri.TryCreate(record?.AssetURI, UriKind.Absolute, out var assetUri))
isn't evaluating to true, given how thatLoading workspace asset file:
log message isn't showing.LocalForceReinitialize
is only set toTrue
when-ResetDash
is given as a launch param, which, well, I'm not doing, given how I'm not getting aResetting Dash!
log line. As such, the only conceivable notion is thatUri.TryCreate()
is failing for some reason. Why? I don't know.To Reproduce
Annoyingly, though, I haven't been found anyone having the same problem, and thus I'm not sure if this will be reproduced by anyone. Is it a linux only bug? Not sure. Will see if anyone there can reproduce it.
Expected behavior
The game is able to recognize my existing
RadiantDash
andTopBar
assets, not allowingAdditionally, if the game culled every workspace that isn't the current one whenever initializing the workspace to default, this would function both as a workaround to this issue and not also be an issue for someone who
-ResetDash
, not knowing where a random extra 300KB of stuff came from.Screenshots
Notice how the
Syncing 3 items
appears every time.https://github.com/Yellow-Dog-Man/Resonite-Issues/assets/36683489/b1cae756-f50f-4cf6-840b-ea9ae301557f
Resonite Version Number
2024.6.25.1149
What Platforms does this occur on?
Linux
What headset if any do you use?
No response
Log Files
these are two log files taken from the launches in the above video
https://gist.github.com/yoshiyoshyosh/c48b29feff02b3a14f2edda0bb77788c https://gist.github.com/yoshiyoshyosh/0d20398e3d01b03db4462ff4119358d8
Additional Context
No response
Reporters
yosh