Bugs item #984037, was opened at 2004-07-02 20:57
Message generated for change (Comment added) made by glutinous
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428680&aid=984037&group_id=40696

Category: Behaviour
Group: CVS
Status: Open
Resolution: None
Priority: 5
Submitted By: Steven Wong (glutinous)
Assigned to: Nobody/Anonymous (nobody)
>Summary: Failed assertion when opening large windows

Initial Comment:
When opening a 2000x2000 JPEG image with Imagemagick's
'display' tool, the following assert fails:

Blackbox::process_event(): MapRequest for 0x800014
BlackboxWindow::BlackboxWindow(): creating 0x800014
ImageMagick: too_high_and_wide.jpg -- assumed:
(-2147483648, 2147483644), real: >(0, -4)
blackbox: Window.cc:1648: void BlackboxWindow::show():
Assertion `client.rect.le>ft() == real_x &&
client.rect.top() == real_y' failed.
blackbox: managing screen 0 using TrueColor visual
0x20, depth 24
./run: line 17: 11451 Aborted                
blackbox/bin/blackbox
Shutting down Xnest server...
X connection to :1.0 broken (explicit kill or server
shutdown).

The command I am using to open the image is:

    display too_wide_and_high.jpg

Blackbox can handle opening 2000x10 and 10x2000 images,
though.

My desktop resolution is 1024x768. So I am guessing the
problem will only occur for windows larger than the
desktop resolution.

Other image viewers, such as 'qiv', work fine, so this
is an Imagemagick-specific problem.

I am running Debian Linux (Testing release), with the
latest Blackbox CVS, and Imagemagick package version
5:5.5.7.9-1.1. This package is based on Imagemagick
v5.5.7.9, as far as I know.

Attached is a log of debug messages from a session
leading up to the bug.

----------------------------------------------------------------------

>Comment By: Steven Wong (glutinous)
Date: 2004-07-03 20:29

Message:
Logged In: YES 
user_id=987462

This happens intermittently with GIMP, too. I start GIMP,
select "File" from the menubar, then the "Open..." menu
item, and then Blackbox crashes with the following:

BlackboxWindow::exposeEvent() for 0x6000f0
Blackbox::process_event(): MapRequest for 0x6001d6
BlackboxWindow::BlackboxWindow(): creating 0x6001d6
Load Image -- assumed: (1, 20), real: (1, 20)
BlackboxWindow::propertyNotifyEvent(): for 0x6001d6
BlackboxWindow::propertyNotifyEvent(): for 0x6001d6
BlackboxWindow::propertyNotifyEvent(): for 0x6001d6
BlackboxWindow::propertyNotifyEvent(): for 0x6001d6
BlackboxWindow::exposeEvent() for 0x6001d6
BlackboxWindow::exposeEvent() for 0x6001d6
BlackboxWindow::exposeEvent() for 0x6001d6
BlackboxWindow::exposeEvent() for 0x6001d6
BlackboxWindow::exposeEvent() for 0x6001d6
BlackboxWindow::propertyNotifyEvent(): for 0x6001d6
blackbox: Window.cc:3438: void
BlackboxWindow::constrain(BlackboxWindow::Corner): Assertion
`dw >= base_width && dh >= base_height' failed.
./run: line 17: 11123 Aborted                
blackbox/bin/blackbox
Shutting down Xnest server...
Gdk-ERROR **: Fatal IO error 104 (Connection reset by peer)
on X server :1.0.

LibGimp-WARNING **: script-fu: wire_read: unexpected EOF

That "... assumed: ... " line is found in the Imagemagick
'display' error log, too. So I looked at Blackbox source,
and it comes from src/Window.cc. Again, if no one looks into
this for a long time, I might force myself into fixing this
one, too. :) But this one seems a bit more difficult.

This bug is easily reproducible when running in a 640x480
Xnest server. Otherwise it is rather random on my real
Xserver. I am running GIMP version 1.2.3.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428680&aid=984037&group_id=40696

-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
List archives:  http://asgardsrealm.net/lurker/splash/index.html
Trouble? Contact [EMAIL PROTECTED]

Reply via email to