Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Hitesh Sharma 24 posts 124 karma points
    Jun 01, 2018 @ 10:51
    Hitesh Sharma
    0

    'system.stackoverflowexception" in mscorlib.dll on Full Export

    I am having uSync installed and try to do a full export of my site. It starts the processing but after a few seconds it gives below message:

    An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll

    Is it because of the data size?

  • Kevin Jump 2309 posts 14673 karma points MVP 7x c-trib
    Jun 01, 2018 @ 12:05
    Kevin Jump
    0

    Hi

    Do you have access to the log files (in App_Data/Logs/) there might be a bit more information in there that can help us workout where the error is happening.

    Kevin

  • Hitesh Sharma 24 posts 124 karma points
    Jun 01, 2018 @ 13:52
    Hitesh Sharma
    0

    The last few logs in the log file says

    LOG: Post-policy reference: Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed

    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/8519e55e/f0a717d1/Newtonsoft.Json.DLL.

    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/8519e55e/f0a717d1/Newtonsoft.Json/Newtonsoft.Json.DLL.

    LOG: Attempting download of new URL file:///F:/ProjectPath/bin/Newtonsoft.Json.DLL.

    WRN: Comparing the assembly name resulted in the mismatch: Major Version

    ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.

    2018-06-01 16:05:44,460 [P9656/D2/T12] INFO Jumoo.uSync.BackOffice.Handlers.TemplateHandler - Exporting all Templates

  • Kevin Jump 2309 posts 14673 karma points MVP 7x c-trib
    Jun 01, 2018 @ 13:56
    Kevin Jump
    0

    Hi

    I've not seen anything like that before :( it looks like something is trying to update json dlls :(

    what version of Umbraco & uSync do you have installed ?

    Kevin

  • Hitesh Sharma 24 posts 124 karma points
    Jun 01, 2018 @ 14:01
    Hitesh Sharma
    0

    Umbraco version 7.5.11 assembly: 1.0.6274.27352

    (uSync.BackOffice 4.0.5.0) (uSync.Core 6.0.5.0)

  • Kevin Jump 2309 posts 14673 karma points MVP 7x c-trib
    Jun 01, 2018 @ 14:03
    Kevin Jump
    100

    Hi

    i think (although its been a while) you have to run uSync v3.x on Umbraco versions before 7.6 (the newtonsoft dll version changed in v7.6)

    Kevin

  • Hitesh Sharma 24 posts 124 karma points
    Jun 01, 2018 @ 14:04
    Hitesh Sharma
    0

    Alright, Kevin! I will give that a shot. Thank you for your help!

  • Hitesh Sharma 24 posts 124 karma points
    Jun 04, 2018 @ 08:18
    Hitesh Sharma
    0

    So I downgraded to

    (uSync.BackOffice 3.3.4.740) (uSync.Core 5.6.4.760)

    I still get the stackoverflow exception. The logs also says the same as I mentioned above.

    Along with that, in this older version I see another challange.

    In the backoffice config file I have

    <ExportAtStartup>false</ExportAtStartup>
    

    Yet When I launch the application, I see the uSync is still trying to export everything to the disk. It fails to do that due to some SQL timeout errors, so this will be a risk for my production :(

    Is there any other setting I need to do to avoid full export at startup?

    EDIT: I upgraded my Umbraco install to 7.10.4 and also uSync to latest. This resolved the json dll issue but I am still getting a stackoverflow exception. I tried adding timeout in connection string and also increased the http execution timeout. No matter what I do, this error does not go away. This happens during the export. So there are 3 issues I am facing right now:

    1. uSync does a full export at startup even if that is disabled in backoffice config
    2. It throws a stackoverflow exception when doing a full export.
    3. I also noticed SQL timeout exception once so I increased the connection timeout but that too didn't help
  • Hitesh Sharma 24 posts 124 karma points
    Jun 04, 2018 @ 16:55
    Hitesh Sharma
    0

    So I figured out why it does a full export on startup. it checks either ExportAtStartup is true or ExportOnSave is true and uSync data folder is missing. So that can be handled. But the StackOverFlow exception is still a pain :(

  • Hitesh Sharma 24 posts 124 karma points
    Jun 05, 2018 @ 09:39
    Hitesh Sharma
    0

    Hi Kevin,

    I debug the source code of uSync with my application and found that the problem is with exporting template. One of my template show a Path like this

    -1,1080,1082,1080

    So it seems like the parent of a child has the same child as its parent. This is causing an infinite loop in "GetItemPath()" method. So this is definitely an issue with uSync. Now I will try to find why that happened.

    Thank you for your help!

  • Hitesh Sharma 24 posts 124 karma points
    Jun 12, 2018 @ 12:15
    Hitesh Sharma
    0

    I fixed the issue by changing the parent of one of the template and now everything is working as expected.

Please Sign in or register to post replies

Write your reply to:

Draft