View Issue Details

IDProjectCategoryView StatusLast Update
0029235RunnerHTML5Public2018-10-30 16:26
ReporterStewart BishopAssigned ToMike Dailly 
PriorityVery HighSeverityA - Crash/HangReproducibility100%
Status ClosedResolutionFixed 
PlatformHTML5OSOS Version
Product Version2.1.3 
Target Version2.2.1Fixed in Version2.2.1 
Summary0029235: HTML5: layer_tilemap_exists() results in "_EE.toLowerCase is not a function" if the layer actually exists
Descriptionlayer_tilemap_exists() results in an error on HTML5, it works given the layer that is being tested against doesn't exist. If it does exist, script doesn't run, and the console outputs "_EE.toLowerCase is not a function" where "_EE" is any obfuscated variable.

E.g., this doesn't work:

var layer_id = layer_get_id("Tiles_1");
var tilemap_id = layer_tilemap_get_id(layer_id);
layer_tilemap_exists(layer_id, tilemap_id);

This also doesn't:

layer_tilemap_exists("Tiles_1", tilemap_id);

However, if there are no tiles painted in the layer "Tiles_1" or the layer with this name does not exist, the bug doesn't happen.
Steps To Reproduce1) Run the sample on HTML5
Tagshtml5, rendering, Runner
1.4 Found In
2.x Runtime Found In2.1.3.189
2.x Runtime Verified In2.2.1.270

Activities

Stewart Bishop

2018-03-28 16:06

Developer  

layer_tilemap_exists bug.yyz (16,392 bytes)

Stewart Bishop

2018-10-29 15:02

Developer   ~0061887

Reopening as sample throws a different error now:

TypeError: _vO.toLowerCase is not a function[Learn More] layer_tilemap_exists bug.js:8544:6
_LM.prototype._uO
http://127.0.0.1:51264/html5game/layer_tilemap_exists bug.js:8544:6
layer_tilemap_exists
http://127.0.0.1:51264/html5game/layer_tilemap_exists bug.js:8871:11
gml_Object_object0_Step_0
http://127.0.0.1:51264/html5game/layer_tilemap_exists bug.js:117:2
_FS1.prototype._l6
http://127.0.0.1:51264/html5game/layer_tilemap_exists bug.js:51724:37
_DK.prototype._l6
http://127.0.0.1:51264/html5game/layer_tilemap_exists bug.js:47766:9
_km2.prototype._l6
http://127.0.0.1:51264/html5game/layer_tilemap_exists bug.js:48683:11
_1U2
http://127.0.0.1:51264/html5game/layer_tilemap_exists bug.js:61074:2
_zT2
http://127.0.0.1:51264/html5game/layer_tilemap_exists bug.js:61484:4
_mT2
http://127.0.0.1:51264/html5game/layer_tilemap_exists bug.js:60700:11

Mike Dailly

2018-10-30 11:23

Developer   ~0061902

01e59202f17dcad56ed318f5bf376a86c96699e7
Fixed missing item - when you passed a tile ID into exists function, rather than a name.