Skip to content
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

Background worker generates "Invalid field access error" with neko #1

Open
IndrekV opened this issue Apr 4, 2016 · 4 comments
Open

Comments

@IndrekV
Copy link
Contributor

IndrekV commented Apr 4, 2016

Running lime test neko on osx 10.11.3

Line 38 in MenuState.hx: var worker = new BackgroundWorker();

Generates error:

sample indrekv [master] $ lime test neko
Invalid field access : new
Called from MenuState.hx line 38
Called from flixel/FlxGame.hx line 621
Called from flixel/FlxGame.hx line 334
Called from openfl/_legacy/events/EventDispatcher.hx line 98
Called from a C function
Called from openfl/_legacy/display/DisplayObject.hx line 70
Called from openfl/_legacy/display/DisplayObject.hx line 362
Called from a C function
Called from openfl/_legacy/display/DisplayObjectContainer.hx line 379
Called from openfl/_legacy/display/DisplayObject.hx line 423
Called from openfl/_legacy/display/DisplayObjectContainer.hx line 31
Called from Main.hx line 11
Called from a C function
Called from ApplicationMain.hx line 217
Called from a C function
Called from ApplicationMain.hx line 217
Called from a C function
Called from ApplicationMain.hx line 119
Called from openfl/_legacy/Lib.hx line 122
@Tiago-Ling
Copy link
Owner

Hi Indrek,

What is your version of OpenFL? Background worker is available from OpenFL
3.3.3 if i remember correctly.

Also, for it to work you must compile for "next", using the command "lime
test neko -Dnext"

I'll update the readme file with this information and i'll also try to set
next directly through project.xml.

Tiago Ling Alexandre
Tel: +55 41 8819-3191

2016-04-04 4:13 GMT-03:00 Indrek V [email protected]:

Running test neko on osx 10.11.3

Line 38 in MenuState.hx: var worker = new BackgroundWorker();

Generates error:

sample indrekv [master] $ lime test neko
Invalid field access : new
Called from MenuState.hx line 38
Called from flixel/FlxGame.hx line 621
Called from flixel/FlxGame.hx line 334
Called from openfl/_legacy/events/EventDispatcher.hx line 98
Called from a C function
Called from openfl/_legacy/display/DisplayObject.hx line 70
Called from openfl/_legacy/display/DisplayObject.hx line 362
Called from a C function
Called from openfl/_legacy/display/DisplayObjectContainer.hx line 379
Called from openfl/_legacy/display/DisplayObject.hx line 423
Called from openfl/_legacy/display/DisplayObjectContainer.hx line 31
Called from Main.hx line 11
Called from a C function
Called from ApplicationMain.hx line 217
Called from a C function
Called from ApplicationMain.hx line 217
Called from a C function
Called from ApplicationMain.hx line 119
Called from openfl/_legacy/Lib.hx line 122


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#1

@IndrekV
Copy link
Contributor Author

IndrekV commented Apr 4, 2016

I updated lime and openfl and still get errors. My haxelib list output is:

actuate: [1.8.6]
box2d: [1.2.3]
firetongue: git [dev:/usr/local/Cellar/haxe/lib/firetongue/git]
flixel-addons: [2.0.0]
flixel-demos: [2.0.0]
flixel-templates: 1.0.2 [2.0.0]
flixel-tools: 1.1.1 [1.1.2]
flixel-ui: git [dev:/usr/local/Cellar/haxe/lib/flixel-ui/git]
flixel: 4.0.0 git [dev:/usr/local/Cellar/haxe/lib/flixel/git]
format: [3.2.1]
haxelib_client: [3.2.0-rc.3]
hscript: [2.0.5]
hxcpp: 3.2.193 [3.2.205]
layout: [1.2.1]
lime-samples: [2.6.0]
lime: 2.7.0 2.8.3 2.9.0 [2.9.1]
nme: [5.5.7]
openfl-samples: [3.3.1]
openfl-websocket: [0.1.0]
openfl: 3.4.0 3.5.3 3.6.0 [3.6.1]
svg: 1.0.8 [1.0.9]
swf: 2.1.3 [2.2.0]
task: [1.0.7]

Running with -Dnext

sample indrekv [master] $ lime test neko -Dnext
Uncaught exception - std@module_read

Running without -Dnext

sample indrekv [master] $ lime test neko
FlxIsoTilemap.hx:97: Map size in pixels : 38400 x 19200
FlxIsoTilemap.hx:102: Origin : (x: 368 | y: -9424)
FlxIsoTilemap.hx:106: MapBounds : (x=-18800, y=-9424, width=38400, height=19264)
FlxIsoTilemap.hx:110: viewportBounds : (x=0, y=0, width=800, height=480)
FlxIsoTilemap.hx:126: offsetViewportBounds : (x=-64, y=-32, width=928, height=608)
Invalid field access : new
Called from MenuState.hx line 48
Called from flixel/FlxGame.hx line 621
Called from flixel/FlxGame.hx line 334
Called from openfl/_legacy/events/EventDispatcher.hx line 98
Called from a C function
Called from openfl/_legacy/display/DisplayObject.hx line 70
Called from openfl/_legacy/display/DisplayObject.hx line 362
Called from a C function
Called from openfl/_legacy/display/DisplayObjectContainer.hx line 379
Called from openfl/_legacy/display/DisplayObject.hx line 423
Called from openfl/_legacy/display/DisplayObjectContainer.hx line 31
Called from Main.hx line 11
Called from a C function
Called from ApplicationMain.hx line 217
Called from a C function
Called from ApplicationMain.hx line 217
Called from a C function
Called from ApplicationMain.hx line 119
Called from openfl/_legacy/Lib.hx line 122

I also tried deleting the export folder and compiling again.

@Tiago-Ling
Copy link
Owner

Hmmm, this might not work using Neko then? Strange, i'll have to check this
more thoroughly tonight.

Did you try compiling for Mac? It should work afaik.

Also, did you change the map size in MenuState? From my tests currently any
map larger than 1200 x 1200 tiles will crash the application (this is on
windows, on Neko the limit will probably be much lower, like ~700x700 or
something like that).

About the export folder: you can use the parameter "-clean" to
automatically remove the export folder, e.g.: "lime test mac -Dnext -clean"

Tiago Ling Alexandre
Tel: +55 41 8819-3191

2016-04-04 9:12 GMT-03:00 Indrek V [email protected]:

I updated lime and openfl and still get errors. My haxelib list out put is

actuate: [1.8.6]
box2d: [1.2.3]
firetongue: git [dev:/usr/local/Cellar/haxe/lib/firetongue/git]
flixel-addons: [2.0.0]
flixel-demos: [2.0.0]
flixel-templates: 1.0.2 [2.0.0]
flixel-tools: 1.1.1 [1.1.2]
flixel-ui: git [dev:/usr/local/Cellar/haxe/lib/flixel-ui/git]
flixel: 4.0.0 git [dev:/usr/local/Cellar/haxe/lib/flixel/git]
format: [3.2.1]
haxelib_client: [3.2.0-rc.3]
hscript: [2.0.5]
hxcpp: 3.2.193 [3.2.205]
layout: [1.2.1]
lime-samples: [2.6.0]
lime: 2.7.0 2.8.3 2.9.0 [2.9.1]
nme: [5.5.7]
openfl-samples: [3.3.1]
openfl-websocket: [0.1.0]
openfl: 3.4.0 3.5.3 3.6.0 [3.6.1]
svg: 1.0.8 [1.0.9]
swf: 2.1.3 [2.2.0]
task: [1.0.7]

Running with -Dnext

sample indrekv [master] $ lime test neko -Dnext
Uncaught exception - std@module_read

Running without -Dnext

sample indrekv [master] $ lime test neko
FlxIsoTilemap.hx:97: Map size in pixels : 38400 x 19200
FlxIsoTilemap.hx:102: Origin : (x: 368 | y: -9424)
FlxIsoTilemap.hx:106: MapBounds : (x=-18800, y=-9424, width=38400, height=19264)
FlxIsoTilemap.hx:110: viewportBounds : (x=0, y=0, width=800, height=480)
FlxIsoTilemap.hx:126: offsetViewportBounds : (x=-64, y=-32, width=928, height=608)
Invalid field access : new
Called from MenuState.hx line 48
Called from flixel/FlxGame.hx line 621
Called from flixel/FlxGame.hx line 334
Called from openfl/_legacy/events/EventDispatcher.hx line 98
Called from a C function
Called from openfl/_legacy/display/DisplayObject.hx line 70
Called from openfl/_legacy/display/DisplayObject.hx line 362
Called from a C function
Called from openfl/_legacy/display/DisplayObjectContainer.hx line 379
Called from openfl/_legacy/display/DisplayObject.hx line 423
Called from openfl/_legacy/display/DisplayObjectContainer.hx line 31
Called from Main.hx line 11
Called from a C function
Called from ApplicationMain.hx line 217
Called from a C function
Called from ApplicationMain.hx line 217
Called from a C function
Called from ApplicationMain.hx line 119
Called from openfl/_legacy/Lib.hx line 122

I also tried deleting the export folder and compiling again.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#1 (comment)

@IndrekV
Copy link
Contributor Author

IndrekV commented Apr 4, 2016

This seems to be a neko specific issue.
Running lime test mac -Dnext -clean worked without issues.

Thank you for your feedback on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants