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

WebGL/WebGL2などのパーフォマンスが出ない時にエラーメッセージ・警告を表示 #389

Open
keichan34 opened this issue Apr 22, 2024 · 0 comments · May be fixed by #390
Assignees
Labels
Priority: High The issue has high priority

Comments

@keichan34
Copy link
Member

keichan34 commented Apr 22, 2024

WebGL2対応がsoftware onlyになっている場合など検知できるかな?

WebGLが無効化されている時に下記のようなエラーが発火されます。再現として、 Firefox で about:config 開き、webgl.disabledtrue に設定します。

Error: {"requestedAttributes":{"alpha":true,"stencil":true,"depth":true,"failIfMajorPerformanceCaveat":false,"preserveDrawingBuffer":false,"antialias":false},"statusMessage":"WebGL is currently disabled.","type":"webglcontextcreationerror","message":"Failed to initialize WebGL"}
    _setupPainter embed:1
    <anonymous> embed:1
    Tt embed:1
    ts Map.tsx:107
    Fl React
    unstable_runWithPriority scheduler.production.min.js:18
    React 3
    D scheduler.production.min.js:16
    onmessage scheduler.production.min.js:12
    6813 scheduler.production.min.js:12
    Webpack 10
react-dom.production.min.js:216:199

解決

地図が正しく表示できないと検知した時、地図レンダリングを取り止めて「この地図が正しく表示されませんでした。開発者の方はこちらを確認ください。」みたいな感じでWebGL等についてのgeolonia.comないにリンクしてあげると親切かなと思います。

@keichan34 keichan34 added the Priority: High The issue has high priority label Apr 23, 2024
@naogify naogify self-assigned this Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High The issue has high priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants