You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm using the GeoTIFFTileSource plugin to display several .tiff images in an electron app, building the tiles using Sharp.js and passing them to the viewer:
constupdateScanImage=async(filePath)=>{/* close the viewer */viewer.close();/* Build tiled tiff */consttypedArray=awaitwindow.electron.sharp("build-tiled-tif",filePath);constarrayBuffer=typedArray.buffer.slice(typedArray.byteOffset,typedArray.byteLength+typedArray.byteOffset);/* generate tiffTileSource and open viewer */consttiffTileSources=awaitOpenSeadragon.GeoTIFFTileSource.getAllTileSources(arrayBuffer);viewer.open(tiffTileSources);}
After some issues with loading the images from a local arrayBuffer, I managed to pass the tiled image to OSD and open it with decent performances (~2s to open a ~200MB file).
The issue I'm now facing is that the resources (tiles) loaded are not deallocated even after closing/destroying the viewer and keeps on adding into memory at every pan/zoom/image replacement, eventually leading to renderer going out of memory:
clientWin.webContents.on("render-process-gone",(event,details)=>{console.error("gone",details)// This prints: { reason: 'oom', exitCode: -536870904 }})
I originally opened the issue on the GeoTIFFTileSource repo (pearcetm/GeoTIFFTileSource#9), however I think it may not be strictly related to the library itself, so I'm opening one here as well.
The text was updated successfully, but these errors were encountered:
I believe OSD is generally pretty good about releasing its resources, so my guess is this has something to do with it running in Electron, or the use of Sharp, or something. I think the next step is to try to narrow it down to isolate where the issue is coming from.
Hello,
I'm using the GeoTIFFTileSource plugin to display several .tiff images in an electron app, building the tiles using Sharp.js and passing them to the viewer:
Main Process:
Renderer Process:
After some issues with loading the images from a local arrayBuffer, I managed to pass the tiled image to OSD and open it with decent performances (~2s to open a ~200MB file).
The issue I'm now facing is that the resources (tiles) loaded are not deallocated even after closing/destroying the viewer and keeps on adding into memory at every pan/zoom/image replacement, eventually leading to renderer going out of memory:
I originally opened the issue on the GeoTIFFTileSource repo (pearcetm/GeoTIFFTileSource#9), however I think it may not be strictly related to the library itself, so I'm opening one here as well.
The text was updated successfully, but these errors were encountered: