Core ReactOS
  1. Core ReactOS
  2. CORE-10381

User profile environment variables disappear

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: RosDlls
    • Labels:
      None

      Description

      Keys seem to randomly go missing from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList, which causes userenv to freak out and not assign user profile environment variables.
      However this does not seem to happen only at logon. Some programs (e.g. Chrome setup) trigger this behavior reliably even without a reboot.

      E.g. the following message is an indicator of this problem:

      err:(dll/win32/wininet/urlcache.c:847) no container found
      

      This should never happen since CSIDL_INTERNET_CACHE is defined as a catch-all container requiring no suffix. That means when wininet was loaded, this folder could not be determined (likely because of a missing USERPROFILE variable)

      1. env.c.patch
        0.7 kB
        Mark Jansen
      2. syssetup-restore-ros-hack.patch
        0.5 kB
        Thomas Faber

        Issue Links

          Activity

          Hide
          Thomas Faber
          added a comment -

          This issue blocks the Chrome issue => that means it's a necessary condition, not a sufficient condition, that this issue be fixed to run Chrome
          This issue is not closed because it is not fixed. In part because we don't set these environment variables for services (see the comments above); in part because we don't know what's even causing them to go missing – my attached patch was merely a guess.

          Show
          Thomas Faber
          added a comment - This issue blocks the Chrome issue => that means it's a necessary condition, not a sufficient condition, that this issue be fixed to run Chrome This issue is not closed because it is not fixed. In part because we don't set these environment variables for services (see the comments above); in part because we don't know what's even causing them to go missing – my attached patch was merely a guess.
          Hide
          Mark Jansen
          added a comment -

          Thomas Faber, what would be a reliable way to test for missing env vars?
          Maybe we could add logging, including 'CORE-10381', so that one day we might find a good way of reproducing it.

          Show
          Mark Jansen
          added a comment - Thomas Faber , what would be a reliable way to test for missing env vars? Maybe we could add logging, including ' CORE-10381 ', so that one day we might find a good way of reproducing it.
          Hide
          victor martinez calvo
          added a comment -

          Seems the issue s still happening. Any ideas why it is still dissapearing?

          Show
          victor martinez calvo
          added a comment - Seems the issue s still happening. Any ideas why it is still dissapearing?
          Hide
          HBelusca
          added a comment -

          On Windows, userenv.dll ensures the creation of the special profiles under the ProfileList key.

          Show
          HBelusca
          added a comment - On Windows, userenv.dll ensures the creation of the special profiles under the ProfileList key.
          Hide
          HBelusca
          added a comment - - edited

          Hi guys, please retest because CORE-12414 is now solved (revision 73433) and, according to the precise description of the symptoms (in particular the services stuff), it looks like it should be solved now!

          Show
          HBelusca
          added a comment - - edited Hi guys, please retest because CORE-12414 is now solved (revision 73433) and, according to the precise description of the symptoms (in particular the services stuff), it looks like it should be solved now!

            People

            • Assignee:
              Thomas Faber
              Reporter:
              Thomas Faber
            • Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated: