Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Crash when clicking Build #1019

Closed
SanchoBlaze opened this issue Jun 22, 2017 · 5 comments
Closed

Crash when clicking Build #1019

SanchoBlaze opened this issue Jun 22, 2017 · 5 comments
Assignees
Labels
blocker An issue that is blocking further progress for users

Comments

@SanchoBlaze
Copy link

Expected behaviour

Build the project

Actual behaviour

Crashed
java.lang.UnsatisfiedLinkError: Can't obtain static method fromNative(Method, Object) from class com.sun.jna.Native

Steps to reproduce

Click Build (Getting Started Tutorial)


Defold version1.2.107
Defold sha86632bf7cdeb8d9833baff3864fe480c1162f8da
Build time2017-06-22T10:48:42.692440
OS nameWindows 10
OS version10.0
OS archamd64
Java version1.8.0_102-b14
Error2d0b7c7115954d779f699cc413121fd4
@matgis-king
Copy link

@SanchoBlaze
Copy link
Author

SanchoBlaze commented Jun 22, 2017

I do have an older version of java (v7) installed as well, if that helps debug.

@matgis-king
Copy link

Thanks! I suspect there could be a conflicting JNA installation on your machine that we're loading by mistake. We might need to supply a flag to our bundled Java Runtime. Could you try to edit the config file next to Defold.exe and insert -Djna.nosys=true, at the front of the vmargs setting so it looks like this?

vmargs = -Djna.nosys=true,-Ddefold.resourcespath=${bootstrap.resourcespath},...

Depending on where you put your Defold folder, Windows might fight you on this. I had to copy the config file onto my desktop to be able to edit it, then copy it back after making the change, overwriting the old one.

If this solves your issue, we can try including the jna.nosys flag in future builds of the editor.

@SanchoBlaze
Copy link
Author

Yep, that fixed it. Thanks :)

@matgis-king
Copy link

Thank you! We'll add the flag to future builds!

@matgis-king matgis-king self-assigned this Jun 22, 2017
@matgis-king matgis-king added the blocker An issue that is blocking further progress for users label Jun 22, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocker An issue that is blocking further progress for users
Projects
None yet
Development

No branches or pull requests

2 participants