Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Yahoo images not working with Ubuntu's Qt4.4.0 #1203

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 8 comments
Closed

Yahoo images not working with Ubuntu's Qt4.4.0 #1203

openstreetmap-trac opened this issue Jul 23, 2021 · 8 comments

Comments

@openstreetmap-trac
Copy link

Reporter: ColinMarquardt
[Submitted to the original trac issue database at 9.14pm, Wednesday, 24th September 2008]

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?

@openstreetmap-trac
Copy link
Author

Author: koying
[Added to the original trac issue at 1.31pm, Thursday, 25th September 2008]

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.

@openstreetmap-trac
Copy link
Author

Author: ColinMarquardt
[Added to the original trac issue at 5.18pm, Thursday, 25th September 2008]

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 :)

@openstreetmap-trac
Copy link
Author

Author: ColinMarquardt
[Added to the original trac issue at 5.23pm, Thursday, 25th September 2008]

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

@openstreetmap-trac
Copy link
Author

Author: koying
[Added to the original trac issue at 5.25pm, Thursday, 25th September 2008]

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

@openstreetmap-trac
Copy link
Author

Author: ColinMarquardt
[Added to the original trac issue at 9.02pm, Thursday, 25th September 2008]

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).

@openstreetmap-trac
Copy link
Author

Author: koying
[Added to the original trac issue at 11.56am, Monday, 29th September 2008]

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.

@openstreetmap-trac
Copy link
Author

Author: ColinMarquardt
[Added to the original trac issue at 6.47pm, Monday, 29th September 2008]

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.

@openstreetmap-trac
Copy link
Author

Author: ColinMarquardt
[Added to the original trac issue at 1.31am, Wednesday, 19th November 2008]

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant