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

Out of memory in Media Viewer #161

Closed
kefir- opened this issue Mar 8, 2013 · 4 comments
Closed

Out of memory in Media Viewer #161

kefir- opened this issue Mar 8, 2013 · 4 comments
Labels

Comments

@kefir-
Copy link
Contributor

kefir- commented Mar 8, 2013

This seems related to the issues noted in #154. I've added an E01 image of a 16GB memory stick I had floating around, and on that stick were about 150 pictures from a digital camera. Browsing the content of the memory stick with autopsy, it works for a little while, but then the pictures suddenly stop showing and I only get a black screen.

Looking at Autopsy's messages.log I see this when I try to view a picture:

JNA: Callback org.gstreamer.elements.BaseSink$2@19b713d threw the following exception:
java.lang.OutOfMemoryError: Java heap space
JNA: Callback org.gstreamer.elements.BaseSink$1@5a3a8a threw the following exception:
java.lang.OutOfMemoryError: Java heap space
WARNING [org.netbeans.modules.progress.spi.InternalHandle]: Cannot switch to silent mode when not running at org.netbeans.core.ui.warmup.MenuWarmUpTask$NbWindowsAdapter$1HandleBridge.run(MenuWarmUpTask.java:269)
@kefir-
Copy link
Contributor Author

kefir- commented Mar 8, 2013

I closed Autopsy after ingest was done, restarted, and after that I could view 7 or 8 images before they started failing again. Here's the output in messages.log when they failed:

JNA: Callback org.gstreamer.elements.BaseSink$2@1c11027 threw the following exception:
java.lang.OutOfMemoryError: Java heap space
        at java.awt.image.DataBufferInt.<init>(Unknown Source)
        at java.awt.image.Raster.createPackedRaster(Unknown Source)
        at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
        at java.awt.image.BufferedImage.<init>(Unknown Source)
        at org.gstreamer.swing.VideoComponent.getBufferedImage(VideoComponent.java:535)
        at org.gstreamer.swing.VideoComponent.access$1900(VideoComponent.java:66)
        at org.gstreamer.swing.VideoComponent$RGBListener.rgbFrame(VideoComponent.java:555)
        at org.gstreamer.elements.RGBDataSink$VideoHandoffListener.doHandoff(RGBDataSink.java:164)
        at org.gstreamer.elements.RGBDataSink$VideoHandoffListener.prerollHandoff(RGBDataSink.java:143)
        at org.gstreamer.elements.BaseSink$2.callback(BaseSink.java:175)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback(CallbackReference.java:444)
        at com.sun.jna.CallbackReference$DefaultCallbackProxy.callback(CallbackReference.java:474)
JNA: Callback org.gstreamer.elements.BaseSink$1@ed097d threw the following exception:
java.lang.OutOfMemoryError: Java heap space
        at java.awt.image.DataBufferInt.<init>(Unknown Source)
        at java.awt.image.Raster.createPackedRaster(Unknown Source)
        at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
        at java.awt.image.BufferedImage.<init>(Unknown Source)
        at org.gstreamer.swing.VideoComponent.getBufferedImage(VideoComponent.java:535)
        at org.gstreamer.swing.VideoComponent.access$1900(VideoComponent.java:66)
        at org.gstreamer.swing.VideoComponent$RGBListener.rgbFrame(VideoComponent.java:555)
        at org.gstreamer.elements.RGBDataSink$VideoHandoffListener.doHandoff(RGBDataSink.java:164)
        at org.gstreamer.elements.RGBDataSink$VideoHandoffListener.handoff(RGBDataSink.java:139)
        at org.gstreamer.elements.BaseSink$1.callback(BaseSink.java:137)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback(CallbackReference.java:444)
        at com.sun.jna.CallbackReference$DefaultCallbackProxy.callback(CallbackReference.java:474)

@adam-m
Copy link
Contributor

adam-m commented Mar 11, 2013

We should retest this with next release which fixes some memory leaks

@adam-m
Copy link
Contributor

adam-m commented Mar 15, 2013

Note: this is MediaViewer / gstreamer issue, resulting in heap issue only (not native) when trying to render an image.

@adam-m
Copy link
Contributor

adam-m commented Mar 19, 2013

Improved image loading in MediaView and Thumbnail View. It is faster and handles large images better.
It may fail for really huge images (NASA - like), but with better error handling.

@adam-m adam-m closed this as completed Mar 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants