Closed kalwalt closed 4 years ago
I can not reproduce that error now i get a bit different one while resizing the Timeline:
window.orientation undefined screen.orientation [object ScreenOrientation]
arcontroller.compone…js?version=0.64:197 Uncaught ReferenceError: canvas is not defined
at arcontroller.compone…js?version=0.64:197
at Object.trigger (litegui.js:110)
at Area.sendResizeEvent (litegui.js:3063)
at Area.onResize (litegui.js:3043)
at Area.sendResizeEvent (litegui.js:3053)
at Area.onResize (litegui.js:3043)
at HTMLDocument.inner_mouseup (litegui.js:3287)
This happens if i resize the video or the Timeline ( i think if you resize one you resize also the main window) after running the play button. If you re-play the video start but don't track the Hiro marker, i receive an jquery error instead:
[warning] *** Camera Parameter resized from 640, 480. ***
artoolkit.debug.js:2059 [info] Allocated videoFrameSize 307200
artoolkit.debug.js:2059 [info] Pattern detection mode set to 3.
jquery.min.js:2 Uncaught (in promise) Error: Syntax error, unrecognized expression: @ENC
at Function.se.error (jquery.min.js:2)
at se.tokenize (jquery.min.js:2)
at se.select (jquery.min.js:2)
at Function.se [as find] (jquery.min.js:2)
at k.fn.init.find (jquery.min.js:2)
at new k.fn.init (jquery.min.js:2)
at k (jquery.min.js:2)
at ArControllerComponent.<anonymous> (arcontroller.compone…js?version=0.64:172)
at ARCameraParam.<anonymous> (artoolkit.api.js:1686)
at writeCallback (artoolkit.api.js:1906)
arcontroller.compone…js?version=0.64:116 Register trackable - Pattern
Probably these errors are caused because when you switch from the scene window to the player window a canvas is created inside a <div>
with id=ingametab
and deleted when you come back to the scene window. Probably we can avoid this adding a if check if exist or not the canvas element and so enter or not in the routine:
It is also required modify the check routine inside the resize listener:
for the same reason.
It should be fixed with PR #19
While resizing the Timeline, and maybe other windows, i get this error: