I instrumented thumbnailer to print some text when it is created and called. Then I copied images to the Pictures directory and clicked around. It turns out that ThumbnailGenerator::requestImage is never called. The generated thumbnails do not appear in ~/.cache/thumbnails either (which they should, unless gallery-app is requesting large enough images).
I wrote a thread torture test for thumbnailer and ran it under helgrind for 15 minutes or so and it produced no thread errors. Even more strangely I can't reproduce this any more. Tapping on an image while others are loading works just fine. All of this, combined with bug #1375238, makes me suspect that there is a threading bug/buffer overrun somewhere else in the stack and it just happens to manifest itself as this bug. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to thumbnailer in Ubuntu. https://bugs.launchpad.net/bugs/1368492 Title: crash opening image file Status in “thumbnailer” package in Ubuntu: Confirmed Bug description: krillin image 25 libthumbailer version 1.2+14.10.20140814-0ubuntu1 - take a picture with the camera - open the gallery app - click on the thumbnail of the photo just taken - boom, crash happens Here is the stack trace. Core file and picture used are attached [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1". Core was generated by `./gallery-app'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0xb5b2201c in std::string::assign(std::string const&) () from /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (gdb) bt #0 0xb5b2201c in std::string::assign(std::string const&) () from /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 #1 0xacebe712 in ?? () from /usr/lib/arm-linux-gnueabihf/libthumbnailer.so.0 #2 0xacebec62 in ?? () from /usr/lib/arm-linux-gnueabihf/libthumbnailer.so.0 #3 0xacebff34 in Thumbnailer::get_thumbnail(std::string const&, ThumbnailSize, ThumbnailPolicy) () from /usr/lib/arm-linux-gnueabihf/libthumbnailer.so.0 #4 0xacec00ae in Thumbnailer::get_thumbnail(std::string const&, ThumbnailSize) () from /usr/lib/arm-linux-gnueabihf/libthumbnailer.so.0 #5 0xacf7b70e in ThumbnailGenerator::requestImage(QString const&, QSize*, QSize const&) () from /usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/libUbuntuComponents.so #6 0xb640acfa in ?? () from /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5 Backtrace stopped: previous frame identical to this frame (corrupt stack?) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/thumbnailer/+bug/1368492/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp