Pathfinding + cocoonjs = crash

Bugs will be moved here once resolved.

Post » Sat Jun 15, 2013 1:02 pm

Link to .capx file (required!):
"Example: Pathfinding demo" coming in C2 examples.

Steps to reproduce:
1. Open the "Example: Pathfinding demo" in C2.
2. Export it with CocoonJS
3. Launch it with CocoonJS Launcher on Android or IOS

Observed result:

CocoonJS Launcher Crash immediately.

Expected result:

Pathfinding to work like on desktop.

Browsers affected:
Chrome: no
Firefox: no
Internet Explorer: no

Operating system & service pack:
win7 sp 1
Construct 2 version:


Posts: 12
Reputation: 649

Post » Mon Jun 17, 2013 10:09 am

Hmm pathfinding plus Intel XDK = crash with the error:
ncaught TypeError: undefined is not a function c2runtime.js:10945
behinstProto.getMyInfo c2runtime.js:10945
behinstProto.generateMap c2runtime.js:10954
behinstProto.tick2 c2runtime.js:10928
Runtime.logic c2runtime.js:1917
Runtime.tick c2runtime.js:1760
Runtime.go_textures_done c2runtime.js:1725
Runtime.go c2runtime.js:1623
(anonymous function)

Simple to recreate, load up Construct 2 , drop in a sprite, add behavior / pathfinding.

Export Project to Intel XDK, run the project and the above error. Remove pathfinding behavior and runs fine.

This blows, i just spent a lot of cash on this program, did alot of testing in the free version, and then can't export the game to the advertised platforms, no where does it say limited functions on Ios.

I will give it a while for a dev to reply, but i will not wait long before i start to rant on steam forms, this is bad advertising, just hope it is a bug, and is fixed quick.

Posts: 2
Reputation: 179

Post » Mon Jun 17, 2013 2:59 pm

Should be fixed in the next build (for both XDK and CocoonJS).
Scirra Founder
Posts: 23,868
Reputation: 188,111

Post » Thu Jul 11, 2013 2:01 pm

My project is kinda stuck here as well. Hoping the new build comes soon!
Posts: 51
Reputation: 1,226

Post » Thu Apr 20, 2017 9:11 pm

I just want to touch up on this old subject. I was experiencing the same problem today and found the fix in the Cordova export options.

Uncheck 'use WKWebView on iOS (faster performance)' and pathfinding should not crash anymore. Glad it was a simple solution. Though I'm not sure how much of a performance is gained/loss, but project filesize is significantly smaller as well with it unchecked.

Would be nice to know what WKWebView does. Is it a wrapper?
Posts: 6
Reputation: 312

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest