New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnsatisfiedLinkError on startup "Access is denied" on Windows 10 #3800

Closed
B3040 opened this Issue Sep 15, 2015 · 28 comments

Comments

Projects
None yet
3 participants
@B3040

B3040 commented Sep 15, 2015

Hi, when I try to start processing.exe following "serious problem" pops up and the sketch doesn't show up:
image
The corresponding log-file says:

logfile

Platform used:

Processing version: 3.0b6 (Windows 64 bit)
sketch version: 150914a

Operating system: Windows 10 Home
Processor: Intel(R) Core(TM) i5-4210Y CPU @ 1.50 GHz 1.50 GHz
Installed RAM: 8.0 GB (7.88 GB usable)
System type: 64-bit operating system
Pen and touch: Full Windows touch support with 10 touch points

Notebook: Lenovo Ideapad Yoga 11S
Monitor: Generic PnP monitor
Display adapter: Intel(R) HD Graphics Family

On the platform given previous versions of processing don't work either.
Needless to say, the same processing version (3.0b6, Windows 64 bit) works well on my other PC.

How could this be fixed?

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Sep 15, 2015

Member

This is a problem in JNA, a library that Processing uses, but we need to find a workaround

Do you have a C:\TEMP folder? If so, try deleting it and then restarting Processing.

Or if there is no C:\TEMP, try creating one and starting Processing.

Or if not, it's possible that the workaround I implemented for #3624 may not be compatible with new security settings in Windows 10.

Member

benfry commented Sep 15, 2015

This is a problem in JNA, a library that Processing uses, but we need to find a workaround

Do you have a C:\TEMP folder? If so, try deleting it and then restarting Processing.

Or if there is no C:\TEMP, try creating one and starting Processing.

Or if not, it's possible that the workaround I implemented for #3624 may not be compatible with new security settings in Windows 10.

@benfry benfry changed the title from startup problem: java.lang.UnsatisfiedLinkError: Failed to create temporary file ... to UnsatisfiedLinkError on startup "Access is denied" on Windows 10 Sep 15, 2015

@benfry benfry added the windows label Sep 15, 2015

@B3040

This comment has been minimized.

Show comment
Hide comment
@B3040

B3040 Sep 15, 2015

I did not have a C:\TEMP when the error occurred.
After having created a C:\TEMP the same error still pops up ("java.lang.UnsatisfiedLinkError: Failed to create temporary file ... Access is denied")
Is there anything that I reasonably could do?

B3040 commented Sep 15, 2015

I did not have a C:\TEMP when the error occurred.
After having created a C:\TEMP the same error still pops up ("java.lang.UnsatisfiedLinkError: Failed to create temporary file ... Access is denied")
Is there anything that I reasonably could do?

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry
Member

benfry commented Sep 15, 2015

@B3040

This comment has been minimized.

Show comment
Hide comment
@B3040

B3040 Sep 15, 2015

Many thanks for trying to help me so rapidly, but unfortunately it still does not work.
Now it says (with C:\TEMP):
"JNA could not be loaded properly." and
"java.io.IOException: Access is denied."

B3040 commented Sep 15, 2015

Many thanks for trying to help me so rapidly, but unfortunately it still does not work.
Now it says (with C:\TEMP):
"JNA could not be loaded properly." and
"java.io.IOException: Access is denied."

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Sep 15, 2015

Member

Can you try creating C:\TEMP yourself and see if that works?

Member

benfry commented Sep 15, 2015

Can you try creating C:\TEMP yourself and see if that works?

@B3040

This comment has been minimized.

Show comment
Hide comment
@B3040

B3040 Sep 15, 2015

Probably I was not clear enough in my last reply:
After having created C:\TEMP still does not work.
The relevant parts of the error message are:
"JNA could not be loaded properly." and "java.io.IOException: Access is denied."
And after having removed C:\TEMP the error message is:
"JNA could not be loaded into C:\TEMP."

B3040 commented Sep 15, 2015

Probably I was not clear enough in my last reply:
After having created C:\TEMP still does not work.
The relevant parts of the error message are:
"JNA could not be loaded properly." and "java.io.IOException: Access is denied."
And after having removed C:\TEMP the error message is:
"JNA could not be loaded into C:\TEMP."

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Sep 15, 2015

Member

Bummer... Are you running a standard or administrator account on that machine? Is it a clean install of Windows 10 or an upgrade? (Just trying to track down what's different from the Windows 10 machines I'm testing on.)

Member

benfry commented Sep 15, 2015

Bummer... Are you running a standard or administrator account on that machine? Is it a clean install of Windows 10 or an upgrade? (Just trying to track down what's different from the Windows 10 machines I'm testing on.)

@B3040

This comment has been minimized.

Show comment
Hide comment
@B3040

B3040 Sep 15, 2015

It is an Administrator account and a clean installation of Windows 10 Home, not an upgrade.

B3040 commented Sep 15, 2015

It is an Administrator account and a clean installation of Windows 10 Home, not an upgrade.

@B3040

This comment has been minimized.

Show comment
Hide comment
@B3040

B3040 Sep 15, 2015

and I am signing in with my Microsoft account, not with a local account.

B3040 commented Sep 15, 2015

and I am signing in with my Microsoft account, not with a local account.

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Sep 15, 2015

Member

Oh... interesting. Wonder if that's a clue.

Member

benfry commented Sep 15, 2015

Oh... interesting. Wonder if that's a clue.

@B3040

This comment has been minimized.

Show comment
Hide comment
@B3040

B3040 Sep 17, 2015

Signing in with a Microsoft Account or a Local Account doesn't make a difference. The same errors pop up as we know them, with or without a c:\temp folder, executing "processing-150915a" or "processing-3.0b6".
Do you continue to find a solution, or should I forget it and wait for the next update?

B3040 commented Sep 17, 2015

Signing in with a Microsoft Account or a Local Account doesn't make a difference. The same errors pop up as we know them, with or without a c:\temp folder, executing "processing-150915a" or "processing-3.0b6".
Do you continue to find a solution, or should I forget it and wait for the next update?

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Sep 17, 2015

Member

I haven't found free time to do a clean install of Windows 10 and test, unfortunately. Anyone want to help?

Member

benfry commented Sep 17, 2015

I haven't found free time to do a clean install of Windows 10 and test, unfortunately. Anyone want to help?

@benfry benfry added the help wanted label Sep 17, 2015

@neilcsmith-net

This comment has been minimized.

Show comment
Hide comment
@neilcsmith-net

neilcsmith-net Sep 17, 2015

Have you considered the alternative approach of shipping jnidispatch outside of the JNA jar, rather than relying on the JNA extraction mechanism?

neilcsmith-net commented Sep 17, 2015

Have you considered the alternative approach of shipping jnidispatch outside of the JNA jar, rather than relying on the JNA extraction mechanism?

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Sep 18, 2015

Member

Not really, because that just pushes the problem to the next component/library/etc that makes use of JNA.

Member

benfry commented Sep 18, 2015

Not really, because that just pushes the problem to the next component/library/etc that makes use of JNA.

@neilcsmith-net

This comment has been minimized.

Show comment
Hide comment
@neilcsmith-net

neilcsmith-net Sep 18, 2015

@benfry not sure why you think that?

JNA library extraction works brilliantly .. until it doesn't! 😄 I'm a developer and / or maintainer of two JNA based libraries (both used often with Processing) - permission issues crop up from time to time. The recommended way to handle this, and I can point you to posts on the JNA list about it, is to bypass automatic extraction. The safest place to load jnidispatch from is probably the Processing installation directory. It'll also probably make the process faster.

I don't know exactly how you're setting up java.library.path at the moment, but you could put jnidispatch somewhere there that it will be picked up. Or possibly safer use jna.boot.library.path, and set jna.nosys back to false obviously. Or there are a few other options. None of which require anything of any additional component / library though!

Hope that helps, best wishes, Neil

neilcsmith-net commented Sep 18, 2015

@benfry not sure why you think that?

JNA library extraction works brilliantly .. until it doesn't! 😄 I'm a developer and / or maintainer of two JNA based libraries (both used often with Processing) - permission issues crop up from time to time. The recommended way to handle this, and I can point you to posts on the JNA list about it, is to bypass automatic extraction. The safest place to load jnidispatch from is probably the Processing installation directory. It'll also probably make the process faster.

I don't know exactly how you're setting up java.library.path at the moment, but you could put jnidispatch somewhere there that it will be picked up. Or possibly safer use jna.boot.library.path, and set jna.nosys back to false obviously. Or there are a few other options. None of which require anything of any additional component / library though!

Hope that helps, best wishes, Neil

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Sep 19, 2015

Member

Well, worth a try.

Member

benfry commented Sep 19, 2015

Well, worth a try.

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Sep 20, 2015

Member

For people having problems with this, please try these versions and let me know how it goes:
http://download.processing.org/processing-150919a-windows32.zip
http://download.processing.org/processing-150919a-windows64.zip

Member

benfry commented Sep 20, 2015

For people having problems with this, please try these versions and let me know how it goes:
http://download.processing.org/processing-150919a-windows32.zip
http://download.processing.org/processing-150919a-windows64.zip

@B3040

This comment has been minimized.

Show comment
Hide comment
@B3040

B3040 Sep 20, 2015

