Model Viewer fails to load on some older devices

オープン
#4,986 コメント 9 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
three.js, typescript
領域
frontend, web-dev

調査の方向性

this.threeRenderer.xr.enabled = true がエラーを引き起こす ARRenderer コードの箇所から始め、関連する issue #4972 と動作を比較します。報告されている Windows 7 Docker セットアップなど、影響を受ける古いデバイスまたはローエンドデバイスで再現し、model viewer が threeRenderer エラーなしで読み込まれることを確認します。

索引モデルが issue の本文から書いたものです。

説明

When trying to load model viewer on some old or low end devices (tried an old laptop with intel graphics, a colleague also reported the same behaviour on their 2014 mac, among others) the ARRenderer class fails with an error:

Uncaught TypeError: this.threeRenderer is undefined

Which seems to come from line:

this.threeRenderer.xr.enabled = true;



Could be related to #4972 as the error looks similar. Nothing displays on the page at all after it fails, and the machines I tested seem able to run threeJS just fine otherwise. I managed to reproduce the error on my setup by using a small win7 container using the dockurr/windows Docker image.

主要言語
TypeScript
スター
8.4k
フォーク
964
平均マージ
5日 11時間
マージ済み PR(30日)
8

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

google/model-viewer のほかの issue

google/model-viewer の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。