An error occured while reading the file... HELP :/

Hello everybody! Seem to be having a problem here... Can't open my duf file! :/

When I open the file in Daz a message pops up that says "An error occured while reading the file, see the log file for more details."

In the log files it says:

2020-02-17 19:16:53.523 Json Parser (4792393,5): Unexpected end of file in string.

2020-02-17 19:16:53.617 Error reading file, see log for more details.

2020-02-17 19:17:36.840 WARNING: QAccessibleWidget::rect: This implementation does not support subelements! (ID 8 unknown for DzActionMgr)

Now I researched a bit about this problem, and read that the problem was a missing closing  bracket somewhere in the code? I opened the DUF file in Notepad to see if I could find a missing closing bracket but the code is HUGE! It's imposible for me to find a missing closing bracket!

How can I save my file?

 

 

Comments

  • NorthOf45NorthOf45 Posts: 5,543

    As you say, there is a syntax error somewhere, but the files shouldn't have those kinds of problems. Try downloading a fresh copy and re-installing.

  • NorthOf45 said:

    As you say, there is a syntax error somewhere, but the files shouldn't have those kinds of problems. Try downloading a fresh copy and re-installing.

    Downloading a fresh copy? Of Daz?
  • I tried a system restore on my computer and chose to restore to a later date before the problem but the file stays the same.
  • adoniogtsadoniogts Posts: 98
    edited February 2020
    I read a little more about the problem and in the info of some old threads it said to open the corrupted duf file using batch converter... I open batch convert, add files, choose the corrupted duf file, click apply. A message appears that says "Error during conversion, see the log for details." Then I go to the folder that contains the corrupted duf file and theres a new notepad file called filename.tmp. I open it and theres a bunch of letters and numbers. At the very end of the notepad some information seems to be missing because it ends in a {" The question is, where can I find the info that is missing in order to paste it, open the .tmp in Daz as a DUF and Save it as a new file. That's what I read solved the problem of another person in an old thread about the same topic.
    Post edited by adoniogts on
  • The code abruptly ends here, which looks like the code for a figure I was using in that scene, a genesis 2 model:

     

    "url" : "lThigh-25:/data/DAZ%203D/Genesis%202/Female%20Genitalia/Genesis2FemaleGenitalia.dsf#lThigh?rotation/z/value",

    "keys" : [ [ 0, 0 ], [ 5.1, 0 ] ]

    },

    {

    "url" : "Nightgown_3500:/data/Silky%20Softworks/Nightgown%20for%20G2F/Nightgown/Nightgown_3500.dsf#SkinBinding?joints/lThigh/bulge_weights/z/positive-right/value",

    "keys" : [ [ 0, 0 ] ]

    },

    {

    "url" : "Nightgown_3500:/data/Silky%20Softworks/Nightgown%20for%20G2F/Nightgown/Nightgown_3500.dsf#SkinBinding?joints/lThigh/bulge_weights/z/negative-left/value",

    "keys" : [ [ 0, 0 ] ]

    },

    {

    "url" : "Nightgown_3500:/data/Silky%20Softworks/Nightgown%20for%20G2F/Nightgown/Nightgown_3500.dsf#SkinBinding?joints/lThigh/bulge_weights/z/negative-right/value",

    "keys" : [ [ 0, 0 ] ]

    },

    {

    "url" : "Nightgown_3500:/data/Silky%20Softworks/Nightgown%20for%20G2F/Nightgown/Nightgown_3500.dsf#SkinBinding?joints/rThigh/bulge_weights/z/positive-left/value",

    "keys" : [ [ 0, 0 ] ]

    },

    {

    "url" : "Nightgown_3500:/data/Silky%20Softworks/Nightgown%20for%20G2F/Nightgown/Nightgown_3500.dsf#SkinBinding?joints/rThigh/bulge_weights/z/positive-right/value",

    "keys" : [ [ 0, 0 ] ]

    },

    {

    "

    I looked for the DUF of the genesis 2 figure I was using, opened it in batch converter. It said it has succesfuly converted. Opened that DUF file with Notepad and searched for the keywords where the corrupted duf file abruptly ends. (See image attached) The top notepad is the corrupted file, the TMP that was created after the batch conversion, it ends in {          "    The bottom notepad is the file of the genesis 2 female I was using in the corrupted file scene, there u can see the info that is missing after the {      "   So I copy and paste it on the code of the TMP file, open the TMP file as a DUF, but it tells me the same message...

    "An error ocurred while reading the file"

    In the log file it says:

     

    2020-02-17 21:41:07.632 Json Parser (4792393,5): Unexpected end of file in string.

    2020-02-17 21:41:07.695 Error reading file, see log for more details.

    2020-02-17 21:41:46.689 WARNING: QAccessibleWidget::rect: This implementation does not support subelements! (ID 6 unknown for DzActionMgr)

    2020-02-17 21:41:47.579 WARNING: QAccessibleWidget::rect: This implementation does not support subelements! (ID 7 unknown for DzActionMgr)

    2020-02-17 21:41:50.580 WARNING: QAccessibleWidget::rect: This implementation does not support subelements! (ID 8 unknown for DzActionMgr)

     

    So is there any way to save this corrupted file? :/

     

     

    Untitled-2.jpg
    1366 x 708 - 772K
  • NorthOf45NorthOf45 Posts: 5,543

    Sorry, I should have specified to download a new version of the product in question. If it has been corrupted somewhere along the way, there is no way to recover the missing information, it is gone. If were just a header entry, or something that did not affect the contents in any way, maybe, but clearly bits have been lost. I occasionally get an invalid download, but that's one in 500 successful ones.

  • Unfortunately this means the file is corrupt, you may be able to use an archive repair tool to fix it but you will probably need to restore a back up or go to a previous version.

  • adoniogtsadoniogts Posts: 98
    edited February 2020

    Unfortunately this means the file is corrupt, you may be able to use an archive repair tool to fix it but you will probably need to restore a back up or go to a previous version.

    Going to a previous version is no problem at all... But is it posible without a copy being made of the duf before it got corrupted? Can the archive repair tool do that? Isn't an archive repair tool for use only with zip and rar files? Can it be used in a duf file?
    Post edited by adoniogts on
  • The .duf files are compressed (not actually using zip or rar) and sometimes - drive issue, OS issue, perhaps securty software - a byte will be lost of mis-written, which is fatal for compressed files. A repair utility may be able to infer the correct value and render the file openable, but it's not something I've ever tried and I wouldn't bank on it.

  • MattymanxMattymanx Posts: 6,949

    Someone recently had this same issue.

    Open the save filed in 7zip

    Take the file that you extract via 7zip and place it in your content directory and try opening it in DS

  • I'll have to let it be and start all over again... :/

    Thanx for all the knowledge and help :)

    Lesson learned... Always back up your scenes....

     

Sign In or Register to comment.