Bug 269163 - Try to open a multipages tif, just crash
Summary: Try to open a multipages tif, just crash
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.12.1
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-22 18:39 UTC by Bruno Friedmann
Modified: 2012-05-14 11:31 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Friedmann 2011-03-22 18:39:48 UTC
Application: okular (0.12.1)
KDE Platform Version: 4.6.1 (4.6.1)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-4-desktop x86_64
Distribution: "openSUSE 11.5 Milestone 0 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed: clicking on multipage tif lead to that crash.

Ok the picture is just crazy it's a 35000x24000 pixels. opened in gimp it used 2.6GB ram.

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
[Current thread is 1 (Thread 0x7ffc6e56a760 (LWP 30464))]

Thread 2 (Thread 0x7ffc58af5700 (LWP 30469)):
[KCrash Handler]
#6  0x00007ffc606a5b3e in put1bitbwtile (img=<optimized out>, cp=0x0, x=<optimized out>, y=<optimized out>, w=35000, h=0, fromskew=0, toskew=0, pp=0xd07b31 "") at tif_getimage.c:1181
#7  0x00007ffc606aae50 in gtStripContig (img=0x7ffc58af4860, raster=0x0, w=35000, h=24000) at tif_getimage.c:840
#8  0x00007ffc606acff1 in TIFFReadRGBAImageOriented (tif=0xcbd050, rwidth=35000, rheight=24000, raster=0x0, orientation=1, stop=<optimized out>) at tif_getimage.c:480
#9  0x00007ffc58afc0db in TIFFGenerator::image (this=0xcd3b70, request=0xcccbc0) at /usr/src/debug/kdegraphics-4.6.1/okular/generators/tiff/generator_tiff.cpp:277
#10 0x00007ffc5dcaa4d8 in Okular::PixmapGenerationThread::run (this=0xcbd7e0) at /usr/src/debug/kdegraphics-4.6.1/okular/core/generator_p.cpp:64
#11 0x00007ffc6c13e095 in QThreadPrivate::start (arg=0xcbd7e0) at thread/qthread_unix.cpp:320
#12 0x00007ffc6980aa3f in start_thread (arg=0x7ffc58af5700) at pthread_create.c:297
#13 0x00007ffc6b8a967d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#14 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ffc6e56a760 (LWP 30464)):
#0  0x00007ffc6b8a0503 in __poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007ffc65014c2a in _xcb_conn_wait (c=0x661130, cond=<optimized out>, vector=0x7fff69346c78, count=0x7fff69346c74) at xcb_conn.c:313
#2  0x00007ffc650151a3 in _xcb_out_send (c=0x661130, vector=0x7fff69346d00, count=3) at xcb_out.c:338
#3  0x00007ffc65015234 in xcb_writev (c=0x661130, vector=<optimized out>, count=<optimized out>, requests=3) at xcb_out.c:286
#4  0x00007ffc6a579cc6 in _XSend (dpy=0x65d120, data=<optimized out>, size=<optimized out>) at xcb_io.c:436
#5  0x00007ffc6a57a207 in _XReply (dpy=0x65d120, rep=0x7fff69346de0, extra=0, discard=1) at xcb_io.c:520
#6  0x00007ffc6a56f6c0 in XQueryPointer (dpy=0x65d120, w=634, root=0x7fff69346e90, child=0x7fff69346e88, root_x=0x7fff69346eac, root_y=0x7fff69346ea8, win_x=0x7fff69346ea4, win_y=0x7fff69346ea0, mask=0x7fff69346e9c) at QuPntr.c:48
#7  0x00007ffc6cc4da3d in QCursor::pos () at kernel/qcursor_x11.cpp:159
#8  0x00007ffc5dfdf237 in PageView::notifyViewportChanged (this=0xa4ad60, smoothMove=false) at /usr/src/debug/kdegraphics-4.6.1/okular/ui/pageview.cpp:939
#9  0x00007ffc5dc935e3 in Okular::Document::setViewport (this=0x92a860, viewport=..., excludeId=-1, smoothMove=false) at /usr/src/debug/kdegraphics-4.6.1/okular/core/document.cpp:2478
#10 0x00007ffc5dc9feea in Okular::Document::openDocument (this=0x92a860, docFile=<optimized out>, url=<optimized out>, _mime=<optimized out>) at /usr/src/debug/kdegraphics-4.6.1/okular/core/document.cpp:1679
#11 0x00007ffc5df908fa in Okular::Part::openFile (this=0x7e3480) at /usr/src/debug/kdegraphics-4.6.1/okular/part.cpp:955
#12 0x00007ffc6e192810 in KParts::ReadOnlyPartPrivate::openLocalFile (this=0x826f70) at /usr/src/debug/kdelibs-4.6.1/kparts/part.cpp:592
#13 0x00007ffc6e192e66 in KParts::ReadOnlyPart::openUrl (this=<optimized out>, url=...) at /usr/src/debug/kdelibs-4.6.1/kparts/part.cpp:556
#14 0x00007ffc5df89480 in Okular::Part::openUrl (this=0x7e3480, _url=<optimized out>) at /usr/src/debug/kdegraphics-4.6.1/okular/part.cpp:1076
#15 0x00000000004094ca in Shell::openUrl (this=0x828a20, url=...) at /usr/src/debug/kdegraphics-4.6.1/okular/shell/shell.cpp:133
#16 0x000000000040b07c in Shell::qt_metacall (this=0x828a20, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x9e2710) at /usr/src/debug/kdegraphics-4.6.1/build/okular/shell/shell.moc:94
#17 0x00007ffc6c23b37a in QObject::event (this=0x828a20, e=<optimized out>) at kernel/qobject.cpp:1217
#18 0x00007ffc6cc1760d in QWidget::event (this=0x828a20, event=0xa2f280) at kernel/qwidget.cpp:8718
#19 0x00007ffc6cfd663b in QMainWindow::event (this=0x828a20, event=0xa2f280) at widgets/qmainwindow.cpp:1480
#20 0x00007ffc6d8d1b33 in KXmlGuiWindow::event (this=0x828a20, ev=0xa2f280) at /usr/src/debug/kdelibs-4.6.1/kdeui/xmlgui/kxmlguiwindow.cpp:126
#21 0x00007ffc6cbc6144 in QApplicationPrivate::notify_helper (this=0x6335f0, receiver=0x828a20, e=0xa2f280) at kernel/qapplication.cpp:4462
#22 0x00007ffc6cbce6fa in QApplication::notify (this=<optimized out>, receiver=0x828a20, e=0xa2f280) at kernel/qapplication.cpp:4341
#23 0x00007ffc6d828d46 in KApplication::notify (this=0x7fff69348c80, receiver=0x828a20, event=0xa2f280) at /usr/src/debug/kdelibs-4.6.1/kdeui/kernel/kapplication.cpp:311
#24 0x00007ffc6c22747c in QCoreApplication::notifyInternal (this=0x7fff69348c80, receiver=0x828a20, event=0xa2f280) at kernel/qcoreapplication.cpp:731
#25 0x00007ffc6c22ac75 in sendEvent (event=0xa2f280, receiver=0x828a20) at kernel/qcoreapplication.h:215
#26 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x614110) at kernel/qcoreapplication.cpp:1372
#27 0x00007ffc6c252093 in sendPostedEvents () at kernel/qcoreapplication.h:220
#28 postEventSourceDispatch (s=0x6361d0) at kernel/qeventdispatcher_glib.cpp:277
#29 0x00007ffc68407bd3 in g_main_dispatch (context=0x6360e0) at gmain.c:2440
#30 g_main_context_dispatch (context=0x6360e0) at gmain.c:3013
#31 0x00007ffc684083b0 in g_main_context_iterate (context=0x6360e0, block=1, dispatch=1, self=<optimized out>) at gmain.c:3091
#32 0x00007ffc68408650 in g_main_context_iteration (context=0x6360e0, may_block=1) at gmain.c:3154
#33 0x00007ffc6c25222f in QEventDispatcherGlib::processEvents (this=0x61a240, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#34 0x00007ffc6cc6bbae in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#35 0x00007ffc6c2268d2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#36 0x00007ffc6c226ae5 in QEventLoop::exec (this=0x7fff69348bd0, flags=...) at kernel/qeventloop.cpp:201
#37 0x00007ffc6c22af2b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#38 0x0000000000408909 in main (argc=6, argv=0x7fff69349368) at /usr/src/debug/kdegraphics-4.6.1/okular/shell/main.cpp:85

