WARP-LAB / files_3dmodelviewer

3D Model Viewer for Nextcloud
GNU Affero General Public License v3.0
31 stars 6 forks source link

Problem previewing larger files on mobile #9

Closed Otterwerks closed 1 year ago

Otterwerks commented 1 year ago

Describe the bug

Nextcloud webpage crashes when trying to load model files > ~15MB on mobile browsers

To Reproduce

Steps to reproduce the behavior:

  1. Try to preview model files > ~15MB in size on phone or tablet
  2. Loading spinner and message appear normally
  3. Webpage crashes and browser displays a "Something went wrong..." message

Expected behavior

Model preview loads normally, even after some time

I have checked that the files are not corrupted

Models will load the preview normally on desktop, the same models will cause the page to crash on mobile and tablet if they are too large

Screenshots

N/A

Browser log

...(many lines of the same jQuery warning)...

[Warning] $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. (core-main.js, line 2)

[Debug] File info for /My/Directory/Path/3dmodel.stl fetched (viewer-main.js, line 2)

Object

How to access your browser console (Click to expand) ### Chrome 1. Press either CTRL + SHIFT + I / CMD + ALT + I or F12 to open the Developer Tools. 2. Click the “console” tab. ### Safari 1. Press CMD + ALT + I to open the Web Inspector. 2. See Chrome’s step 2. (Chrome and Safari have pretty much identical dev tools.) ### IE 1. Press F12 to open the developer tools. 2. Click the “console” tab. ### Firefox 1. Press CTRL + SHIFT + K to open the Web console (COMMAND + SHIFT + K on Macs). 2. or, if Firebug is installed (recommended): 1. Press F12 to open Firebug. 2. Click on the “console” tab. ### Opera 1. Press CTRL + SHIFT + I to open Dragonfly. 2. Click on the “console” tab.

Installation and configuration

How the app was installed?

App server configuration Parameters

Versions

Nextcloud

Desktop

Handheld

Additional context

Tested with model file sizes 8-50MB

On the mobile Apple devices, the loading spinner would display for a few seconds before reloading the page with an open sidebar and loading spinner, then the page would crash after several more seconds.

The Fileinfo object logged in the browser console always appears to be initially empty and will populate with properties at some point before the model renders in preview, on the mobile devices I'm not seeing the object populate with any data before the page crashes.

I was unable to reproduce the issue on desktop when changing the browser agent or in responsive mode to imitate a mobile device.

Otterwerks commented 1 year ago

I was able to test and reproduce the problem on desktop with a low spec PC and received an out of memory error in the browser.

Closing the issue as this appears to be a hardware limitation.