Skip to content

Broken if no Internet Connection Available #768

@MrNickArcher

Description

@MrNickArcher

Does not work without internet connection; gets stuck in loading screen. (using through pyvista, in a VS Code notebook) I belive the issue is with trame and not pyvista itself?

A clear and concise description of what the bug is. Before submitting, please remove unnecessary sections.

To Reproduce

Steps to reproduce the behavior:

  1. disable internet connection
  2. try to plot mesh in pyvista

Code

# disable internet, restart VS Code, create blank .ipynb
import pyvista as pv
pv.Icosahedron().plot()

developer console output:

index-5844b947.js:23 error: Uncaught TypeError: Cannot read properties of null (reading '0')
Fs.console.error @ index-5844b947.js:23
(anonymous) @ index-5844b947.js:23
setTimeout
i @ trame-vtk.js:1
Promise.then
t0 @ vue.global.js:5
updateViewState @ trame-vtk.js:3564
await in updateViewState
(anonymous) @ trame-vtk.js:3564
(anonymous) @ vue.global.js:5
tq @ vue.global.js:5
tW @ vue.global.js:5
t.__weh.t.__weh @ vue.global.js:5
t4 @ vue.global.js:5
ec @ vue.global.js:5
mount @ vue.global.js:5
t.mount @ vue.global.js:5
Fs @ index-5844b947.js:23
await in Fs
(anonymous) @ index-5844b947.js:23
trame-vtk.js:1 Uncaught TypeError: Cannot read properties of null (reading '0')
    at Ge (trame-vtk.js:1:9731)
    at t.setCameraShaderParameters (trame-vtk.js:189:8250)
    at Q5.t.updateShaders (trame-vtk.js:7:15366)
    at Q5.t.drawArrays (trame-vtk.js:7:14002)
    at t.renderPieceDraw (trame-vtk.js:189:11585)
    at t.renderPiece (trame-vtk.js:189:12388)
    at t.render (trame-vtk.js:178:3470)
    at t.opaquePass (trame-vtk.js:178:3204)
    at t.apply (trame-vtk.js:1:62141)
    at t.traverse (trame-vtk.js:1:62005)

Image

Expected behavior

I don't think generally a python plotting package should be loading external resources please package all resources. I don't know what it is trying to load? The only thing i can see is that it depends on google fonts which are not available, but i don't see how that is causing the JavaScript error?

Platform:

Device:

  • Desktop

OS:

  • Windows

Browsers Affected:

  • VS Code Python Notebook (i.e. Windows Webview2)
  • Chrome
  • Firefox
  • Microsoft Edge
  • Safari
  • Opera
  • Brave
  • IE 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions