Skip to content

Processing cannot run because it could not create a folder to store your settings. #449

@processing-bugs

Description

@processing-bugs

Original author: cpuro...@gmail.com (October 15, 2010 14:59:46)

This refers to the following 2 bugs:
http://processing.org/bugs/bugzilla/585.html
http://processing.org/bugs/bugzilla/1016.html

What steps will reproduce the problem?

  1. Have a domain user with roaming profile login to a computer for the 1st time. Logout, this will now store the roaming profile(including the user's registry hive) on the server and erase the local cached copy of it.
  2. Have a local user with the same username login to the same computer for the 1st time, this will now create a user profile with the same name as the domain user.
  3. Have the domain user from step1 login again and run processing.

Expected output: Processing runs.
Actual result: Processing does not run with the following error message "Processing cannot run because it could not create a folder to store your settings."

What version of the product are you using? On what operating system?
Processing 1.2.1 on Windows 7(This would however most likely also occur on Windows 2000, XP and Vista)

Please provide any additional information below.

I've narrowed down the bug to the fact that Processing wrongly assumes that the paths specified in the following registry section are always correct.

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

When the domain user logs in to the same computer in step 3, the user's profile folder on the computer will now have a .domain suffix appended to it, as in the name of the domain the user belongs to. This is standard windows behavior to avoid a collision with the existing local user's profile folder.

The issue in Processing occurs because Windows will never update any of the entries in

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

after they were 1st created to match the new profile folder path with the .domain suffix appended to it, so Processing tries to write to the non-domain user's profile path, which of course it doesn't have rights to.

Microsoft even put in a notice in that said Registry key labeled: "!Do not use this registry key - Use the SHGetFolderPath or SHGetKnownFolderPath function instead"

The reason being that the data in that key will not be valid all the time.

Original issue: http://code.google.com/p/processing/issues/detail?id=410

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions