Pathfinding Bug

Bugs will be moved here once resolved.

Post » Wed Mar 13, 2013 7:37 am

Link to .capx file (required!):
http://dl.dropbox.com/u/62939951/patherror.capx

Steps to reproduce:
1. using a demo pathfinding in construct open layout 1
2. clone object type from obstacle(black) and change the color to red
3. clone object type from sprite(green) and change the color to purple
4. change the sprite(green) pathfinding CellSize 16 and cellBorder 0
5. change the sprite(purple) pathfinding CellSize 14 and cellBorder 0
6. change the sprite(purple&green)obstacle to custom
7. open event sheet 1 add on Start of layout
8. add obstacle(black) to sprite(green) on start of layout
9. add obstacle(red) to sprite(purple) on start of layout
10. add sprite(purple)find path to touch.x & y on any touch start
11. add sprite(purple) move along path on path found
12. duplicate layout 1
13. add event sheet 1 to layout 2
14. add on "N" pressed go to layout 2 on keyboard pressed
15. run in firefox
16. click anywhere and the pathfinding run well
17. click the "N" on the keyboard to go to layout 2
18. touch anywhere on right side around the obstacle and the pathfinding cant get the path but it can get the path when there is no obstacle like in the left side (the white area in left side).


Observed result:
This happens only in firefox and IE but not on chrome.


Expected result:
it's run well on all browser


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

Operating system & service pack:
Windows 8 Pro

Construct 2 version:
Release 121 (32-bit) Checked
    fixious2013-03-13 07:45:05
B
13
S
1
Posts: 46
Reputation: 1,527

Post » Wed Mar 13, 2013 1:07 pm

help me T.T hahahhaa
does anyone get the solution for this?
B
13
S
1
Posts: 46
Reputation: 1,527

Post » Wed Mar 13, 2013 3:31 pm

If it works in IE10 and Chrome it suggests it's a bug in Firefox. It's a difficult issue to debug, I'll see if I can get anywhere with it... if you can make a simpler example that might help too.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,468

Post » Wed Mar 13, 2013 4:51 pm

It's just work in chrome does not work in firefox and IE10.
Ok i will try to make a simpler example tomorrow.
Thank you Ashley.
B
13
S
1
Posts: 46
Reputation: 1,527

Post » Thu Mar 14, 2013 9:53 am

this is the link to the simpler example :
http://dl.dropbox.com/u/62939951/patheror2.capx

go to the green for change layout
just klik to the green area
B
13
S
1
Posts: 46
Reputation: 1,527

Post » Sun Mar 17, 2013 10:57 am

is anyone have solution with this?
B
13
S
1
Posts: 46
Reputation: 1,527

Post » Mon Mar 18, 2013 2:23 pm

Thanks for the simpler repro, but it looks like a fairly complicated issue that may resolve to being an obscure Firefox-specific bug. We get a lot of bug reports; please allow a couple of weeks for an issue like this to be properly investigated.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,468

Post » Mon Mar 18, 2013 4:42 pm

Hi Ashley..
thank you very much..
I'm in the process for fixing this bug too, if I get something I'll tell you in this post..
B
13
S
1
Posts: 46
Reputation: 1,527

Post » Tue Apr 02, 2013 8:08 pm

Hi, still no solution with this bug?..
B
13
S
1
Posts: 46
Reputation: 1,527

Post » Tue Apr 16, 2013 11:23 am

Hi,

I've got the same problem. My game has 20 layots using (by include) the same Event sheet. When I open specific layout in Firefox pathfinding works fine. However, in the next "level" it crashes.

My test shows that sprites are continously calculating path and can't trigger on path found. If you refresh the browser and go directly to the new "level"/layout everything is fine again.

What is interesting, if I change destination to different one, which is not bigger than 100px pathfinding works.

This issue is also "sometimes" present on mobile safari.

Another test shows that if I don't use pathfinding in the "beginning" layout it works fine in the next one, but crashes in the following.

Can it be some memory management problem in Firefox? Please help.

regards
Revin
B
7
S
1
G
1
Posts: 15
Reputation: 1,481

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 5 guests