Home Page › Forums › General Chat › json parser (1,1): syntax error - expected '{' or '['
- This topic has 11 replies, 4 voices, and was last updated 2 months ago by
Amber.
-
AuthorPosts
-
January 14, 2025 at 3:41 pm #2113495
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.
ThanksJanuary 14, 2025 at 4:08 pm #2113497It'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.
January 14, 2025 at 4:13 pm #2113498Is it just before the error shows?
January 14, 2025 at 4:14 pm #2113499so 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 '['January 14, 2025 at 4:20 pm #2113500I don't think it's the .dsx file causing the error. Are there any file paths after that line with a .duf/.dsf extension?
January 14, 2025 at 4:21 pm #2113501it ends on the Json Parser error
January 14, 2025 at 5:00 pm #2113505Is Daz automatically loading a scene at startup? The one you set from Edit > Preferences > Startup > On "Launch"?
January 14, 2025 at 5:08 pm #2113506no, 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 againJanuary 14, 2025 at 5:18 pm #2113507What 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.
January 15, 2025 at 11:48 am #2113576Try to delete layout.dsx. DAZ will create it anew at startup.
February 16, 2025 at 2:10 pm #2118107Hi, 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 thisqfile::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 themFebruary 17, 2025 at 12:27 am #2118187layout.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). -
AuthorPosts
- You must be logged in to reply to this topic.