Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Library\ScriptAssemblies\Assembly-CSharp.pdb: The process cannot accessg

Discussion in 'Editor & General Support' started by KD_W, Oct 11, 2021.

  1. Arathorn_J

    Arathorn_J

    Joined:
    Jan 13, 2018
    Posts:
    47
    I'm getting the same issue here, for the last couple of months since switching to 2021.2. Can be any project using Burst.
     
  2. MaxPfeil

    MaxPfeil

    Joined:
    Dec 20, 2019
    Posts:
    10
    Crossposting from the other thread discussing the same issue:


    I can quite confidently say that Burst version 1.7.0-pre.1 solved whatever caused this issue.

    I tried to recreate the error by repeatedly commenting and uncommenting lines of code inside and outside bursted code, to cause a recompilation.

    Tried this on 1.7.0-pre.1 about 50 times, not a single time.
    Changed back to 1.6.3, closed and reopened the editor - got the error on the second try.
     
    KD_W and GeorgeAdamon like this.
  3. o1o101

    o1o101

    Joined:
    Jan 19, 2014
    Posts:
    637
    Another possible workaround that does the trick without needing to fully restart the editor, if the save method does not work >
    Try creating a new script, then deleting that script.

    It seems anything that can trigger "Reload Scripting Assemblies" will solve the error.
     
    Last edited: Dec 16, 2021
  4. ClearRoseOfWar

    ClearRoseOfWar

    Joined:
    Sep 6, 2015
    Posts:
    87
    Seems to happen when I save my scripts. after a while, the editor doesnt compile and I have to restart unity; Problem goes away after that. Am using latest release from Dec 11. 2021 on windows 10 2021.2.6f1
     
  5. KD_W

    KD_W

    Joined:
    Feb 9, 2015
    Posts:
    19
    This works. I updated to 1.70-pre.1 for 2 days now, not seeing the error.
     
  6. Trindenberg

    Trindenberg

    Joined:
    Dec 3, 2017
    Posts:
    380
    I found that when this happens, Unity is recompiling although reading above no idea if this is Burst related, but tend to have it installed. Saving in Visual Studio seems to trigger a recompile rather than a switchback does (on older versions?), but then if you save again while it's recompiling you get this error. Wait a moment before resaves and it's all gravy.
     
  7. BBO_Lagoon

    BBO_Lagoon

    Joined:
    Mar 2, 2017
    Posts:
    190
    Hi, I have nearly the same problem but I'm not using Burst on my code, Burst is used by Universal RP and the pdb file that cause the error is Unity.RenderPipelines.Universal.Runtime.pdb.
    The error happen only when I pull code changes from GIT.
    Really weird error but really annoying too !

    Unity 2021.2.3f1
    Burst 1.6.3
    Universal RP 12.1.1
     
  8. celeronpm

    celeronpm

    Joined:
    Feb 15, 2017
    Posts:
    11
    Happens to me every 10 mins requiring constant editor restarts.
     
  9. Arathorn_J

    Arathorn_J

    Joined:
    Jan 13, 2018
    Posts:
    47
  10. scorpioservo

    scorpioservo

    Joined:
    Jul 24, 2020
    Posts:
    11
    Can confirm that I am having this issue on 2020.3.26f1. Really annoying to have to restart Unity every 15 minutes.
     
  11. ProGameDevUser

    ProGameDevUser

    Joined:
    Mar 17, 2018
    Posts:
    114
    Hi! I find this video and real help me, link


    UPD: After upgrading to the latest version of burst, this error no longer appears
     
    Last edited: Feb 8, 2022
  12. unitygnoob008

    unitygnoob008

    Joined:
    Sep 17, 2016
    Posts:
    225
    ive been getting this recently like totally not sure why
     
  13. Predulus

    Predulus

    Joined:
    Feb 5, 2018
    Posts:
    89
    Are we going to see a Unity person chiming in here??
     
  14. Arathorn_J

    Arathorn_J

    Joined:
    Jan 13, 2018
    Posts:
    47
  15. Spikebor

    Spikebor

    Joined:
    May 30, 2019
    Posts:
    269
    I'm using 2021.2.14f1 and the issue is still there.
    Recently I got this many times and every time I have to restart Editor, which slow down development a lot!
     
  16. LapidistCubed

    LapidistCubed

    Joined:
    Dec 22, 2015
    Posts:
    9
    The issue has now been fixed in the Burst package 1.6.5 and later.
     
  17. jijicake

    jijicake

    Joined:
    Jun 27, 2021
    Posts:
    6
    Just quit unity editor and unity hub and reopen them.
     
  18. tgienger

    tgienger

    Joined:
    Jul 18, 2013
    Posts:
    45
    Unacceptable.
     
    AndrewCzarnietzki likes this.