json parser (1,1): syntax error - expected '{' or '['

Home Page › Forums › General Chat › json parser (1,1): syntax error - expected '{' or '['

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #2113495
    Jack
    Participant
    Rank: Rank 4

    Hi,

    Im getting these errors just before DAZ3D and windows crashes.
    Has anyone had this error before and what it could be? ive searched google and cant find the answer.
    If anyone can help it would be much appreciated.
    Thanks

    #2113497
    3dnoob
    Participant
    Rank: Rank-2

    It's a syntax error in some .duf/ .dsf file. The error log should mention which file is causing the issue. Could be due to something you recently installed or a corrupted file.

    It could just be a missing bracket somewhere you can manually fix with a text editor or you might need to replace the file of it's corrupted.

    #2113498
    Jack
    Participant
    Rank: Rank 4

    Is it just before the error shows?

    #2113499
    Jack
    Participant
    Rank: Rank 4

    so like
    2025-01-14 16:11:11.662 [INFO] :: Loading Layout: C:/Users/user/AppData/Roaming/DAZ 3D/Studio4/layout.dsx
    2025-01-14 16:11:15.285 [INFO] :: Json Parser (1,1): Syntax error - expected '{' or '['

    #2113500
    3dnoob
    Participant
    Rank: Rank-2

    I don't think it's the .dsx file causing the error. Are there any file paths after that line with a .duf/.dsf extension?

    #2113501
    Jack
    Participant
    Rank: Rank 4

    it ends on the Json Parser error

    #2113505
    3dnoob
    Participant
    Rank: Rank-2

    Is Daz automatically loading a scene at startup? The one you set from Edit > Preferences > Startup > On "Launch"?

    #2113506
    Jack
    Participant
    Rank: Rank 4

    no, just a blank scene then i pick or create one then when i click render it renders for abit then black screen and my graphics card goes into supermode and i have to restart my pc.
    i had it before and it was a plugin problem and it worked for abit after turning it off then it started happening again

    #2113507
    3dnoob
    Participant
    Rank: Rank-2

    What plugin are you talking about? If the issue remains even after disabling the plugin then it's certainly not the culprit. Black screen could also be due to a GPU/ driver issue, or there might be an issue with your Daz installation.

    That's all I can guess. Someone more knowledgeable might be able to help you out with this.

    🙂

    #2113576
    yngvarr
    Participant
    Rank: Rank 3

    Try to delete layout.dsx. DAZ will create it anew at startup.

    #2118107
    Jack
    Participant
    Rank: Rank 4

    Hi, sorry, ive been busy with work and life in general.
    i've tried that and it did work a few times then goes back to crashing.
    i found all the errors in the log and got rid of most as they were files downloaded files not working properly and that worked a few times then again back to the crashing.
    when i checked the log i noticed this

    qfile::flush: no file engine. is iodevice open?

    not sure what this is
    i've noticed a few duplications have appeared, had them in the past and that did not cause a crash but i'll look into them

    #2118187
    Amber
    Participant
    Rank: Rank 6

    layout.dsx IS A STRICT XML FILE!

    The error lines provided do not indicate a failure in loading the file (XML parser would throw), but it DOES indicate a problem with a JSON script being attempted after the layout has been loaded.
    The specific error indicates a syntax error, specifically that it found an extra trailing bracket somewhere without the leading bracket.
    Likely this is in some script tool being loaded into the UI...
    Have you added any scripts, or edited any yourself?
    If you don't know/not sure, the best thing I can think is either to:
    -remove any script or addons/plugins you may have added to Daz when the problem occurred and try to launch.
    -remove any content recently added, and try to launch.
    (THIS is very likely, I have frequently found breaking syntax errors in 3rd party content, and DSON is just DazJSON)
    Or failing these, rename your existing Daz installation folder so that DIM can't see it, and install a new fresh copy alongside. Rename your library folder(s) too temporarily so the New DAZ can't read in the content (it will still talk to your postgre database). Then add your bits and pieces one at a time back into DAZ. Either the problem went away, or you'll discover the offending file(s).

    #2127912
    Jack
    Participant
    Rank: Rank 4

    I've fixed it!
    i tried all of that and more and it didnt work.
    turns out NVidia's App that installs the drivers automatically also turned a overclocking setting on called Automatic Tuning (its in the performance section under systems). It gave a boost to the graphics card performance but soon as i turned it off, i gave it many rendering stress tests and it didnt crash!

    Thank you all for your help, i was worried i was never gonna use the program again. came close to giving in and deleting everything
    Autotuning

    #2127957
    Amber
    Participant
    Rank: Rank 6

    Glad you got it sorted!
    I can't imagine exactly how the auto tuning setting would cause the JSON parser to fail in DAZ, but it's not outside the realm of possibility. I'm guessing it's more a shortcoming in DAZ being so old and feeble, as opposed to anything wrong with the driver application.

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.

 

Post You Might Like