openFl 5.0.0 update problem

Could you try two things for me?

Run:

haxelib path lime:5.0.2

and also

neko /usr/share/haxe/lib/lime/5,0,2/tools/haxelib.n path lime:5.0.*

or

neko C:\HaxeToolkit\haxe\lib\lime\5,0,2\tools\haxelib.n path lime:5.0.*

…depending on where Haxe is installed, and see what they return. Thank you!

This information will help us fix this feature for future releases. In the meantime, you can also install the OpenFL 5.1.2 release made today, which uses the older style of including Lime in order to avoid this problem

Here are the two messages

-L C:\dev\HaxeToolkit\haxe\lib\lime/5,0,2/ndll/
–macro lime.Lib.extraParams()
C:\dev\HaxeToolkit\haxe\lib\lime/5,0,2/
-D lime=5.0.2

Error: Invalid parameter : 5.0.*

Edit: If I change the second commands version to 5.0.2, it returns the first result also.

Have installed haxe 3.4.2 and haxe version request is gone, but there are different issues now for e.g.

openfl test html5

throw following

chmod: changing permissions of ‘/usr/share/haxe/lib/lime/5,0,2/templates/bin/node/node-linux64’: Operation not permitted

events.js:72
throw er; // Unhandled ‘error’ event
^
Error: listen EADDRINUSE
at errnoException (net.js:904:11)
at Server._listen2 (net.js:1042:14)
at listen (net.js:1064:10)
at net.js:1146:9
at dns.js:72:18
at process._tickCallback (node.js:419:13)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)
at node.js:906:3

Try the following command:

sudo chmod -R 755 /usr/share/haxe/lib

Alas, no luck

events.js:72
throw er; // Unhandled ‘error’ event
^
Error: listen EADDRINUSE
at errnoException (net.js:904:11)
at Server._listen2 (net.js:1042:14)
at listen (net.js:1064:10)
at net.js:1146:9
at dns.js:72:18
at process._tickCallback (node.js:419:13)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)
at node.js:906:3

If the port is in use, you can try another:

openfl test html5 --port=3001
1 Like

Wow that worked awesome, now there is still fishy thing:

I test SimpleBox2D sample it worked but as I move to starling “particle-demo” it says:

Error: Could not find haxelib “lime” version “5.0.*”, does it need to be installed?

on which I changed the lime to 5.0.2 and then it worked. Then again I tried SimpleBox2D this time it asked:

Error: OpenFL 5.0.0 is not compatible with Lime 5.0.2 (version 4.1.* is required)

Try OpenFL 5.1.2, which should be compatible with Lime 5 :slight_smile:

1 Like

Thanks both works now, I just have to lock the port number for openfl :slight_smile:

Apologies I tried the upgrade on ubuntu 15 (I had openfl 3 working fine) and now having issues in it, after all the update procedure I mean updating haxe then updated openfl then lime and then openfl setup. Now as I am runing the command

openfl test html5

it says

Segmentation fault (core dumped)
Segmentation fault (core dumped)

and also I encounter the ubuntu prompted that neko stoped working unexpectedly…

Try openfl, openfl -v or openfl test html5 -v to try and get more information about what is happening.

I have had trouble with apt-get and other Haxe install methods leading to a broken Neko install, so you may also want to run our Linux install script for Haxe and Neko:

http://builds.openfl.org/haxe/

1 Like

It is lot of information…

OpenFL Command-Line Tools (3.1.4-LDNdsd)

Initializing project…
Using project file: /home/najm/project/scoops3/application.xml
Reading Lime config: /home/najm/.lime/config.xml
Using target platform: HTML5

Running command: UPDATE

  • Running command: neko /usr/lib/haxe/lib/lime/5,1,0/svg.n process assets/cone.svg 192 192 /tmp/temp_13521826.png
    Segmentation fault (core dumped)
  • Running command: java -Dapple.awt.UIElement=true -jar /usr/lib/haxe/lib/lime/5,1,0//templates/bin/batik/batik-rasterizer.jar -d /tmp/temp_13521826.png -w 192 -h 192 assets/cone.svg
    Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
    About to transcode 1 SVG file(s)

