Ciao Phil, please read below... ------------------------------------------------------- Ing. Simone Giannecchini GeoSolutions S.A.S. Founder - Software Engineer Via Carignoni 51 55041 Camaiore (LU) Italy
phone: +39 0584983027 fax: +39 0584983027 mob: +39 333 8128928 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.linkedin.com/in/simonegiannecchini http://twitter.com/simogeo ------------------------------------------------------- On Fri, Apr 16, 2010 at 3:31 PM, theophil <[email protected]> wrote: > > Hi list, > > I'm having a problem with loading a JPG + world file. When I try to load > such a raster file into my map, my application instantly crashes and I see > an OutOfMemoryError in the log files. It would be better to knoww a little more about what you are doing. > > I've searched a little bit and found a thread on the uDig-devel list where > there was kind of a similar problem, but it didn't provide any solution. I > suspect it must be something with the "decoding" of the file itself (see > stacktrace below). I tried to increase my heap size, use smaller and bigger > jpegs, but nothing seems to work. My world files are also correct (I can > open the files in every GIS viewer without any problem) Long story short, jpeg is a bod format for raster, generally speaking, and java support for it is very bad as well. So combine the to and you the results you are seeing. I personally don't use jpeg but rather convert to geotiff + jpeg, that's the fastest escape route for you. Ciao, Simone. > > Did somebody encounter the same problem? If yes, how did you solve it? > > Thanks a lot, > > Phil > > > # > # An unexpected error has been detected by Java Runtime Environment: > # > # java.lang.OutOfMemoryError: requested 300000000 bytes for jbyte in > C:\BUILD_AREA\jdk6_12\hotspot\src\share\vm\prims\jni.cpp. Out of swap space? > # > # Internal Error (allocation.inline.hpp:42), pid=4896, tid=2672 > # Error: jbyte in C:\BUILD_AREA\jdk6_12\hotspot\src\share\vm\prims\jni.cpp > # > # Java VM: Java HotSpot(TM) Server VM (11.2-b01 mixed mode windows-x86) > # If you would like to submit a bug report, please visit: > # http://java.sun.com/webapps/bugreport/crash.jsp > # > > --------------- T H R E A D --------------- > > Current thread (0x08852c00): JavaThread "AWT-EventQueue-1" [_thread_in_vm, > id=2672, stack(0x09fe0000,0x0a1e0000)] > > Stack: [0x09fe0000,0x0a1e0000] > [error occurred during error reporting (printing stack bounds), id > 0x80000001] > > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) > j com.sun.medialib.codec.jpeg.Decoder.nSetData(Ljava/lang/Object;IJ)V+0 > j > com.sun.medialib.codec.jpeg.Decoder.decode(Lcom/sun/medialib/codec/jiio/mediaLibImage;)Lcom/sun/medialib/codec/jiio/mediaLibImage;+228 > j > com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageReader.decode(Ljava/io/InputStream;)Lcom/sun/medialib/codec/jiio/mediaLibImage;+44 > j com.sun.media.imageioimpl.plugins.clib.CLibImageReader.skipImage()Z+61 > j > com.sun.media.imageioimpl.plugins.clib.CLibImageReader.locateImage(I)I+154 > j > com.sun.media.imageioimpl.plugins.clib.CLibImageReader.getNumImages(Z)I+58 > j org.geotools.gce.image.WorldImageReader.getHRInfo()V+67 > j > org.geotools.gce.image.WorldImageReader.<init>(Ljava/lang/Object;Lorg/geotools/factory/Hints;)V+532 > j > org.geotools.gce.image.WorldImageFormat.getReader(Ljava/lang/Object;Lorg/geotools/factory/Hints;)Lorg/geotools/gce/image/WorldImageReader;+6 > j > org.geotools.gce.image.WorldImageFormat.getReader(Ljava/lang/Object;)Lorg/geotools/gce/image/WorldImageReader;+3 > j > org.geotools.gce.image.WorldImageFormat.getReader(Ljava/lang/Object;)Lorg/geotools/coverage/grid/io/AbstractGridCoverage2DReader;+2 > j at.grid.sepp.core.map.MapManager.updateRasterLayer(Ljava/io/File;)V+28 > j > at.grid.sepp.core.map.MapControlTopComponent.editRasterBtnActionPerformed(Ljava/awt/event/ActionEvent;)V+98 > j > at.grid.sepp.core.map.MapControlTopComponent.access$100(Lat/grid/sepp/core/map/MapControlTopComponent;Ljava/awt/event/ActionEvent;)V+2 > j > at.grid.sepp.core.map.MapControlTopComponent$2.actionPerformed(Ljava/awt/event/ActionEvent;)V+5 > j > javax.swing.AbstractButton.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+84 > j > javax.swing.AbstractButton$Handler.actionPerformed(Ljava/awt/event/ActionEvent;)V+5 > j > javax.swing.DefaultButtonModel.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+35 > j javax.swing.DefaultButtonModel.setPressed(Z)V+117 > j > javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Ljava/awt/event/MouseEvent;)V+35 > j java.awt.Component.processMouseEvent(Ljava/awt/event/MouseEvent;)V+64 > j javax.swing.JComponent.processMouseEvent(Ljava/awt/event/MouseEvent;)V+23 > j java.awt.Component.processEvent(Ljava/awt/AWTEvent;)V+81 > j java.awt.Container.processEvent(Ljava/awt/AWTEvent;)V+18 > j java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V+562 > j java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+42 > j java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2 > j > java.awt.LightweightDispatcher.retargetMouseEvent(Ljava/awt/Component;ILjava/awt/event/MouseEvent;)V+320 > j > java.awt.LightweightDispatcher.processMouseEvent(Ljava/awt/event/MouseEvent;)Z+139 > j java.awt.LightweightDispatcher.dispatchEvent(Ljava/awt/AWTEvent;)Z+50 > j java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+12 > j java.awt.Window.dispatchEventImpl(Ljava/awt/AWTEvent;)V+19 > j java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2 > j java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+46 > j org.netbeans.core.TimableEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+8 > j java.awt.EventDispatchThread.pumpOneEventForFilters(I)Z+204 > j > java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+30 > j > java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11 > j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4 > j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3 > j java.awt.EventDispatchThread.run()V+9 > v ~StubRoutines::call_stub > > -- > View this message in context: > http://n2.nabble.com/Image-world-file-leads-to-OutOfMemoryError-tp4913001p4913001.html > Sent from the geotools-gt2-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
