Opened 8 years ago

Closed 8 years ago

#1583 closed defect (fixed)

Tile service doesn't work with JPG

Reported by: zspitzer Owned by:
Priority: high Milestone: 2.2
Component: Tile Service Version: 2.2.0
Severity: blocker Keywords:
Cc: External ID:

Description

Setting the tile format to ImageFormat? = JPG results in failed GetTile? requests.

All other formats work fine, ie PNG, PNG8 & GIF

tested with sheboygan sample

<2011-01-12T12:04:18> 6440 Ajax Viewer 127.0.0.1 Administrator GetTile?.1.2.0:5(Session:ba6ac3d0-1de7-11e0-8000-005056c00001_en_7F0000010AFC0AFB0AFA//75102f60-7499-4e3d-9812-4043689d48c6.MapDefinition,Base Layer Group,-2,1,6) Failure

Attachments (1)

1583.patch (851 bytes) - added by jng 8 years ago.
Patch to fix broken JPG tile rendering

Download all attachments as: .zip

Change History (4)

comment:1 Changed 8 years ago by jng

Error.log is spammed with this entry for each failed GetTile? request

<2011-01-28T16:57:03> 2204 Ajax Viewer ::1 Administrator

Error: Problem:\nThe application encountered a problem and could not finish the operation you just requested properly.\n\nSolution:\nIf it\'s the first time you met this problem, try again or restart the application / session; otherwise, describe the steps to reproduce this problem to the server administrator for suggestions. StackTrace?:

comment:2 Changed 8 years ago by jng

This is the output I get when attaching Visual Studio to mgserver.exe (release-mode built from 2.2 branch) when requesting these tiles:

First-chance exception at 0x00ce1955 (gd.dll) in mgserver.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d23f0dc..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d23f244..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d23f3c4..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d23f560..
First-chance exception at 0x00ce1955 (gd.dll) in mgserver.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d33f0dc..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d33f244..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d33f3c4..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d33f560..
First-chance exception at 0x00ce1955 (gd.dll) in mgserver.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0c93f0dc..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0c93f244..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0c93f3c4..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0c93f560..
First-chance exception at 0x00ce1955 (gd.dll) in mgserver.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0c53f0dc..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0c53f244..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0c53f3c4..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0c53f560..
First-chance exception at 0x00ce1955 (gd.dll) in mgserver.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d23f0dc..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d23f244..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d23f3c4..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d23f560..
First-chance exception at 0x00ce1955 (gd.dll) in mgserver.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d93f0dc..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d93f244..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d93f3c4..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d93f560..
First-chance exception at 0x00ce1955 (gd.dll) in mgserver.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d53f0dc..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d53f244..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d53f3c4..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d53f560..
First-chance exception at 0x00ce1955 (gd.dll) in mgserver.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d63f0dc..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d63f244..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d63f3c4..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d63f560..
First-chance exception at 0x00ce1955 (gd.dll) in mgserver.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d73f0dc..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d73f244..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d73f3c4..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d73f560..
First-chance exception at 0x00ce1955 (gd.dll) in mgserver.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d33f0dc..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d33f244..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d33f3c4..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d33f560..
First-chance exception at 0x00ce1955 (gd.dll) in mgserver.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d73f0dc..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d73f244..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d73f3c4..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d73f560..
First-chance exception at 0x00ce1955 (gd.dll) in mgserver.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d63f0dc..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d63f244..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d63f3c4..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d63f560..
First-chance exception at 0x00ce1955 (gd.dll) in mgserver.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d23f0dc..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d23f244..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d23f3c4..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d23f560..
First-chance exception at 0x00ce1955 (gd.dll) in mgserver.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d43f0dc..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d43f244..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d43f3c4..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d43f560..
First-chance exception at 0x00ce1955 (gd.dll) in mgserver.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d03f0dc..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d03f244..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d03f3c4..
First-chance exception at 0x00ce1955 (gd.dll) in mgserver.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d83f0dc..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d83f244..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d83f3c4..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d03f560..
First-chance exception at 0x75229617 in mgserver.exe: Microsoft C++ exception: MgUnclassifiedException at memory location 0x0d83f560..

A null pointer derailing the rendering? The interesting thing here is the source (gd.dll), when we're using the AGG renderer! Or maybe GD is used internally elsewhere.

Changed 8 years ago by jng

Attachment: 1583.patch added

Patch to fix broken JPG tile rendering

comment:3 Changed 8 years ago by jng

Resolution: fixed
Status: newclosed

Fixed in r5513

Note: See TracTickets for help on using tickets.