Converting cone.svg to /tmp/temp_13521826.png … Jun 13, 2017 1:17:04 AM com.jarego.jayatana.FeatureWrapper deployOnce
WARNING: can’t deploy feature: com.jarego.jayatana.swing.SwingWMClass
java.security.AccessControlException: access denied (“java.util.PropertyPermission” “jayatana.startupWMClass” “read”)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:457)
at java.security.AccessController.checkPermission(AccessController.java:884)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1294)
at java.lang.System.getProperty(System.java:717)
at com.jarego.jayatana.swing.SwingWMClass.deploy(SwingWMClass.java:58)
at com.jarego.jayatana.FeatureWrapper.deployOnce(FeatureWrapper.java:119)
at com.jarego.jayatana.FeatureManager.deployOnce(FeatureManager.java:100)
at com.jarego.jayatana.FeatureManager.deployForSwing(FeatureManager.java:87)

Jun 13, 2017 1:17:04 AM com.jarego.jayatana.FeatureWrapper deployOnce
WARNING: can’t deploy feature: com.jarego.jayatana.basic.NativeLibraries
java.security.AccessControlException: access denied (“java.lang.RuntimePermission” “loadLibrary.jawt”)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:457)
at java.security.AccessController.checkPermission(AccessController.java:884)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkLink(SecurityManager.java:835)
at java.lang.Runtime.loadLibrary0(Runtime.java:864)
at java.lang.System.loadLibrary(System.java:1122)
at com.jarego.jayatana.basic.NativeLibraries.deploy(NativeLibraries.java:11)
at com.jarego.jayatana.FeatureWrapper.deployOnce(FeatureWrapper.java:119)
at com.jarego.jayatana.FeatureWrapper.deployOnce(FeatureWrapper.java:111)
at com.jarego.jayatana.FeatureManager.deployOnce(FeatureManager.java:100)
at com.jarego.jayatana.FeatureManager.deployForSwing(FeatureManager.java:89)

Jun 13, 2017 1:17:04 AM com.jarego.jayatana.FeatureWrapper deployOnce
WARNING: can’t deploy feature: com.jarego.jayatana.swing.SwingGlobalMenu
java.lang.Exception: failed dependency: com.jarego.jayatana.basic.NativeLibraries
at com.jarego.jayatana.FeatureWrapper.deployOnce(FeatureWrapper.java:114)
at com.jarego.jayatana.FeatureManager.deployOnce(FeatureManager.java:100)
at com.jarego.jayatana.FeatureManager.deployForSwing(FeatureManager.java:89)

… success
Segmentation fault (core dumped)

I also used the latest script: http://builds.openfl.org/haxe/1

and started install but after few steps it stops here, multiple tries stops it here…

Downloading Haxe 3.1.3 (64-bit)

–2017-06-13 01:10:00-- http://haxe.org/website-content/downloads/3,1,3/downloads/haxe-3.1.3-linux64.tar.gz
Resolving haxe.org (haxe.org)… 13.32.22.77, 13.32.22.173, 13.32.22.204, …
Connecting to haxe.org (haxe.org)|13.32.22.77|:80… connected.
HTTP request sent, awaiting response… 404 Not Found
2017-06-13 01:10:06 ERROR 404: Not Found.

It looks like there may be a version mismatch

The latest version of OpenFL and Lime are OpenFL 5.1.3 and Lime 5.1.0, which should work with Haxe 3.2.1 or Haxe 3.4.2

1 Like

I used the second last version: http://builds.openfl.org/haxe/2 and it worked, i.e. Haxe 3.2.1

1 Like
openfl test neko
Uncaught exception - std@module_read

That occurs when an application binary is larger than Neko’s size limit. The size limit is increased in the newer Neko build in Haxe 3.4.2, or you can use another target :slight_smile:

I am little confuse, neko old build is 866 KB (when build on openfl 3), openfl 5 neko build require more size limit ?

We rely on Haxe for more code than the old OpenFL legacy code did.

PiratePig is 1.7 MB here

1 Like