Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#1203 closed defect (invalid)

Yahoo images not working with Ubuntu's Qt4.4.0

Reported by: Colin Marquardt Owned by: Chris Browet
Priority: minor Milestone:
Component: merkaartor Version:
Keywords: Cc:

Description

When I start Merkaartor from SVN trunk, I get

$ merkaartor
getting:  "qrc:/Html/ymap.html?WIDTH=512&HEIGHT=512&BBOX=0.000000,0.000000,180.000000,-85.051129" 
192 ,  223 ,  64 , 351 
-128 ,  128 
0 ,  0 ,  180 , -85.0511 
QNetworkAccess: got HTTP status code 400 which is not expected
QNetworkAccess: got HTTP status code 400 which is not expected
QNetworkAccess: got HTTP status code 400 which is not expected
QPixmap: Invalid pixmap parameters
getting:  "qrc:/Html/ymap.html?WIDTH=512&HEIGHT=512&BBOX=13.710938,51.096623,13.754883,51.069017" 
0 ,  256 ,  0 , 256 
0 ,  0 
13.7109 ,  51.0966 ,  13.7549 , 51.069 
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 55 (X_CreateGC)
  Resource id:  0x0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 55 (X_CreateGC)
  Resource id:  0x0
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 60 (X_FreeGC)
  Resource id:  0x4c0020d
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 60 (X_FreeGC)
  Resource id:  0x4c0020c
QNetworkAccess: got HTTP status code 400 which is not expected
QNetworkAccess: got HTTP status code 400 which is not expected
QNetworkAccess: got HTTP status code 400 which is not expected
QPainter::begin: Cannot paint on a null pixmap
QPainter::renderHints: Painter must be active to set rendering hints
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::end: Painter not active, aborted
QPixmap::scaled: Pixmap is a null pixmap
getting:  "qrc:/Html/ymap.html?WIDTH=512&HEIGHT=512&BBOX=13.666992,51.124213,13.710938,51.096623" 
0 ,  256 ,  0 , 256 
0 ,  0 
13.667 ,  51.1242 ,  13.7109 , 51.0966 
QNetworkAccess: got HTTP status code 400 which is not expected
QNetworkAccess: got HTTP status code 400 which is not expected

[...]

Instead of the Yahoo tiles, I get spaced-out empty grey tiles. I'm using the Qt4.4.0 from Ubuntu's hardy-backports, and have the respective QtWebKit? package installed.

I note the ymap.html file is not getting copied with make install. As this was a problem a few months ago, I have copied one into /usr/local/bin but am not sure if that's the right location. I guess it's finding it though, since I see write(18, "GET /ajaxymap?v=3.8&appid=z7qRk3"..., 302) = 302 in the strace output, which seems to come from ymap.html... or the binary itself, so it's a compiled-in resource, and I don't need the ymap.html anymore?

Change History (8)

comment:1 Changed 11 years ago by Chris Browet

Mmmm... I'd guess this is a network problem on your side.

The ymap.html is now a resource, so it doesn't have to be installed.

Please try to load the file directly (in firefox, b.i.) with something like:

file:///C:/home/cbrowet/src/merkaartor_trunk/ymap.html?WIDTH=512&HEIGHT=512&BBOX=13.666992,51.124213,13.710938,51.096623

and tell me what you see.

comment:2 Changed 11 years ago by Colin Marquardt

I get the proper Yahoo aerial image. It reports coordinates (Size: -1 -1 512 511, and lat/lon). Plus it then moves my Firefox window around and shrinks it :)

comment:3 Changed 11 years ago by Colin Marquardt

Trunk from right now shows the same behavior (but I guess you didn't expect a change anyway).

comment:4 Changed 11 years ago by Chris Browet

Yep, that's what it's supposed to do.

If it still do not work in Merkaartor, you told me earlier that you had 0.11 webkit libs still hanging around. Could check that again?

Also, maybe try from a clean SVN, i.e. without the old webkit directory, if still there

comment:5 Changed 11 years ago by Colin Marquardt

I'm pretty sure I have removed all of the the local webkit libs. ldd doesn't show any libs coming from a place other than /usr/lib/, and the /usr/lib/libQtWebKit.so.4 is correctly symlinked to /usr/lib/libQtWebKit.so.4.4.0 (I even moved the non-symlinked /usr/lib/libQtWebKit.so.4.3* libs away to no avail).

I got the clean checkout yesterday before I was filing this bug, svn st doesn't find any local files, just the three expected svn:externals, and I am also trying the uninstalled merkaartor binary from binaries/debug/bin/merkaartor... no luck.

The only thing that might count as being a bit exceptional is that I'm on a 64-bit distro (amd64).

comment:6 Changed 11 years ago by Chris Browet

I lack inspiration for now...

Could you try to load the url in Arora (http://code.google.com/p/arora/)?

Arora is a browser written in pure Qt 4.4.0 with webkit. If it works there, at least, I will be sure it's merkaartor-related.

comment:7 Changed 11 years ago by Colin Marquardt

Resolution: invalid
Status: newclosed

Interesting. I get

QNetworkAccess: got HTTP status code 400 which is not expected
QNetworkAccess: got HTTP status code 400 which is not expected
QNetworkAccess: got HTTP status code 400 which is not expected

and no image. So I guess that rules out merkaartor as the guilty party then. Well, the next Ubuntu version comes soon and will probably have other Webkit packages. Will report back then, thanks for your help so far.

comment:8 Changed 11 years ago by Colin Marquardt

I can report that it works again nicely after an update to Ubuntu Intrepid amd64.

Note: See TracTickets for help on using tickets.