Bug 269718 - ksplashx crash in (unusual?) dual monitor setup
Summary: ksplashx crash in (unusual?) dual monitor setup
Status: RESOLVED WORKSFORME
Alias: None
Product: ksplash
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: FreeBSD Ports FreeBSD
: NOR normal
Target Milestone: ---
Assignee: Lubos Lunak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-29 18:59 UTC by Andriy Gapon
Modified: 2023-01-13 05:14 UTC (History)
0 users

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


Attachments
patch that seems to fix the issue for me (435 bytes, patch)
2011-03-29 18:59 UTC, Andriy Gapon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andriy Gapon 2011-03-29 18:59:34 UTC
Created attachment 58440 [details]
patch that seems to fix the issue for me

Version:           unspecified (using KDE 4.6.1) 
OS:                FreeBSD

I have a dual monitor setup where one monitor is positioned above the other.
Resolution of the top monitor is 1680x1050, resolution of the bottom monitor is 1280x998, virtual resolution is 1680 x 2048.


Reproducible: Always

Steps to Reproduce:
Login to KDE with the described monitor setup configured in xorg.conf.

Actual Results:  
No splash screen, ksplashx crashes.

Expected Results:  
Splash screen.

The following gdb session shows details of the crash:

Starting program: /usr/obj/usr/ports/x11/kdebase4-workspace/work/kdebase-workspace-4.6.1/build/ksplash/ksplashx/ksplashx Default

Program received signal SIGBUS, Bus error.
0x000000000041602b in updateSplashImage (img=..., x_pos=0, y_pos=1050) at /usr/obj/usr/ports/x11/kdebase4-workspace/work/kdebase-workspace-4.6.1/ksplash/ksplashx/splash.cpp:833
833                 *d = *s;
(gdb) p d
$1 = (QRgb *) 0xff00080bff000508
(gdb) p s
$2 = (QRgb *) 0x8038df8d0
(gdb) x/s 0xff00080bff000508
0xff00080bff000508:      <Address 0xff00080bff000508 out of bounds>
(gdb) list
828             QRgb* d = (( QRgb* )( splash_image.scanLine( y + y_pos ))) + x_pos;
829             for( int x = 0;
830                  x < img.width();
831                  ++x, ++d, ++s )
832                 {
833                 *d = *s;
834                 }
835             }
836         PixmapData pix = imageToPixmap( img );
837         GC gc = qt_xget_temp_gc( x11Screen(), false );
(gdb) p y
$3 = 998
(gdb) p y_pos
$4 = 1050
(gdb) p x_pos
$5 = 0
(gdb) p x
$6 = 0
(gdb) p splash_image
$7 = {data = 0x802404060}
(gdb) p splash_image.data
$8 = (QImage::QImageData *) 0x802404060
(gdb) p *splash_image.data
$9 = {<QShared> = {count = 1}, w = 1680, h = 2048, d = 32, ncols = 0, nbytes = 13762560, bitordr = 0, ctbl = 0x0, bits = 0x802600000, alpha = false, dpmx = 0, dpmy = 0, offset = {xp = 0, yp = 0}, 
  ctbl_mine = false}
(gdb) p *img.data
$10 = {<QShared> = {count = 1}, w = 1278, h = 1024, d = 32, ncols = 0, nbytes = 5234688, bitordr = 0, ctbl = 0x0, bits = 0x803400000, alpha = false, dpmx = 14173, dpmy = 14173, offset = {xp = 0, 
    yp = 0}, ctbl_mine = false}

It looks like the crash happens when y + y_pos goes beyond splash_image height.
Comment 1 Andriy Gapon 2011-03-29 19:03:52 UTC
Forgot to mention - the top monitor is designated as the primary monitor.
With the patch the progress bar is shown in the middle of it while the background is shown on both monitors.  The splash theme is the default default one.
Comment 2 Andrew Crouthamel 2018-11-05 03:07:13 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Andrew Crouthamel 2018-11-16 05:37:08 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version?

Thank you for helping us make KDE software even better for everyone!
Comment 4 Justin Zobel 2022-12-13 02:53:29 UTC
Thank you for reporting this issue in KDE software. As it was reported on an older version, can we please ask you to see if you cazn reproduce the issue with a more recent software version?  
  
If you can confirm this issue still exists in a recent version, please change the version field and the status to "REPORTED" when replying. Thank you!
Comment 5 Andriy Gapon 2022-12-14 05:40:07 UTC
I haven't been using that kind of vertical monitor arrangement for many years.
I think that the issue can be easily checked, but right now I do not have two monitors near me.
Comment 6 Bug Janitor Service 2022-12-29 05:23:49 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2023-01-13 05:14:45 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!