← Back to team overview

touch-packages team mailing list archive

[Bug 1403906] Re: Crash using gallery with new qtubuntu-camera and thumbnailer

 

Backtrace:
#0  __libc_do_syscall () at ../ports/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:44
44	../ports/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S: No such file or directory.
(gdb) bt full
#0  __libc_do_syscall () at ../ports/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:44
No locals.
#1  0xb58d1e5e in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
        _a1 = 0
        _a3tmp = 6
        _a1tmp = 0
        _a3 = 6
        _nametmp = 268
        _a2tmp = 4924
        _a2 = 4924
        _name = 268
        _sys_result = <optimized out>
        pd = 0xac085370
        pid = 0
        selftid = 4924
#2  0xb58d2b4e in __GI_abort () at abort.c:89
        save_stage = 2
        act = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction = 0x0}, sa_mask = {__val = {3069791548, 3046740840, 1130327653, 4294967295, 0, 3046601780, 4294967295, 4294967295, 3045793976, 2, 4, 2886220744, 2886228016, 0, 0, 3046727680, 3046630632, 0, 3046727680, 
              1, 2906575152, 101, 2886223720, 3046065667, 3046730064, 0, 3046601816, 2808782848, 4294967295, 3046730064, 2906575220, 3046601816}}, sa_flags = -1388392144, sa_restorer = 0x65}
        sigs = {__val = {32, 0 <repeats 31 times>}}
#3  0xb58cd0c4 in __assert_fail_base (fmt=0x1 <error: Cannot access memory at address 0x1>, assertion=0xad3ed174 "ifilename[0] == '/'", assertion@entry=0x0, file=0xad3ed130 "/build/buildd/thumbnailer-1.3+15.04.20141202/src/imagescaler.cpp", file@entry=0xac085370 "\001", 
    line=101, line@entry=3046731948, 
    function=function@entry=0xad3ed088 <ImageScaler::scale(std::string const&, std::string const&, ThumbnailSize, std::string const&, std::string const&) const::__PRETTY_FUNCTION__> "bool ImageScaler::scale(const string&, const string&, ThumbnailSize, const string&, const string&) const") at assert.c:92
        str = 0xcd20a0 "\001"
        total = 4096
#4  0xb58cd15a in __GI___assert_fail (assertion=0x0, file=0xac085370 "\001", line=3046731948, 
    function=0xad3ed088 <ImageScaler::scale(std::string const&, std::string const&, ThumbnailSize, std::string const&, std::string const&) const::__PRETTY_FUNCTION__> "bool ImageScaler::scale(const string&, const string&, ThumbnailSize, const string&, const string&) const") at assert.c:101
No locals.
#5  0xad3e625e in ImageScaler::scale (this=this@entry=0xa0eb88, ifilename=<error reading variable: Cannot access memory at address 0x65>, ofilename="/home/phablet/.cache/com.ubuntu.gallery/thumbnails/large/f4beee1bd41fc89bcd9ebc83e6140e11.png", 
    wanted=wanted@entry=TN_SIZE_LARGE, original_location="/home/phablet/Pictures/com.ubuntu.camera/image20150106_164049006.jpg", rotation_source_file="/home/phablet/Pictures/com.ubuntu.camera/image20150106_164049006.jpg")
    at /build/buildd/thumbnailer-1.3+15.04.20141202/src/imagescaler.cpp:101
        rnd = {{_M_file = 0xcd2920, _M_mt = {static word_size = <optimized out>, static state_size = 624, static shift_size = <optimized out>, static mask_bits = <optimized out>, static xor_mask = <optimized out>, static tempering_u = <optimized out>, 
              static tempering_d = <optimized out>, static tempering_s = <optimized out>, static tempering_b = <optimized out>, static tempering_t = <optimized out>, static tempering_c = <optimized out>, static tempering_l = <optimized out>, 
              static initialization_multiplier = <optimized out>, static default_seed = <optimized out>, _M_x = {13445408, 0 <repeats 175 times>, 3046103113, 2886223232, 2906575262, 0, 2886221880, 10, 2886228016, 3045981173, 0, 0, 2886223176, 0, 0, 3045986462, 
                3045986462, 3045986462, 3046585240, 0, 0, 0, 0, 0, 0, 0, 3337084892, 0 <repeats 13 times>, 4294967286, 32, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 4294967295, 117, 2886223580, 0, 0, 0, 0, 0, 2886222112, 2, 0, 0, 2886222108, 2906575260, 3046727680, 0, 
                2906575262, 2886223576, 3045779248, 2886222176, 0, 226653476, 3069657291, 0, 3045798664, 3045784552, 3069791632, 3069792256, 2886222320, 3069715940, 3069794492, 3069709484, 3069791632, 0, 0, 3045784552, 3045780228, 2886222248, 0, 4245278497, 3069657291, 
                2906289696, 3045802584, 3045784552, 3069791632, 3069792256, 2886222392, 3069715940, 3069794492, 3069709484, 3069791632, 0, 0, 5, 1127, 2906718088, 3069763584, 2906294303, 3045819880, 2906289968, 1, 2906370936, 2906717640, 2906717200, 2906294303, 
                2886222360, 4245278497, 2886222508, 2886222392, 2886222400, 3069657833, 2886222400, 3069794996, 0, 2906718088, 5, 0, 1, 2906717200, 194, 122, 120, 124, 0, 2906717640, 2886226800, 2906717200, 4294967295, 3046728936, 3045802584, 3069763584, 96232, 52857, 
                2906370936, 2886222592, 96232, 0, 13201152, 3046726652, 13201152, 2, 13201152, 2906718088, 2886226800, 2906288128, 241784, 0, 3046727680, 1, 1, 3046101553, 2906718088, 0, 0, 0, 3046101121, 13201152, 0, 13199720, 2333504, 2886223716, 10543544, 11618160, 
                2886223720, 3046066155, 13201152, 0, 2886222580, 13201152, 13199720, 2906334371, 0, 0, 0, 467859555, 2118295483, 975191752, 1861061135, 1639533914, 1877699486, 2863388558...}, _M_p = 13449956}}}
        __PRETTY_FUNCTION__ = "bool ImageScaler::scale(const string&, const string&, ThumbnailSize, const string&, const string&) const"
        err = 0x0
        ofilename_tmp = <error reading variable: Cannot access memory at address 0xfffffff4>
        orig = {u = 0x0}
        w = <optimized out>
        save_ok = <optimized out>
        rotation_info = <error reading variable: Cannot access memory at address 0x69756223>
        src = {u = 0x0}
        h = <optimized out>
        neww = <optimized out>
        newh = <optimized out>
        dst = {u = 0x0}
#6  0xad3ebc54 in ThumbnailerPrivate::create_thumbnail (this=0xa0e1b8, abspath="/home/phablet/Pictures/com.ubuntu.camera/image20150106_164049006.jpg", desired_size=desired_size@entry=TN_SIZE_LARGE, policy=policy@entry=TN_LOCAL)
    at /build/buildd/thumbnailer-1.3+15.04.20141202/src/thumbnailer.cpp:195
        tnfile = "/home/phablet/.cache/com.ubuntu.gallery/thumbnails/large/f4beee1bd41fc89bcd9ebc83e6140e11.png"
        succeeded = <optimized out>
        embedded_image = "\021"
        file = std::unique_ptr<_GFile> containing 0xb14770
        info = std::unique_ptr<_GFileInfo> containing 0xae101bc8
        content_type = "image/jpeg"
#7  0xad3ebe6a in Thumbnailer::get_thumbnail (this=0xa11790, filename=..., desired_size=TN_SIZE_LARGE, policy=policy@entry=TN_LOCAL) at /build/buildd/thumbnailer-1.3+15.04.20141202/src/thumbnailer.cpp:229
        abspath = "/home/phablet/Pictures/com.ubuntu.camera/image20150106_164049006.jpg"
        estimate = ""
        generated = <error reading variable: Cannot access memory at address 0xfffffff9>
---Type <return> to continue, or q <return> to quit---
#8  0xad3ec00e in Thumbnailer::get_thumbnail (this=<optimized out>, filename=..., desired_size=<optimized out>) at /build/buildd/thumbnailer-1.3+15.04.20141202/src/thumbnailer.cpp:237
No locals.
#9  0xad51bd82 in ThumbnailGenerator::requestImage(QString const&, QSize*, QSize const&) () from /usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Thumbnailer.0.1/libthumbnailer-qml.so
No symbol table info available.
#10 0xb63b7214 in ?? () from /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5
No symbol table info available.
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

-- 
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/1403906

Title:
  Crash using gallery with new qtubuntu-camera and thumbnailer

Status in the base for Ubuntu mobile products:
  Confirmed
Status in thumbnailer package in Ubuntu:
  New
Status in qtubuntu-camera package in Ubuntu RTM:
  Invalid
Status in thumbnailer package in Ubuntu RTM:
  Confirmed

Bug description:
  Test Case:
  0. Make sure you have a clean install and you never started gallery app
  1. Take a few photos with the camera and close it
  2. open gallery

  Actual  Result:
  It crashes.

  Expected Result:
  It doesn't crash.

  Downgrading to the following packages fixes the problem:
  qtubuntu-camera    0.3.3+14.10.20141001-0ubuntu1 
  thumbnailer        1.3+14.10.20141020-0ubuntu1 

  PS: you don't really need a clean install just delete gallery' QML
  cache in ~/.cache/QML/Apps

  Analysis of what landed:
  < Mirv> jibel: ok. the diff was this interesting http://launchpadlibrarian.net/191646180/thumbnailer_1.3%2B14.10.20141020-0ubuntu1_1.3%2B15.04.20141106~rtm-0ubuntu1.diff.gz together with qtubuntu-camera from rsalveti / jhodapp / satoris
  < Mirv> the qtubuntu-camera was huge: http://launchpadlibrarian.net/192809040/qtubuntu-camera_0.3.3%2B14.10.20141001-0ubuntu1_0.3.3%2B15.04.20141208.is.0.3.3%2B15.04.20141204~rtm-0ubuntu1.diff.gz (publishing history seems to confirm it's correct: https://launchpad.net/ubuntu-rtm/+source/qtubuntu-camera/+publishinghistory )
  < Mirv> I've updated the bug #1376500 which the landing fixed, which was also not updated to indicate it would have been fixed in the first place
  < Mirv> the trello comment on that landing does not seem to indicate the "silo-diff" (from brendand) was used to actually check the rtm diff, as it only mentions the silo fixing two bugs
  < Mirv> jibel: crash was also mentioned in the trello: https://trello.com/c/zpBMvnsD/443-ubuntu-rtm-landing-012-qtubuntu-camera-thumbnailer-jhodapp-satoris

  Reproduced on :
  current build number: 183
  device name: krillin
  channel: ubuntu-touch/ubuntu-rtm/14.09-proposed
  last update: 2014-12-18 13:29:15
  version version: 183
  version ubuntu: 20141217.2
  version device: 20141209-cae2b5f
  version custom: 20141216-484-22-169

  com.ubuntu.gallery 2.9.1.1113
  thumbnailer 1.3+15.04.20141106~rtm-0ubuntu1
  qtubuntu-camera 0.3.3+15.04.20141208.is.0.3.3+15.04.20141204~rtm-0ubuntu1

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1403906/+subscriptions