Forum

first character control + speaker on = fast preview crashed

26 January 2018 21:37
Good evening,

can anyone explain me why when I use the speaker on the fast preview (first character control) crashed when I start to move with keyboard except I use/ move the mouse at first?

thanks !
29 January 2018 12:25
Hello! And welcome to our forum!

Could you show the log from the web browser console?
Alexander (Blend4Web Team)
twitter
29 January 2018 20:37
Hello Alexander,

The problem come from the audio setting and the physic from the character



Browser console :


TypeError: Argument 1 of AudioListener.setPosition is not a finite floating-point value. b4w_app_bundle.js:38658:5
Connection to localhost:6687 lost b4w_app_bundle.js:94909
TypeError: Argument 1 of AudioListener.setPosition is not a finite floating-point value. b4w_app_bundle.js:38658:5
GET
http://localhost:6687/apps_dev/viewer/viewer.html
[HTTP/1.1 200 OK 143 ms]
TypeError: Argument 1 of AudioListener.setPosition is not a finite floating-point value. b4w_app_bundle.js:38658:5
B4W LOG: UNLOAD ALL b4w_app_bundle.js:177
URI invalide. Le chargement de la ressource média a échoué. viewer.html
GET
http://localhost:6687/scripts/app_builder/templates/app_builder_ws.js
[HTTP/1.1 200 OK 2 ms]
GET
http://localhost:6687/apps_dev/viewer/jquery.mobile-1.4.5.min.css
[HTTP/1.1 200 OK 3 ms]
GET
http://localhost:6687/apps_dev/viewer/colorpicker.css
[HTTP/1.1 200 OK 4 ms]
GET
http://localhost:6687/apps_dev/viewer/viewer.css
[HTTP/1.1 200 OK 6 ms]
GET
http://localhost:6687/apps_dev/viewer/jquery-2.2.0.min.js
[HTTP/1.1 200 OK 4 ms]
GET
http://localhost:6687/apps_dev/viewer/jquery.mobile-1.4.5.js
[HTTP/1.1 200 OK 3 ms]
GET
http://localhost:6687/apps_dev/viewer/colorpicker.js
[HTTP/1.1 200 OK 4 ms]
GET
http://localhost:6687/tmp/viewer/b4w_app_bundle.js
[HTTP/1.1 200 OK 151 ms]
GET
http://localhost:6687/app_builder/
[HTTP/1.1 101 Switching Protocols 4 ms]
GET
http://localhost:6687/apps_dev/viewer/images/favicon.png
[HTTP/1.1 200 OK 3 ms]
GET
http://localhost:6687/apps_dev/viewer/images/backgr_checker.png
[HTTP/1.1 200 OK 2 ms]
GET
http://localhost:6687/apps_dev/viewer/images/ajax-loader.gif
[HTTP/1.1 200 OK 2 ms]
GET
http://localhost:6687/apps_dev/viewer/images/lights_container.png
[HTTP/1.1 200 OK 2 ms]
GET
http://localhost:6687/apps_dev/viewer/images/lights.png
[HTTP/1.1 200 OK 1 ms]
B4W LOG: INIT ENGINE 18.01 DEBUG (29.01.2018 18:32:21) b4w_app_bundle.js:177
B4W LOG: USER AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:57.0) Gecko/20100101 Firefox/57.0 b4w_app_bundle.js:177
B4W LOG: INIT WEBGL 2 b4w_app_bundle.js:177
B4W LOG: GET EXTENSION WEBGL_debug_renderer_info b4w_app_bundle.js:177
B4W LOG: RENDERER INFO: NVIDIA Corporation, NVIDIA GeForce GT 650M OpenGL Engine b4w_app_bundle.js:177
B4W WARN: Firefox and WebGL 2 detected, applying framebuffer hack. b4w_app_bundle.js:243
B4W WARN: Firefox detected, disabling multisample b4w_app_bundle.js:243
B4W LOG: GET EXTENSION (WebGL 2) ANGLE_instanced_arrays b4w_app_bundle.js:177
B4W LOG: GET EXTENSION (WebGL 2) OES_vertex_array_object b4w_app_bundle.js:177
B4W LOG: GET EXTENSION (WebGL 2) WEBGL_depth_texture b4w_app_bundle.js:177
B4W WARN: OS X detected, applying shadows hack b4w_app_bundle.js:243
B4W WARN: Firefox detected, disabling workers b4w_app_bundle.js:243
B4W LOG: GET EXTENSION WEBGL_compressed_texture_s3tc b4w_app_bundle.js:177
B4W LOG: GET EXTENSION EXT_texture_filter_anisotropic b4w_app_bundle.js:177
B4W LOG: GET EXTENSION (WebGL 2) EXT_shader_texture_lod b4w_app_bundle.js:177
B4W LOG: GET EXTENSION (WebGL 2) OES_texture_float b4w_app_bundle.js:177
B4W LOG: GET EXTENSION (WebGL 2) OES_texture_half_float b4w_app_bundle.js:177
B4W LOG: GET EXTENSION (WebGL 2) OES_texture_float_linear b4w_app_bundle.js:177
B4W LOG: GET EXTENSION (WebGL 2) EXT_color_buffer_float b4w_app_bundle.js:177
B4W LOG: SET PRECISION: highp b4w_app_bundle.js:177
GET
XHR
http://localhost:6687/tmp/preview/preview.json
[HTTP/1.1 200 OK 2 ms]
GET
http://localhost:6687/viewer
[HTTP/1.1 101 Switching Protocols 2 ms]
B4W LOG: LOAD METADATA ../../tmp/preview/preview.json?v=29012018183221 b4w_app_bundle.js:177
"B4W EXPORT WARNING: Object:"Timmanche.003" > Material:"pinceau". Material tangent shading is enabled, but object's mesh has no UV map. See more details in https://www.blend4web.com/doc/en/addon.html#other-messages" b4w_app_bundle.js:264
"B4W EXPORT WARNING: Object:"Timmanche.1" > Material:"pinceau". Material tangent shading is enabled, but object's mesh has no UV map. See more details in https://www.blend4web.com/doc/en/addon.html#other-messages" b4w_app_bundle.js:264
"B4W EXPORT WARNING: Object:"Timmanchebou" > Material:"bague". Material tangent shading is enabled, but object's mesh has no UV map. See more details in https://www.blend4web.com/doc/en/addon.html#other-messages" b4w_app_bundle.js:264
"B4W EXPORT WARNING: Object:"Timmanchebou.002" > Material:"bague". Material tangent shading is enabled, but object's mesh has no UV map. See more details in https://www.blend4web.com/doc/en/addon.html#other-messages" b4w_app_bundle.js:264
"B4W EXPORT WARNING: Object:"Timmanchebou.003" > Material:"bague". Material tangent shading is enabled, but object's mesh has no UV map. See more details in https://www.blend4web.com/doc/en/addon.html#other-messages" b4w_app_bundle.js:264
"B4W EXPORT WARNING: Object:"Timmanchebou.1" > Material:"bague". Material tangent shading is enabled, but object's mesh has no UV map. See more details in https://www.blend4web.com/doc/en/addon.html#other-messages" b4w_app_bundle.js:264
GET
XHR
http://localhost:6687/tmp/preview/preview.bin
[HTTP/1.1 200 OK 370 ms]
Id already exists ext-menus.js:406
Error: An unexpected error occurred undefined
B4W LOG: LOAD BINARY ../../tmp/preview/preview.bin?v=29012018183221 b4w_app_bundle.js:177
POST
XHR
https://client-s.gateway.messenger.live.com/v1/users/ME/endpoints/SELF/subscriptions/0/poll

B4W WARN: non-uniform scale for object ecran b4w_app_bundle.js:243
B4W WARN: non-uniform scale for object gouttes b4w_app_bundle.js:243
B4W LOG: LOAD PHYSICS Using Same Thread, Max FPS: 60 b4w_app_bundle.js:177
B4W LOG: PHYSICS PATH /dist/uranium/uranium_wasm.js?v=29012018183222 b4w_app_bundle.js:177
GET
http://localhost:6687/dist/uranium/uranium_wasm.js
[HTTP/1.1 200 OK 2 ms]
B4W LOG: INIT WEBAUDIO: 44100Hz b4w_app_bundle.js:177
GET
XHR
http://localhost:6687/dist/uranium/uranium_wasm.wasm
[HTTP/1.1 200 OK 3 ms]
POST
XHR
https://client-s.gateway.messenger.live.com/v1/users/ME/endpoints/SELF/subscriptions/0/poll
[HTTP/1.1 200 OK 39410 ms]
B4W LOG: GET EXTENSION (WebGL 2) OES_standard_derivatives b4w_app_bundle.js:177
B4W LOG: GET EXTENSION (WebGL 2) OES_element_index_uint b4w_app_bundle.js:177
GET
http://localhost:6687/tmp/preview/cdf95ade674bbe7d259a37345e97ea57.jpg
[HTTP/1.1 200 OK 181 ms]
B4W LOG: PHYSICS READY b4w_app_bundle.js:177
GET
http://localhost:6687/tmp/preview/da1191239910b78755869209248f1c24.jpg
[HTTP/1.1 200 OK 1 ms]
GET
http://localhost:6687/tmp/preview/3b0df5075630c5afd45c6ca40184712a.jpg
[HTTP/1.1 200 OK 1 ms]
GET
http://localhost:6687/tmp/preview/070b45a622c564c82ee816923293e5e8.jpg
[HTTP/1.1 200 OK 1 ms]
GET
http://localhost:6687/tmp/preview/2a91319c1851550188d0e30254047196.jpg
[HTTP/1.1 200 OK 2 ms]
GET
http://localhost:6687/tmp/preview/ef087c7ec666d3571deb1fa670f034b9.png
[HTTP/1.1 200 OK 116 ms]
GET
http://localhost:6687/tmp/preview/ec09f7106592d85d9f68391049ad8297.jpg
[HTTP/1.1 200 OK 7 ms]
GET
http://localhost:6687/tmp/preview/cfe091bf2596a25232e7ab9fce3da6c5.jpg
[HTTP/1.1 200 OK 119 ms]
GET
http://localhost:6687/tmp/preview/8e3abcc462b079209d29ca6e0f892416.jpeg
[HTTP/1.1 200 OK 7 ms]
B4W LOG: LOAD IMAGE 1080x1080 ../../tmp/preview/da1191239910b78755869209248f1c24.jpg?v=29012018183224 b4w_app_bundle.js:177
GET
http://localhost:6687/tmp/preview/b97220b4dca2bbb5e8ed7bd4818c616a.jpg
[HTTP/1.1 200 OK 2 ms]
GET
http://localhost:6687/tmp/preview/a6721f551fdfd613a5042cf2630f9a32.jpg
[HTTP/1.1 200 OK 2 ms]
GET
http://localhost:6687/tmp/preview/763ab8e2c60433b3173b0dd1a29405d3.jpg
[HTTP/1.1 200 OK 5 ms]
GET
http://localhost:6687/tmp/preview/bfe50008452c705108f4d15e0fe6171e.jpg
[HTTP/1.1 200 OK 4 ms]
GET
http://localhost:6687/tmp/preview/c9c200c762d34833fcba25e459d81bc0.png
[HTTP/1.1 200 OK 1 ms]
GET
http://localhost:6687/projects/delachambre/assets/salon-sous-le-pont.webm
[HTTP/1.1 200 OK 166 ms]
B4W LOG: LOAD IMAGE 906x1208 ../../tmp/preview/3b0df5075630c5afd45c6ca40184712a.jpg?v=29012018183224 b4w_app_bundle.js:177
B4W LOG: LOAD IMAGE 719x958 ../../tmp/preview/070b45a622c564c82ee816923293e5e8.jpg?v=29012018183224 b4w_app_bundle.js:177
B4W LOG: LOAD IMAGE 1024x768 ../../tmp/preview/2a91319c1851550188d0e30254047196.jpg?v=29012018183224 b4w_app_bundle.js:177
B4W LOG: LOAD IMAGE 806x444 ../../tmp/preview/ec09f7106592d85d9f68391049ad8297.jpg?v=29012018183224 b4w_app_bundle.js:177
Id already exists ext-menus.js:406
GET
http://localhost:6687/tmp/preview/1086636df1aeaf0d40b9c812a7fc0274.png
[HTTP/1.1 200 OK 3 ms]
B4W LOG: LOAD IMAGE 2480x3506 ../../tmp/preview/8e3abcc462b079209d29ca6e0f892416.jpeg?v=29012018183224 b4w_app_bundle.js:177
Id already exists ext-menus.js:406
Error: An unexpected error occurred undefined
B4W LOG: LOAD IMAGE 643x844 ../../tmp/preview/ef087c7ec666d3571deb1fa670f034b9.png?v=29012018183224 b4w_app_bundle.js:177
B4W LOG: LOAD IMAGE 1608x1066 ../../tmp/preview/cfe091bf2596a25232e7ab9fce3da6c5.jpg?v=29012018183224 b4w_app_bundle.js:177
Id already exists ext-menus.js:406
Error: An unexpected error occurred undefined
B4W LOG: LOAD IMAGE 3072x3072 ../../tmp/preview/cdf95ade674bbe7d259a37345e97ea57.jpg?v=29012018183224 b4w_app_bundle.js:177
Id already exists ext-menus.js:406
B4W LOG: LOAD IMAGE 512x512 ../../tmp/preview/b97220b4dca2bbb5e8ed7bd4818c616a.jpg?v=29012018183224 b4w_app_bundle.js:177
Id already exists ext-menus.js:406
Error: An unexpected error occurred undefined
B4W LOG: LOAD IMAGE 512x512 ../../tmp/preview/a6721f551fdfd613a5042cf2630f9a32.jpg?v=29012018183224 b4w_app_bundle.js:177
B4W LOG: LOAD IMAGE 512x512 ../../tmp/preview/763ab8e2c60433b3173b0dd1a29405d3.jpg?v=29012018183224 b4w_app_bundle.js:177
Error: An unexpected error occurred undefined
B4W LOG: LOAD IMAGE 1280x853 ../../tmp/preview/bfe50008452c705108f4d15e0fe6171e.jpg?v=29012018183224 b4w_app_bundle.js:177
B4W LOG: LOAD IMAGE 297x298 ../../tmp/preview/c9c200c762d34833fcba25e459d81bc0.png?v=29012018183224 b4w_app_bundle.js:177
B4W LOG: LOAD IMAGE 512x512 ../../tmp/preview/1086636df1aeaf0d40b9c812a7fc0274.png?v=29012018183224 b4w_app_bundle.js:177
B4W LOG: LOAD VIDEO 1920x1090 ../../projects/delachambre/assets/salon-sous-le-pont.webm?v=29012018183224 b4w_app_bundle.js:177
B4W LOG: LOADED ALL IMAGES b4w_app_bundle.js:177
B4W WARN: NLA: Strip is out of scene range: Speaker [198:208] b4w_app_bundle.js:243
GET
XHR
http://localhost:6687/tmp/preview/72e78b354f1f26104edea8591c60afd5.ogg
[HTTP/1.1 200 OK 10 ms]
Id already exists ext-menus.js:406
Error: An unexpected error occurred undefined
B4W LOG: LOAD SOUND ../../tmp/preview/72e78b354f1f26104edea8591c60afd5.ogg?v=29012018183226 b4w_app_bundle.js:177
B4W LOG: LOADED ALL SOUNDS b4w_app_bundle.js:177
B4W LOG: THREAD 0: LOADED CALLBACK b4w_app_bundle.js:177
Error: WebGL warning: drawElementsInstanced: This operation requires zeroing texture data. This is slow. b4w_app_bundle.js:37313:13
B4W LOG: START NLA b4w_app_bundle.js:177
TypeError: Argument 1 of AudioListener.setPosition is not a finite floating-point value. b4w_app_bundle.js:38658:5
GET
XHR
https://5-edge-chat.facebook.com/pull

TypeError: Argument 1 of AudioListener.setPosition is not a finite floating-point value. b4w_app_bundle.js:38658:5
POST
XHR
https://www.facebook.com/ajax/bz
[HTTP/2.0 200 OK 145 ms]
TypeError: Argument 1 of AudioListener.setPosition is not a finite floating-point value. b4w_app_bundle.js:38658:5
30 January 2018 10:52
Thank you for the report!
This is definitely a bug. We will investigate it.
Alexander (Blend4Web Team)
twitter
30 January 2018 17:39
Could you apply the following patch and check whether the crash still exists?
diff –git a/src/intern/camera.js b/src/intern/camera.js
index 0d34606..a9a27f8 100644
— a/src/intern/camera.js
+++ b/src/intern/camera.js
@@ -814,6 +814,8 @@ function get_camera_angles_from_quat(quat, vertical_axis, dest) {
var z_world_cam = m_util.quat_to_dir(quat, m_util.AXIS_Z, _vec3_tmp3);
var my_world_cam = m_util.quat_to_dir(quat, m_util.AXIS_MY, _vec3_tmp4);

+ m_vec3.normalize(z_world_cam, z_world_cam);
+ m_vec3.normalize(my_world_cam, my_world_cam);

// base angles
var base_theta = -Math.asin(m_vec3.dot(z_world_cam, vertical_axis));
Alexander (Blend4Web Team)
twitter
30 January 2018 22:35
Where schould I apply the patch?


I'm really sorry I'm not the best with programmation.
Thanks for your help !!!
31 January 2018 11:35
1) The patch should be applied to the src/intern/camera.js
2) Find the function get_camera_angles_from_quat
3) Insert two lines tagged with "+" between
var my_world_cam = m_util.quat_to_dir(quat, m_util.AXIS_MY, _vec3_tmp4);

and
// base angles

but do not copy these two "+"

Or use more correct way: patch or git apply commands
Alexander (Blend4Web Team)
twitter
01 February 2018 20:58
thank you very much !!!!!!
They are no problem any more, it's working perfectly !
04 February 2018 23:15
Hello Alexander, if I export the project with Project Manager, the problem come back again . Do you have any idee ?
05 February 2018 11:15
I suppose you should rebuild the engine.
On MacOS or Linux open your terminal in the blend4web directory:
make compile_b4w
Alexander (Blend4Web Team)
twitter
 
Please register or log in to leave a reply.