<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>157105</bug_id>
          
          <creation_ts>2008-02-01 22:54:59 +0000</creation_ts>
          <short_desc>Plasma crashes on &quot;configure desktop&quot;</short_desc>
          <delta_ts>2008-02-03 01:20:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>plasma4</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>156944</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Oliver Putz">Regnaron</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>577240</commentid>
    <comment_count>0</comment_count>
    <who name="Oliver Putz">Regnaron</who>
    <bug_when>2008-02-01 22:55:00 +0000</bug_when>
    <thetext>Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc version 4.1.2 20070214 
OS:                Linux

Whenever I do a right click on the desktop and select &quot;configure desktop&quot;, plasma crashes with the following backtrace:

Application: Plasma Workspace (plasma), signal SIGFPE
Using host libthread_db library &quot;/lib/libthread_db.so.1&quot;.
[Thread debugging using libthread_db enabled]
[New Thread 0xb62856e0 (LWP 5720)]
[New Thread 0xb3819b90 (LWP 7029)]
[New Thread 0xb401ab90 (LWP 6642)]
[New Thread 0xb4b2ab90 (LWP 5722)]
[KCrash handler]
#6  0xb4d699c3 in RenderThread::run (this=0x83ede8c)
    at /var/tmp/portage/kde-base/kdebase-9999.4/work/kdebase-9999.4/workspace/plasma/containments/desktop/renderthread.cpp:153
#7  0xb73225de in QThreadPrivate::start (arg=0x83ede8c)
    at thread/qthread_unix.cpp:179
#8  0xb72d618b in start_thread (arg=0xb3819b90) at pthread_create.c:296
#9  0xb65c335e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb62856e0 (LWP 5720)):
#0  0xb63d304a in *__GI_clock_gettime (clock_id=1, tp=0xbf848e28)
    at ../sysdeps/unix/clock_gettime.c:101
#1  0xb74144b2 in QTimerInfoList::getTime (this=0x807520c, t=@0x8075230)
    at kernel/qeventdispatcher_unix.cpp:346
#2  0xb7414571 in QTimerInfoList::updateCurrentTime (this=0x807520c)
    at kernel/qeventdispatcher_unix.cpp:290
#3  0xb741601a in QTimerInfoList::timerWait (this=0x807520c, tm=@0xbf848eb0)
    at kernel/qeventdispatcher_unix.cpp:413
#4  0xb74169d8 in QEventDispatcherUNIX::processEvents (this=0x8073de8, 
    flags=@0xbf848fc8) at kernel/qeventdispatcher_unix.cpp:873
#5  0xb6b17cce in QEventDispatcherX11::processEvents (this=0x8073de8, 
    flags=@0xbf848ff4) at kernel/qeventdispatcher_x11.cpp:145
#6  0xb73ec191 in QEventLoop::processEvents (this=0xbf849060, 
    flags=@0xbf849028) at kernel/qeventloop.cpp:140
#7  0xb73ec29a in QEventLoop::exec (this=0xbf849060, flags=@0xbf849068)
    at kernel/qeventloop.cpp:186
#8  0xb73ee626 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:759
#9  0xb6a8d487 in QApplication::exec () at kernel/qapplication.cpp:3053
#10 0xb7f63d54 in kdemain (argc=1, argv=0xbf849264)
    at /var/tmp/portage/kde-base/kdebase-9999.4/work/kdebase-9999.4/workspace/plasma/plasma/main.cpp:54
#11 0x080487e2 in main (argc=1061, argv=0xcb716a)
    at /var/tmp/portage/kde-base/kdebase-9999.4/work/kdebase_build/workspace/plasma/plasma/plasma-qgv_dummy.cpp:3
#12 0xb6517fdc in __libc_start_main (main=0x80487c0 &lt;main&gt;, argc=1, 
    ubp_av=0xbf849264, init=0x8048810 &lt;__libc_csu_init&gt;, 
    fini=0x8048800 &lt;__libc_csu_fini&gt;, rtld_fini=0xb7f7e100 &lt;_dl_fini&gt;, 
    stack_end=0xbf84925c) at libc-start.c:229
#13 0x08048731 in _start ()
0xb63d304a	101	in ../sysdeps/unix/clock_gettime.c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577260</commentid>
    <comment_count>1</comment_count>
      <attachid>23402</attachid>
    <who name="Sebastian Sauer">mail</who>
    <bug_when>2008-02-02 00:13:57 +0000</bug_when>
    <thetext>Created attachment 23402
testcase

Hi Oliver :)

since you are using KDE compiled from sources, may you like to apply the patch
above and run it again and if a fatal-error is displayed in the console,
provide the output?

well, taken the backtrace into account it&apos;s very likely that this (div-by-zero)
is the reason. But I just wanna be sure ;)

Thanks in advance!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577261</commentid>
    <comment_count>2</comment_count>
    <who name="Sebastian Sauer">mail</who>
    <bug_when>2008-02-02 00:21:16 +0000</bug_when>
    <thetext>Oliver: you are using KDE-trunk, right? Or is this 4.0.x? If the last case is true, then forget the patch above :-/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577263</commentid>
    <comment_count>3</comment_count>
    <who name="Oliver Putz">Regnaron</who>
    <bug_when>2008-02-02 00:30:15 +0000</bug_when>
    <thetext>Hi! Yes, I use the SVN trunk, so I&apos;ll give it a try. However, the &quot;compiled from sources&quot; is actually not 100% correct. In fact, I use gentoo ebuilds that fetch the current code from SVN each time I compile them...
But as said: I&apos;ll try to get portage to compile a patched current svn checkout version.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577264</commentid>
    <comment_count>4</comment_count>
    <who name="Oliver Putz">Regnaron</who>
    <bug_when>2008-02-02 00:40:34 +0000</bug_when>
    <thetext>Ok, looks like I patched at the right time and portage is working with the patched renderthread.cpp. So in roughly two hours we should know more :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577266</commentid>
    <comment_count>5</comment_count>
    <who name="Sebastian Sauer">mail</who>
    <bug_when>2008-02-02 00:45:06 +0000</bug_when>
    <thetext>You don&apos;t need to recompile+reinstall all of KDE ;)
just (not sure if it really works that way in gentoo):
cd /var/tmp/portage/kde-base/kdebase-9999.4/work/kdebase-9999.4/workspace/plasma/containments/desktop/ &amp;&amp; apply_patch_there &amp;&amp; make install

So, kde is pretty modular :)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577271</commentid>
    <comment_count>6</comment_count>
    <who name="Oliver Putz">Regnaron</who>
    <bug_when>2008-02-02 02:26:57 +0000</bug_when>
    <thetext>Hi! Okay, after I recompiled kdebase with your patch I have one good and one bad news: The bad one: I cannot give you any crash output. The good one: I cannot reproduce this crash any longer :) [kdebase r769736]

On a sidenote: Thanks for the hint on how to recompile subcomponents, but that seems only possible when you already did compile that program once. The problem however is: I have very little space on this machine, so I need to delete the temp files from compiling kdebase in order to compile kdegraphics :D (and I did not get around to play with cmake myself yet). So if I nonetheless can give you any meaningful information: Just ask.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577275</commentid>
    <comment_count>7</comment_count>
    <who name="Oliver Putz">Regnaron</who>
    <bug_when>2008-02-02 02:52:25 +0000</bug_when>
    <thetext>Hi once more. Even though I cannot reproduce &quot;my&quot; crash here any longer, you might want to have a look at bug #156944 where selecting an invalid wallpaper indeed results in your warning message showing up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577284</commentid>
    <comment_count>8</comment_count>
    <who name="Sebastian Sauer">mail</who>
    <bug_when>2008-02-02 04:21:56 +0000</bug_when>
    <thetext>&gt; The good one: I cannot reproduce this crash any longer

For some (you) it may a good news, for others (me) it&apos;s bad news since it makes reproducing the problem (which may probably not identical to bug #156944 ) rather difficult ;)

Thanks btw for pointing me at the desktop-code. Seems there are dragons in there :-/ Anyway, bug #156944 is fixed now and since we can&apos;t reproduce this one, let&apos;s just assume it&apos;s the same one and mark it as duplicate of the other what in turn means, this bug is solved too (if you run again into it, please just reopen :) Thanks for the feedback!


*** This bug has been marked as a duplicate of 156944 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577288</commentid>
    <comment_count>9</comment_count>
    <who name="Oliver Putz">Regnaron</who>
    <bug_when>2008-02-02 05:37:20 +0000</bug_when>
    <thetext>&gt; which may probably not identical to bug #156944

In fact I am pretty sure that this crash had nothing to do with bug #156944. I &quot;tried out&quot; that bug *after* having written my report here. And before I tried it out, I had a &quot;valid&quot; wallpaper all the time and did not even access the control panel. So whatever made my system crash, I am pretty sure it had other reasons. So I&apos;ll keep this bug on my radar and see if I find a way to re-reproduce it and reopen this bug as soon as that happens.. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577290</commentid>
    <comment_count>10</comment_count>
    <who name="Sebastian Sauer">mail</who>
    <bug_when>2008-02-02 05:47:47 +0000</bug_when>
    <thetext>Well, the functionality that was responsible for the crash of bug #156944 isn&apos;t only used at the configuration-dialog but also to render the wallpaper itself (and the backtrace above does indicate it&apos;s somewhere at the same code, through it may another bug in there).

From looking over the code I also wouldn&apos;t wonder if the bug could be reproduced with very small wallpapers too (e.g. 1x1 pixel). But that&apos;s just a guess.

Anyway. In the hope you didn&apos;t get it wrong; would be cool if it crashes again for you &amp;&amp; thanks for the help :)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577472</commentid>
    <comment_count>11</comment_count>
    <who name="Oliver Putz">Regnaron</who>
    <bug_when>2008-02-03 01:20:24 +0000</bug_when>
    <thetext>Hi, after you mentioned very small wallpapers, I gave it a shot. You can find the result at bug #157133. As you suggested this, maybe you want to have a look. (Yes, it indeed *does* crash with very small wallpapers too!)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>23402</attachid>
            <date>2008-02-02 00:13:57 +0000</date>
            <delta_ts>2008-02-02 00:13:57 +0000</delta_ts>
            <desc>testcase</desc>
            <filename>desktop.patch</filename>
            <type>text/plain</type>
            <size>573</size>
            <attacher name="Sebastian Sauer">mail</attacher>
            
              <data encoding="base64">SW5kZXg6IHJlbmRlcnRocmVhZC5jcHAKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gcmVuZGVydGhyZWFkLmNwcAko
cmV2aXNpb24gNzY5Mjg1KQorKysgcmVuZGVydGhyZWFkLmNwcAkod29ya2luZyBjb3B5KQpAQCAt
MTI4LDYgKzEyOCwxMCBAQAogICAgICAgICB9CiAgICAgICAgIGltZ1NpemUgKj0gcmF0aW87CiAg
ICAgICAgIAorICAgICAgICBpZihpbWdTaXplLndpZHRoKCkgPT0gMCB8fCBpbWdTaXplLmhlaWdo
dCgpID09IDApIHsKKyAgICAgICAgICAgIHFGYXRhbCggUVN0cmluZygiT2gsIG9oLiBXZSBtYXkg
ZWFybiBhIGRpZi1ieS16ZXJvIGhlcmUhIHdpZHRoPSUxIGhlaWdodD0lMiByYXRpbz0lMyIpLmFy
ZyhpbWdTaXplLndpZHRoKCkpLmFyZyhpbWdTaXplLmhlaWdodCgpKS5hcmcocmF0aW8pLnRvTGF0
aW4xKCkgKTsKKyAgICAgICAgfQorCiAgICAgICAgIC8vIHNldCByZW5kZXIgcGFyYW1ldGVycyBh
Y2NvcmRpbmcgdG8gcmVzaXplIG1vZGUKICAgICAgICAgc3dpdGNoIChtZXRob2QpCiAgICAgICAg
IHsK
</data>

          </attachment>
      

    </bug>

</bugzilla>