Reported using DrKonqi
Comment 1 Bruno Friedmann 2011-03-23 07:24:17 UTC
Just to add a note, gwenview open it in seconds (10 or 12) and can easily zoom in/out. 
Memory used stay low, processing time to.

Unfortunately, I can't share the tif with you ( customer data with restricted rights ) but here's the gdalinfo output

gdalinfo 11064.tif

Driver: GTiff/GeoTIFF
Files: 11064.tif
       11064.tfw
Size is 35000, 24000
Coordinate System is `'
Origin = (593750.000000000000000,236000.000000000000000)
Pixel Size = (0.250000000000000,-0.250000000000000)
Metadata:
  TIFFTAG_SOFTWARE=AutoCAD Raster Design 2008
  TIFFTAG_XRESOLUTION=0.039999999
  TIFFTAG_YRESOLUTION=0.039999999
  TIFFTAG_RESOLUTIONUNIT=3 (pixels/cm)
Image Structure Metadata:
  COMPRESSION=PACKBITS
  INTERLEAVE=BAND
  MINISWHITE=YES
Corner Coordinates:
Upper Left  (  593750.000,  236000.000) 
Lower Left  (  593750.000,  230000.000) 
Upper Right (  602500.000,  236000.000) 
Lower Right (  602500.000,  230000.000) 
Center      (  598125.000,  233000.000) 
Band 1 Block=35000x1 Type=Byte, ColorInterp=Palette
  Overviews: 154x105
  Image Structure Metadata:
    NBITS=1
  Color Table (RGB with 2 entries)
    0: 255,255,255,255
    1: 0,0,0,255
Comment 2 Albert Astals Cid 2011-07-10 20:40:27 UTC
Just to state theobvious, without the file we're problably never going to work on this
Comment 3 Bruno Friedmann 2011-07-11 18:49:13 UTC
Due to limit of bugzilla here (only 1MB) 
http://dl.dropbox.com/u/13333867/kde/11262p.zip

Tif + tfw associated file.
Work quick and properly under genview
crash okular
take too much time (I've killed krita after 4minutes) with krita.
Works in gimp
Comment 4 Bruno Friedmann 2012-05-14 11:31:44 UTC
Tested and work with okular in kde 4.8.3