Kitware / visualizer

The ParaViewWeb Visualizer application which can be used standalone or as a component within another web context.
https://kitware.github.io/visualizer/
BSD 3-Clause "New" or "Revised" License
115 stars 28 forks source link

Visualizer crashes when using JS file webpacked from the master directory #17

Closed CordyChen closed 7 years ago

CordyChen commented 7 years ago

Visualizer crashes when using JS file webpacked from the master directory, but it works well when using the given file Visualizer.js. I didn't make any change in the directory but just webpacked a new one to test the output file of webpack. The window on the server is crashing like this: default And even the file size is different between the webpacked one and the given one (webpack output file is larger)

jourdain commented 7 years ago

Which version of ParaView are you using 5.2, 5.3, master?

How did you build the visualizer bundle?

npm run build or npm run build:release

Do you have any server log that could explain the reason of the crash?

CordyChen commented 7 years ago

Well I use ParaView 5.2 and I built the bundle by npm run build:release. And oddly I didn't find any error log about it...

jourdain commented 7 years ago

Yes, that is weird you that you are not getting roughly the same file size...

I mean, Visualizer/master is not going to work with PV-5.2 because of that

Since you are on Windows, I wondering if we have some invalid rules for webpack which could lead to that. Specially related to the path separator.

CordyChen commented 7 years ago

Uhha, I download the latest version of ParaView and deploy it again, and use npm run build Now it works well... Maybe it is because of some reasons about Windows platform... Anyway, thanks a lot!

jourdain commented 7 years ago

Glad you got it working, not sure what was the issue. ;-)