question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug webVR webXR nwjs

See original GitHub issue

NWJS Version :

"{
	"node": "13.3.0",
	"v8": "7.9.317.31",
	"uv": "1.33.1",
	"zlib": "1.2.11",
	"brotli": "1.0.7",
	"ares": "1.15.0",
	"modules": "79",
	"nghttp2": "1.40.0",
	"napi": "5",
	"llhttp": "2.0.1",
	"openssl": "1.1.1d",
	"icu": "64.2",
	"unicode": "12.1",
	"nw": "0.43.0",
	"node-webkit": "0.43.0",
	"nw-commit-id": "a09cec1-c5d1d9e-da90f9f-6fd41d2",
	"nw-flavor": "sdk",
	"chromium": "79.0.3945.79"
}"

Expected behavior

We should see the app inside the VR headset or the WMR screen.

Actual behavior

Nothing happen, no error log … connextion seem work, but get a infinite loading. (nothing display)

Note: if you try without nwjs in a browser [vivaldi,chrome,firefox,edge], it work fine. (see:video)

How to reproduce

Fork https://github.com/immersive-web/webxr-samples Download nwjs SDK and add to repo as subfolder. Package.json

{
    "name": "helloworld",
    "main": "360-photos.html",
    "chromium-args": "--disable-raf-throttling --limit-fps=120 --remote-debugging-port=9222 --ignore-gpu-blacklist --force-gpu-mem-available-mb=14000 --enable-gpu-rasterization ",
    "js-flags": "--expose_gc --enable-webvr --webxr --enable-gamepad-extensions --enable-gamepad-vibration"
    
}

lauch.json (optional vscode)

    "configurations": [
        {
            "type": "nwjs",
            "request": "launch",
            "name": "Launch NWjs",
            "nwjsVersion": "any",
            "runtimeExecutable": "${workspaceRoot}\\SDK\\nw.exe",
            "port": 9222,
            "webRoot": "${workspaceFolder}",
            "reloadAfterAttached": true
        }
    ]

than click launch nwjs. (optional vscode) image


I made a little video to show the issue. You can see the app show nothing, but if i run from webbrowser it work fine. https://youtu.be/JtJhQI_fTwM


maybe more related Link ??

is this can maybe related ? can you confirm we can map vr with nwjs APP ? If yes , can we add this as feature requests ? https://github.com/nwjs/nw.js/issues/4259 Or any help to fix this issue ? thank you so much and keep good job.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
arpucommented, Feb 4, 2020

webxr webvr only works on https secure maybe this could be the problem

0reactions
djmisterjoncommented, Feb 4, 2020

Any way to make nwjs run in secure local space ? maybe a flag ? "chromium-args": "--force-secure-content", I search but cant find.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug webVR webXR desktop app nwjs SDK · Issue #940 - GitHub
We should see the app inside the VR headset or the WMR screen. Actual behavior. Nothin appen, no error log .... just a...
Read more >
nwjs webvr webxr test api - YouTube
199 views 2 years ago. 199 views • Dec 11, 2019. nwjs webvr webxr test api in vscode debug … Show more. Show...
Read more >
NW.js v0.69.1 Released with Node.js v18.10.0
It supports New CSS Features, WebCodecs and WebXR Improvements and ... Thanks to the testers for their valuable feedback and bug reports.
Read more >
The status of JavaScript outside of the browser: 2018 & beyond.
I'm not authorized to publish the number of NW.js downloads, ... Seeing the evolving path flows from the WebVR API to WebXR Device...
Read more >
NW.js v0.43.5 Released with Node.js 13.6.0 - Google Groups
to nw.js ... It supports WebXR Device API for Web Virtual Reality, ... Thanks to the testers for their valuable feedback and bug...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found