Acceleration -> Text crash

Bugs will be moved here once resolved.

Post » Mon Feb 10, 2014 7:18 pm

Link to .capx file (required! If link is blocked remove the http and www parts):
https://www.dropbox.com/s/clj12pivwl7w40o/Acceleration%20to%20Text%20Bug.capx

Steps to reproduce:
1. Just try to run the example. Crash is immediate.

Observed result:
Crash, some java jargon is displayed.

Expected result:
Display of the touch Y acceleration.

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

Operating system & service pack:
Win7 SP1
Construct 2 version:
R160.2   
B
11
S
4
G
1
Posts: 159
Reputation: 1,803

Post » Mon Feb 10, 2014 7:23 pm

Just tried setting a global variable to Touch.AccelerationY, crashes that way to, has nothing to do with Text object. In the debugger, I also noticed that the acceleration values for the touch object are not displayed in the watch window. Bug? Related? Doing something wrong?Yttermayn2014-02-10 19:25:31
B
11
S
4
G
1
Posts: 159
Reputation: 1,803

Post » Tue Feb 11, 2014 2:36 am

Tried running the layout and doing the preview over wifi on my android phone in the chrome browser - It shows a number instead of crashing java. The number sits still for a while. Once it started jumping around randomly, but touching and dragging didn't seem to affect the value. Im a bit baffled. I suspect the crash is related to the fact that my PC doesn't have a touch input, since it sort of works on my phone's browser.
B
11
S
4
G
1
Posts: 159
Reputation: 1,803

Post » Tue Feb 11, 2014 12:41 pm

Huh, that's odd - desktop Chrome fires a devicemotion event with null values. It's strange devicemotion would fire at all for a desktop computer. I've added a workaround for the next build, thanks for the catch.
Scirra Founder
B
399
S
236
G
89
Posts: 24,530
Reputation: 195,402


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests