Search Issue Tracker
Fixed
Fixed in 2021.3.44f1, 2022.3.44f1, 6000.0.11f1, 7000.0.0a5
Votes
2
Found in
2021.3.34f1
2022.3.17f1
2023.2.5f1
2023.3.0b2
6000.0.0b11
6000.1.0a7
6000.2.0a1
7000.0.0a1
Issue ID
UUM-60385
Regression
No
WebGL StreamWriter not triggering "syncfs" when writing a file to "/idbfs"
How to reproduce:
1. Open the “WebGLStorageTest“ project
2. Open the “SampleScene”
3. Make sure to switch the Platform to “WebGL” (File > Build Settings > “WebGL” > “Switch Platform”)
4. Build And Run
5. Open Chrome DevTools (F12) and select the Application tab
6. Expand “IndexedDB” > “/idbfs” and select “FILE_DATA”
7. In the Player select the "Write" button
8. In the Chrome DevTools select the refresh icon and observe the Key/Value fields
9. In the Player select the "Sync" button
10. Repeat step 8
Expected result: The record should be automatically saved after selecting the "Write" button
Actual result: The record is saved after selecting the “Sync” button
Reproduced with: 2021.3.34f1, 2022.3.17f1, 2023.2.5f1, 2023.3.0b2
Reproduced on: Windows 11
Not reproduced on: No other environment tested
Browser reproduced on: Chrome, Firefox, Edge
Notes:
1. Could not test in Editor → Not possible to check if the Key/Value fields are saved the same way as using Player DevTools
2. Information on how to open the DevTools on different browsers can be found here: [https://docs.unity3d.com/Manual/webgl-debugging.html|https://docs.unity3d.com/Manual/webgl-debugging.html|smart-link]
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
Resolution Note (fix version 6000.0.11f1):
Fixed an issue that Application.persistentDataPath would not automatically persist, by adding a new JS config option "autoSyncPersistentDataPath: true" to enable automatic synchronization of Application.persistentDataPath over to IndexedDB.
This option is found in the Builds Index.html file, uncomment it and refresh the running build page and the issue will be resolved.