Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mobile] [Interactive3d] [LivePreview] widget not working properly #437

Closed
lmslachciak opened this issue Nov 15, 2019 · 7 comments
Closed
Labels
bug Something isn't working code.tizen.org in review Development done, review before merge

Comments

@lmslachciak
Copy link
Contributor

visit: https://code.tizen.org/demos?path=1.1%2Fexamples%2Fmobile%2FUIComponents%2Fcomponents%2Finteractive%2Finteractive3D%2Findex.html
click LivePreview icon
Observe:
image
Console:

(unknown) Uncaught TypeError: t is not a function
    at Object.eval [as onError] (eval at t.exports (tau.i3d.js:1), <anonymous>:14:74308)
    at XMLHttpRequest.eval (eval at t.exports (tau.i3d.js:1), <anonymous>:2:399832)
eval
eval
load (async)
load
load
load
play
attributeChangedCallback
g.attributeChangedCallback
eval
prototype._build @ tau.js:28446
prototype.build @ tau.js:5653
coreProcessWidget @ tau.js:3251
processWidget @ tau.js:3311
processHollowWidget @ tau.js:3428
processBuildQueueItem @ tau.js:3465
createWidgets @ tau.js:3521
prototype.change @ tau.js:14615
routePage.open @ tau.js:53065
resolve @ tau.js:15468
Router._openDeferred @ tau.js:15482
Router.open @ tau.js:15537
Router.register @ tau.js:15877
Router.init @ tau.js:15653
(anonymous) @ tau.js:16318
trigger @ tau.js:1545
build @ tau.js:3585
(anonymous) @ tau.js:1869
(unknown) Uncaught TypeError: t is not a function
    at Object.eval [as onError] (eval at t.exports (tau.i3d.js:1), <anonymous>:14:74308)
    at XMLHttpRequest.eval (eval at t.exports (tau.i3d.js:1), <anonymous>:2:399832
@lmslachciak
Copy link
Contributor Author

I think problem is because wget can not download interactive3d example

@lmslachciak
Copy link
Contributor Author

<div class="ui-content">
	<div class="ui-i3d"
		width="320"
		height="240"
		position="0 0 0"
		scale="50 50 50"
		rotation="0 -90 0"
		light="0xbbbbbb 0x000000 2"
		controls
		autoplay
		src="assets/Duck.gltf">
	</div>
</div>

@lmslachciak
Copy link
Contributor Author

We should check follow-tags option

https://superuser.com/questions/988289/wget-parsing-tag-script

@lmslachciak
Copy link
Contributor Author

lmslachciak commented Nov 20, 2019

we can not use follow-tags option because wget is not recognising div tag with attribute src what is out of specification
we can use
link href=""
in order to reference resource and make wget downloading them, but still for unknown reason i3D widget has issue.
Under investigation

@lmslachciak lmslachciak added the in progress Someone is now working on this issue label Nov 20, 2019
@singa2000
Copy link
Collaborator

/UIComponents/contents/interactive/interactive3D/assets/Duck.gltf
/UIComponents/contents/interactive/interactive3D/assets/Duck0.bin
/UIComponents/contents/interactive/interactive3D/assets/DuckCM.png
files are needed but now it's missing.

lmslachciak added a commit to Samsung/TAU that referenced this issue Nov 21, 2019
[Issue] Samsung/TAU-Design-Editor#437
[Issue] Samsung/TAU-Design-Editor#441
[Problem] Interactive 3D widget not working on code.tizen.org
due to the missing resources
[Solution] Add href attributes so wget can download external resources

Signed-off-by: Lukasz Slachciak <l.slachciak@samsung.com>
lmslachciak added a commit to Samsung/TAU that referenced this issue Nov 21, 2019
[Issue] Samsung/TAU-Design-Editor#437
[Issue] Samsung/TAU-Design-Editor#441
[Problem] Interactive 3D widget not working on code.tizen.org
due to the missing resources
[Solution] Add href attributes so wget can download external resources
[Test]
1. Run WATT
2. Visit links:
http://localhost:3000/demos?path=1.1%2Fexamples%2Fmobile%2FUIComponents%2Fcomponents%2Finteractive%2Finteractive3D%2Findex.html
https://localhost:3000/demos?path=1.1%2Fexamples%2Fwearable%2FUIComponents%2Fcontents%2Finteractive%2Fcoverflow%2Findex.html
3. Make sure that duck is displayed after running live preview.

Signed-off-by: Lukasz Slachciak <l.slachciak@samsung.com>
@lmslachciak
Copy link
Contributor Author

lmslachciak commented Nov 21, 2019

@singa2000 right, this is core issue.
The problem is that wget is not downloading those resources becouse is not recognising div-src. That is why I made a trick in order to force wget downloading them. Check PR.

lmslachciak added a commit to Samsung/TAU that referenced this issue Nov 21, 2019
[Issue] Samsung/TAU-Design-Editor#437
[Issue] Samsung/TAU-Design-Editor#441
[Problem] Interactive 3D widget not working on code.tizen.org
due to the missing resources
[Solution] Add href attributes so wget can download external resources
[Test]
1. Run WATT
2. Visit links:
http://localhost:3000/demos?path=1.1%2Fexamples%2Fmobile%2FUIComponents%2Fcomponents%2Finteractive%2Finteractive3D%2Findex.html
https://localhost:3000/demos?path=1.1%2Fexamples%2Fwearable%2FUIComponents%2Fcontents%2Finteractive%2Fcoverflow%2Findex.html
3. Make sure that duck is displayed after running live preview.

Signed-off-by: Lukasz Slachciak <l.slachciak@samsung.com>
@lmslachciak lmslachciak added in review Development done, review before merge and removed in progress Someone is now working on this issue labels Nov 22, 2019
@lmslachciak
Copy link
Contributor Author

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working code.tizen.org in review Development done, review before merge
Projects
None yet
Development

No branches or pull requests

2 participants