PC Crashing with System.IO.IOException after playing the game for more than 1h

Discussion in 'PC Bug Reports' started by chuim, Jan 5, 2016.

  1. chuim

    chuim Terrarian

    Hello.

    After I upgraded to Windows 10 I've been having a frequent crash while playing Terraria. It happens after I play for a long while, I'd say at least after 1h of play time but it could last until 3h, happening anywhere in that time frame.

    After researching for a while about Terraria crashes I am doing/have done these steps:
    - Running Terraria as an Administrator.
    - Deleted config files from <My Documents folder>\My Games\Terraria (both .json files).
    - Removed the symbolic links I had for the Players and Worlds folder that allowed me to cloud-sync-DIY-style with Dropbox.
    - Made sure all files under <My Documents folder>\My Games\Terraria are not read-only.

    But even though these changes did extend the play time I get, the crash still always happens.

    In the Windows Event Log I always get two entries for each crash, which are pasted further down (redacted my computer name). One weird thing I noticed is that the reported Terraria version there is 1.3.0.7 even though the one I see in the title screen is 1.3.0.8. Is this expected?

    Can anyone assist me with this? Could this be an incompatibility with .NET Runtime v4?

    Thanks!

    ==============================================================================
    Logs from Event Viewer:

    #1
    Log Name: Application
    Source: Application Error
    Date: 1/6/2016 12:30:23 AM
    Event ID: 1000
    Task Category: (100)
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: *****
    Description:
    Faulting application name: Terraria.exe, version: 1.3.0.7, time stamp: 0x55c8fafb
    Faulting module name: KERNELBASE.dll, version: 10.0.10586.0, time stamp: 0x5632da1c
    Exception code: 0xe0434352
    Fault offset: 0x000bd8a8
    Faulting process id: 0x17c
    Faulting application start time: 0x01d14806baed1e0a
    Faulting application path: D:\games\steam\steamapps\common\terraria\Terraria.exe
    Faulting module path: C:\WINDOWS\SYSTEM32\KERNELBASE.dll
    Report Id: c22eae72-f618-446b-b66c-d709ba899df7
    Faulting package full name:
    Faulting package-relative application ID:

    #2
    Log Name: Application
    Source: .NET Runtime
    Date: 1/6/2016 12:30:23 AM
    Event ID: 1026
    Task Category: None
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: *****
    Description:
    Application: Terraria.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.IO.IOException
    at System.IO.__Error.WinIOError(Int32, System.String)
    at System.IO.FileStream.Init(System.String, System.IO.FileMode, System.IO.FileAccess, Int32, Boolean, System.IO.FileShare, Int32, System.IO.FileOptions, SECURITY_ATTRIBUTES, System.String, Boolean, Boolean, Boolean)
    at System.IO.FileStream..ctor(System.String, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare)
    at Terraria.Utilities.FileUtilities.Write(System.String, Byte[], Int32, Boolean)
    at Terraria.IO.WorldFile.saveWorld(Boolean, Boolean)
    at Terraria.WorldGen.saveAndPlayCallBack(System.Object)
    at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object)
    at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
    at System.Threading.ThreadPoolWorkQueue.Dispatch()
    at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
     
  2. Arkhayla

    Arkhayla Quality Director Re-Logic

    Can you try performing these steps? It looks like you are having file access issues.

    1. Open My Documents\My Games\ and right click the Terraria folder
    2. Click Properties.
    3. Click the Security tab
    4. Click the "Advanced" button.
    5. Click "Change" next to Owner.
    6. Type your username, click the "Check Names" button, then click OK.
    7. Check "Replace owner on subcontainers and objects" under the owner's name.
    8. Click OK again. If you get a message saying "Do you want to replace the directory permissions with permissions granting you full control?", click "Yes" and you're done.
    9. Click the "Edit" button.
    10. Click on your username from the list.
    11. Check "Full control" underneath it.
    12. Click OK.
    13. Click OK again.

    If that doesn't work, please try disabling steam cloud (via steam, not in game)

    1. In your Steam Library, right-click on Terraria and select "Properties."
    2. Click the "Updates" tab.
    3. Uncheck "Enable Steam Cloud synchronization for Terraria."
    4. Click "Close."
     
    Last edited: Jan 6, 2016
    Leinfors likes this.
  3. chuim

    chuim Terrarian

    Thanks for the suggestions. I did the ownership change as soon as I read your message and was trying it out. It initially seemed to have fixed it but alas it just happened again.

    I'm now on step 2 and have disabled Steam Cloud. Let's see how it goes... I'll report again.
     
    Arkhayla likes this.
  4. chuim

    chuim Terrarian

    So after trying things out since posting my previous message I can confirm that turning OFF Steam Cloud sync fixed everything! I even stopped running Terraria as Administrator and no crashes happened anymore. I guess there are some issues with cloud sync still lurking around...
     
    Arkhayla likes this.
  5. chuim

    chuim Terrarian

    Oh, well. I think I celebrated too early. Crashes are back since 2 days ago. :(

    I re-enabled "run as administrator" so let's see how things go from now. I'll wait longer this time to report back.
     
  6. Autronic

    Autronic Terrarian

    lol i have the same crash, i fix it with the same method but know when i type to create a world (expert,medium) the game closed automaticaly... im useing tmodloader and calamity mod ONLY enable. any ideas to fic this cacner hole i play terraria since january 2016.. 1 year without terraria becouse it closed every time is very annoying... ;(
     
  7. Leinfors

    Leinfors Quality Assurance Staff Member Moderator Re-Logic

    @Autronic, if you are using mods, the most likely culprit is the mods. It may be a similar crash in appearance, but it could be caused by something entirely different.

    If you are having trouble with game functionality when using mods, please post in the mod discussion section, as this is only for vanilla Terraria. :)
     
  8. Autronic

    Autronic Terrarian

    o... lol the crash is still happening omfg i hate this glitch wtf i did everything but this cancerh0le is unfixable...

    {if you know another solution answer}
    --- Double Post Merged, Sep 1, 2017, Original Post Date: Sep 1, 2017 ---
    OK MrLeinfors