Search Unity

  1. Get all the Unite Berlin 2018 news on the blog.
    Dismiss Notice
  2. Unity 2018.2 has arrived! Read about it here.
    Dismiss Notice
  3. Improve your Unity skills with a certified instructor in a private, interactive classroom. Learn more.
    Dismiss Notice
  4. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  5. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

warning: <x> FS.syncfs operations in flight at once, probably just doing extra work

Discussion in 'WebGL' started by Aurigan, Dec 21, 2016.

  1. Aurigan

    Aurigan

    Joined:
    Jun 30, 2013
    Posts:
    210
    I'm getting an old game running on webGL for the first time ever, using Unity 5.5p1. So far I have everything working but the (chrome) console every 8 seconds is spitting out 3 warnings:

    warning: 2 FS.syncfs operations in flight at once, probably just doing extra work
    warning: 3 FS.syncfs operations in flight at once, probably just doing extra work
    warning: 4 FS.syncfs operations in flight at once, probably just doing extra work

    From a quick google search FS.syncfs appears to be something to do with the javascript / indexed db filesystem so presumably *something* is doing a file op 4x at the same time ... I have no idea what that might be though, still happens after disabling save games (which use player prefs).

    Has anyone seen this / have a solution for it?
     
    twobob likes this.
  2. Arsinx

    Arsinx

    Joined:
    Apr 14, 2014
    Posts:
    47
    I recently built a game for webgl using 5.5 and i am getting the same warnings as soon as the unity logo appears after which it gets stuck there, if any one knows how to solve this issue it will be really appreciated.
     
    twobob likes this.
  3. DSL-TailorIt

    DSL-TailorIt

    Joined:
    Jan 2, 2017
    Posts:
    6
    This warning also appears in my builds, although it doesn't prevent me from actually using my application.

    In my case I think it might have something to do with loading AssetBundles, but I haven't verified it yet.

    I worry more about warnings than actual errors, so if anyone knows something about this, I would be also be thankful to get some possible solution.

    Thanks in advance :)
     
    twobob likes this.
  4. Aurigan

    Aurigan

    Joined:
    Jun 30, 2013
    Posts:
    210
    bump! getting this in a completely new game also
     
    twobob likes this.
  5. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    812
    This seems to be harmless, we'll look into it though.
     
  6. Aurigan

    Aurigan

    Joined:
    Jun 30, 2013
    Posts:
    210
    Thank you - it DOES appear to be harmless in practice but vexing to have unneeded log spam.
     
    twobob likes this.
  7. AzureByte

    AzureByte

    Joined:
    Apr 25, 2017
    Posts:
    1
    For me I think this is a symptom of another problem. I am getting random fps drops throughout the game while running a WebGL build in browser. No performance issues on mobile/PC builds
     
  8. 3DNewsman

    3DNewsman

    Joined:
    Nov 3, 2012
    Posts:
    7
    Bumping this. We've had it on our app for a long time, and seems like it would be helpful to get to the bottom of it.
     
    twobob likes this.
  9. therealao

    therealao

    Joined:
    Feb 13, 2017
    Posts:
    5
    Bump, I've a feeling this is causing some performance issues. I'm only getting about 25% of the framerate of a native x86-64 build in WebGL, for a much smaller scene.. Any insight would be greatly appreciated
     
  10. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,491
    how many "FS.syncfs operations..." warnings are you seeing? just a few or a continuous flow?

    The gap in performance might be simply be caused by the fact that Unity WebGL is single-threaded at the moment.
     
    twobob likes this.
  11. hromoyDron

    hromoyDron

    Joined:
    Jan 24, 2013
    Posts:
    41
    I have the same message (unity 2017.3)

    When I start using AssetBundleManager I see much more warnings

    What to do?
     
  12. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,491
    If everything works well, do nothing :)
     
    hromoyDron likes this.
  13. keeves_test14

    keeves_test14

    Joined:
    Dec 5, 2016
    Posts:
    6
    Hi, I'm using unity 5.6.3f3 and when I run webgl build I'm getting the following warning.

    warning: 2 FS.syncfs operations in flight at once, probably just doing extra work.

    I've AI player in my game,when AI turn occurs, the warning is occured and ai player can't take its move for this.Please help me to solve the issue.
     
  14. ProgrammerNaPikit

    ProgrammerNaPikit

    Joined:
    Nov 10, 2017
    Posts:
    2
    Hi, I have found a solution but I'm not sure I could say this is a great one, it would disable all the logging and it would only work for WebGL. Just add these lines of code before the game is instantiated.


    var DEBUG = false;
    if(!DEBUG){
    if(!window.console) window.console = {};
    var methods = ["log", "debug", "warn", "info"];
    for(var i=0;i<methods.length;i++){
    console[methods] = function(){};
    }
    }

    Source: https://stackoverflow.com/questions...disable-all-console-log-statements-in-my-code

    WARNING: This will completely remove all console logs, so if you have any intended clues for the game in the logs, then it would not be recommended.
     
  15. ProgrammerNaPikit

    ProgrammerNaPikit

    Joined:
    Nov 10, 2017
    Posts:
    2
    Full code in case anyone gets confused with my answer, just replace your index.html code with this:

    <!DOCTYPE html>
    <html lang="en-us">
    <head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Unity WebGL Player | Your Title</title>
    <link rel="shortcut icon" href="TemplateData/favicon.ico">
    <link rel="stylesheet" href="TemplateData/style.css">
    <script src="TemplateData/UnityProgress.js"></script>
    <script src="Build/UnityLoader.js"></script>
    <script>
    var DEBUG = false;
    if(!DEBUG){
    if(!window.console) window.console = {};
    var methods = ["log", "debug", "warn", "info"];
    for(var i=0;i<methods.length;i++){
    console[methods] = function(){};
    }
    }
    var gameInstance = UnityLoader.instantiate("gameContainer", "Build/Your Title.json", {onProgress: UnityProgress});
    </script>
    </head>
    <body>
    <div class="webgl-content">
    <div id="gameContainer" style="width: 960px; height: 600px"></div>
    <div class="footer">
    <div class="webgl-logo"></div>
    <div class="fullscreen" onclick="gameInstance.SetFullscreen(1)"></div>
    <div class="title">Your Title</div>
    </div>
    </div>
    </body>
    </html>
     
  16. twobob

    twobob

    Joined:
    Jun 28, 2014
    Posts:
    1,615
    Hmmm.. this seems like a nothing error all in. that said. Roll-on threading

    EDIT: and yes, I have it too