With my Clean installation of Windows 10 Home and signed in on my microsoft account as administrator:

  • processing-150919a-windows32:
    -- with as well as without C:\Temp: JNA Error. JNA could not be loaded. java.lang.UnsatisfiedLinkError: Failed to create temporary file for jnidispatch library. Access denied ...
  • processing-150919a-windows64:
    -- with C:\Temp: Could not create temp directory. java.io.IOException: Access is denied ...
    -- without C:\Temp: Could not create temp directory. JNA could not be loaded into C:\TEMP.

B3040 commented Sep 20, 2015

With my Clean installation of Windows 10 Home and signed in on my microsoft account as administrator:

  • processing-150919a-windows32:
    -- with as well as without C:\Temp: JNA Error. JNA could not be loaded. java.lang.UnsatisfiedLinkError: Failed to create temporary file for jnidispatch library. Access denied ...
  • processing-150919a-windows64:
    -- with C:\Temp: Could not create temp directory. java.io.IOException: Access is denied ...
    -- without C:\Temp: Could not create temp directory. JNA could not be loaded into C:\TEMP.
@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Sep 20, 2015

Member

That's bizarre—the code to use C:\TEMP has been removed. Are you sure you quit out of any running version of Processing before trying this release?

Member

benfry commented Sep 20, 2015

That's bizarre—the code to use C:\TEMP has been removed. Are you sure you quit out of any running version of Processing before trying this release?

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Sep 20, 2015

Member

Hold that thought—I think I've found a way to debug it. Looking into it now...

Member

benfry commented Sep 20, 2015

Hold that thought—I think I've found a way to debug it. Looking into it now...

@B3040

This comment has been minimized.

Show comment
Hide comment
@B3040

B3040 Sep 20, 2015

you are right. After a Restart processing-150919a-windows65 also reports: JNA Error. JNA could not be loaded. java.lang.UnsatisfiedLinkError: Failed to create temporary file for jdnidisplatch. Access denied.
BTW: How can I quit out a running version of Processing without making a Restart? I do not immediately see it in the Task Manager.

B3040 commented Sep 20, 2015

you are right. After a Restart processing-150919a-windows65 also reports: JNA Error. JNA could not be loaded. java.lang.UnsatisfiedLinkError: Failed to create temporary file for jdnidisplatch. Access denied.
BTW: How can I quit out a running version of Processing without making a Restart? I do not immediately see it in the Task Manager.

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Sep 20, 2015

Member

New versions, this time I think I've got it:
http://download.processing.org/processing-150920a-windows32.zip
http://download.processing.org/processing-150920a-windows64.zip

Sorry for the confusion—if the window isn't open, it's not running.

Member

benfry commented Sep 20, 2015

New versions, this time I think I've got it:
http://download.processing.org/processing-150920a-windows32.zip
http://download.processing.org/processing-150920a-windows64.zip

Sorry for the confusion—if the window isn't open, it's not running.

@B3040

This comment has been minimized.

Show comment
Hide comment
@B3040

B3040 Sep 20, 2015

Not quite yet.
processing-150920a-windows32 and processing-150920a-windows64 report:
Setting issues. Processing cannot run because it could not create a folder to store your settings.

B3040 commented Sep 20, 2015

Not quite yet.
processing-150920a-windows32 and processing-150920a-windows64 report:
Setting issues. Processing cannot run because it could not create a folder to store your settings.

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Sep 20, 2015

Member

Huh... Is there more to that error message like a stack trace or more specific error?

Member

benfry commented Sep 20, 2015

Huh... Is there more to that error message like a stack trace or more specific error?

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Sep 20, 2015

Member

So that means the JNA problem seen in this bug is fixed, but we've uncovered a new problem that's specific to Windows 10. I'm closing this issue as fixed, and we can continue the discussion here: #3838

Member

benfry commented Sep 20, 2015

So that means the JNA problem seen in this bug is fixed, but we've uncovered a new problem that's specific to Windows 10. I'm closing this issue as fixed, and we can continue the discussion here: #3838

@benfry benfry closed this Sep 20, 2015

@B3040

This comment has been minimized.

Show comment
Hide comment
@B3040

B3040 Sep 20, 2015

no. that's all I get:
image

B3040 commented Sep 20, 2015

no. that's all I get:
image

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Sep 20, 2015

Member

Ok, watch for updates over here: #3838.

Member

benfry commented Sep 20, 2015

Ok, watch for updates over here: #3838.

@B3040

This comment has been minimized.

Show comment
Hide comment
@B3040

B3040 Sep 20, 2015

thanks a lot so far, benfry, for your efficiency.
curious for the solution of item #3838.

B3040 commented Sep 20, 2015

thanks a lot so far, benfry, for your efficiency.
curious for the solution of item #3838.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment