UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Bug report #2166 CMod_LoadRouting: Assertion `minY <= maxY&#039; failed
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Bug report
  • Category
    Battlescape
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    1. Very low
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (1)
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
Issue details
  • Resolution
    Not determined
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Complexity
    Not determined
  • Platform
    Not determined
  • Architecture
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/bugs/2166 Item 2166] imported from sourceforge.net tracker on 2013-01-28 19:22:20

revision 26010
loading the attached testmap asserts (probably because it is so small, but it still shouldn&#039;t crash...)

==== InitGame ====
Map:passables Offset:(0, 0, 0)
wpMins:(0, 2, 0) wpMaxs:(1, -1, 1)
Shifted wpMins:(0, 2, 0) wpMaxs:(1, -1, 1)
ufo: src/common/cmodel.c:882: CMod_LoadRouting: Assertion `minY <= maxY&#039; failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb6dd36e0 (LWP 4503)]
0xb7912456 in raise () from /lib/libc.so.6
(gdb) bt full
#0 0xb7912456 in raise () from /lib/libc.so.6
No symbol table info available.
#1 0xb7913e08 in abort () from /lib/libc.so.6
No symbol table info available.
#2 0xb790b3f0 in __assert_fail () from /lib/libc.so.6
No symbol table info available.
#3 0x0812fd9c in CMod_LoadRouting (name=0xbff2726c "passables", l=0xbff2711c, sX=0, sY=0, sZ=0) at src/common/cmodel.c:882
source = (byte *) 0x1c23340e ""
length = 18874392
x = 0
y = 0
z = 608
size = 135452559
dir = 20128
minX = 0
minY = 2
minZ = 0
maxX = 1
maxY = -1
maxZ = 1
i = 3
start = 1252102469
end = 8.9421946120406526e-270
targetLength = 18874392
tempMap = {{stepup = {{{" \000 \000 \000 ", " \000 \000 ", "\000 \000\000\000\000\000",
"\000\000\000\000\000\000\000" <repeats 253 times>}, {" \000 \000 ", " ", "\000 \000\000\000 \000",
"\000\000\000\000\000\000\000" <repeats 253 times>}, {"\000\000\000 \000\000\000 ", "\000\000\000 \000 \000",
"\000\000\000\000\000 \000", "\000\000\000\000\000\000\000" <repeats 253 times>}, {
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 253 times>}, {{" \000 \000 \000\000",
" \000 \000 ", "\000 \000\000\000\000\000", "\000\000\000\000\000\000\000" <repeats 253 times>}, {
" \000 \000\000 ", " ", "\000 \000\000\000 \000", "\000\000\000\000\000\000\000" <repeats 253 times>}, {
"\000\000\000 \000\000\000 ", "\000\000\000 \000 \000", "\000\000\000\000\000 \000",
"\000\000\000\000\000\000\000" <repeats 253 times>}, {
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 253 times>}, {{" \000 \000 \000\000",
" \000 \000 ", "\000 \000\000\000\000\000", "\000\000\000\000\000\000\000" <repeats 253 times>}, {
" \000 \000\000 ", " ", "\000 \000\000\000 \000", "\000\000\000\000\000\000\000" <repeats 253 times>}, {
"\000\000\000 \000\000\000 ", "\000\000\000 \000 \000", "\000\000\000\000\000 \000",
"\000\000\000\000\000\000\000" <repeats 253 times>}, {
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 253 times>}, {{" \000 \000 \000\000",
" \000 \000 ", "\000 \000\000\000\000\000", "\000\000\000\000\000\000\000" <repeats 253 times>}, {
" \000 \000\000 ", " ", "\000 \000\000\000 \000", "\000\000\000\000\000\000\000" <repeats 253 times>}, {
"\000\000\000 \000\000\000 ", "\000\000\000 \000 \000", "\000\000\000\000\000 \000",
"\000\000\000\000\000\000\000" <repeats 253 times>}, {
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 253 times>}, {{" \000 \000 \000\000",
" \000 \000 ", "\000 \000\000\000\000\000", "\000\000\000\000\000\000\000" <repeats 253 times>}, {
" \000 \000\000 ", " ", "\000 \000\000\000 \000", "\000\000\000\000\000\000\000" <repeats 253 times>}, {
"\000\000\000 \000\000\000 ", "\000\000\000 \000 \000", "\000\000\000\000\000 \000",
"\000\000\000\000\000\000\000" <repeats 253 times>}, {
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 253 times>}, {{" \000 \000 \000\000",
" \000 \000 ", "\000 \000\000\000\000\000", "\000\000\000\000\000\000\000" <repeats 253 times>}, {
" \000 \000\000 ", " ", "\000 \000\000\000 \000", "\000\000\000\000\000\000\000" <repeats 253 times>}, {
"\000\000\000 \000\000\000 ", "\000\000\000 \000 \000", "\000\000\000\000\000 \000",
"\000\000\000\000\000\000\000" <repeats 253 times>}, {
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 253 times>}, {{" \000 \000 \000\000",
" \000 \000 ", "\000 \000\000\000\000\000", "\000\000\000\000\000\000\000" <repeats 253 times>}, {
" \000 \000\000 ", " ", "\000 \000\000\000 \000", "\000\000\000\000\000\000\000" <repeats 253 times>}, {
"\000\000\000 \000\000\000 ", "\000\000\000 \000 \000", "\000\000\000\000\000 \000",
"\000\000\000\000\000\000\000" <repeats 253 times>}, {
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 253 times>}, {{" \000 \000 \000\000",
" \000 \000 ", "\000 \000\000\000\000\000", "\000\000\000\000\000\000\000" <repeats 253 times>}, {
" \000 \000\000 ", " ", "\000 \000\000\000 \000", "\000\000\000\000\000\000\000" <repeats 253 times>}, {
"\000\000\000 \000\000\000 ", "\000\000\000 \000 \000", "\000\000\000\000\000 \000",
"\000\000\000\000\000\000\000" <repeats 253 times>}, {
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 253 times>}}, route = {{{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}, {{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}, {{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}, {{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}, {{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}, {{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}, {{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}, {{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}}, floor = {{
"’’", &#039;\0&#039; <repeats 253 times>, "’’", &#039;\0&#039; <repeats 253 times>, &#039;\0&#039; <repeats 255 times> <repeats 254 times>}, {
"ļļ", &#039;\0&#039; <repeats 253 times>, "ļļ", &#039;\0&#039; <repeats 253 times>, &#039;\0&#039; <repeats 255 times> <repeats 254 times>}, {
"ßß", &#039;\0&#039; <repeats 253 times>, "ßß", &#039;\0&#039; <repeats 253 times>, &#039;\0&#039; <repeats 255 times> <repeats 254 times>}, {
"ĻĻ", &#039;\0&#039; <repeats 253 times>, "ĻĻ", &#039;\0&#039; <repeats 253 times>, &#039;\0&#039; <repeats 255 times> <repeats 254 times>}, {
"ææ", &#039;\0&#039; <repeats 253 times>, "ææ", &#039;\0&#039; <repeats 253 times>, &#039;\0&#039; <repeats 255 times> <repeats 254 times>}, {
"ÆÆ", &#039;\0&#039; <repeats 253 times>, "ÆÆ", &#039;\0&#039; <repeats 253 times>, &#039;\0&#039; <repeats 255 times> <repeats 254 times>}, {
"\237\237", &#039;\0&#039; <repeats 253 times>, "\237\237", &#039;\0&#039; <repeats 253 times>,
&#039;\0&#039; <repeats 255 times> <repeats 254 times>}, {"\217\217", &#039;\0&#039; <repeats 253 times>,
"\217\217", &#039;\0&#039; <repeats 253 times>, &#039;\0&#039; <repeats 255 times> <repeats 254 times>}}, ceil = {{
&#039;\0&#039; <repeats 255 times> <repeats 256 times>}, {&#039;\0&#039; <repeats 255 times> <repeats 256 times>}, {
&#039;\0&#039; <repeats 255 times> <repeats 256 times>}, {&#039;\0&#039; <repeats 255 times> <repeats 256 times>}, {
&#039;\0&#039; <repeats 255 times> <repeats 256 times>}, {&#039;\0&#039; <repeats 255 times> <repeats 256 times>}, {
&#039;\0&#039; <repeats 255 times> <repeats 256 times>}, {&#039;\0&#039; <repeats 255 times> <repeats 256 times>}}}, {stepup = {{{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}, {{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}, {{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}, {{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}, {{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}, {{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}, {{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}, {{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}}, route = {{{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}, {{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}, {{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}, {{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}, {{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}, {{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}, {{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}, {{
"\000\000\000\000\000\000\000" <repeats 256 times>} <repeats 256 times>}}, floor = {{
"’", &#039;\0&#039; <repeats 254 times>, &#039;\0&#039; <repeats 255 times> <repeats 255 times>}, {"ļ", &#039;\0&#039; <repeats 254 times>,
&#039;\0&#039; <repeats 255 times> <repeats 255 times>}, {"ß", &#039;\0&#039; <repeats 254 times>,
&#039;\0&#039; <repeats 255 times> <repeats 255 times>}, {"Ļ", &#039;\0&#039; <repeats 254 times>,
&#039;\0&#039; <repeats 255 times> <repeats 255 times>}, {"æ", &#039;\0&#039; <repeats 254 times>,
&#039;\0&#039; <repeats 255 times> <repeats 255 times>}, {"Æ", &#039;\0&#039; <repeats 254 times>,
&#039;\0&#039; <repeats 255 times> <repeats 255 times>}, {"\237", &#039;\0&#039; <repeats 254 times>,
&#039;\0&#039; <repeats 255 times> <repeats 255 times>}, {"\217", &#039;\0&#039; <repeats 254 times>,
&#039;\0&#039; <repeats 255 times> <repeats 255 times>}}, ceil = {{&#039;\0&#039; <repeats 255 times> <repeats 256 times>}, {
&#039;\0&#039; <repeats 255 times> <repeats 256 times>}, {&#039;\0&#039; <repeats 255 times> <repeats 256 times>}, {
&#039;\0&#039; <repeats 255 times> <repeats 256 times>}, {&#039;\0&#039; <repeats 255 times> <repeats 256 times>}, {
&#039;\0&#039; <repeats 255 times> <repeats 256 times>}, {&#039;\0&#039; <repeats 255 times> <repeats 256 times>}, {
&#039;\0&#039; <repeats 255 times> <repeats 256 times>}}}}
__PRETTY_FUNCTION__ = "CMod_LoadRouting"
#4 0x08130a5a in CM_AddMapTile (name=0xbff2726c "passables", day=qtrue, sX=0, sY=0, sZ=0 &#039;\0&#039;) at src/common/cmodel.c:1100
filename = "maps/passables.bsp\000\000@\vŁ\030\000\000\000\000@\vŁ\030\000\000\000\000\000\000\000\000@\vŁ\030\000\000\000\000\001\000\000\000d\000ŠĮ\000\000\000\000čĻŁ\030"
checksum = 2394922259
buf = (byte *) 0x1c1e821c "IBSPM"
i = 36
length = 307744
header = {ident = 1347633737, version = 77, lumps = {{fileofs = 307700, filelen = 44}, {fileofs = 144,
filelen = 640}, {fileofs = 1096, filelen = 12}, {fileofs = 14540, filelen = 293158}, {fileofs = 1120,
filelen = 308}, {fileofs = 1428, filelen = 648}, {fileofs = 2076, filelen = 0}, {fileofs = 14540, filelen = 0}, {
fileofs = 14540, filelen = 0}, {fileofs = 784, filelen = 312}, {fileofs = 2148, filelen = 4}, {fileofs = 2152,
filelen = 4}, {fileofs = 2152, filelen = 0}, {fileofs = 2156, filelen = 12384}, {fileofs = 2076, filelen = 24}, {
fileofs = 2100, filelen = 48}, {fileofs = 1108, filelen = 12}}}
shift = {0, 0, 0}
__PRETTY_FUNCTION__ = "CM_AddMapTile"
#5 0x081311fe in CM_LoadMap (tiles=0xbff28c49 "", day=qtrue, pos=0x0, mapchecksum=0xbff272e8) at src/common/cmodel.c:1269
token = 0xa6cb0a0 ""
name = "passables", &#039;\0&#039; <repeats 12 times>, "\004\000\000\001\000\000\000ørņæ^$\030\bL§”\025\000\001\000\000ģD\034\bĢrņæ\001\000\000\000\001\000\000\000ųrņæ"
base = "\000ĻŁ\030\000’Ų\000\000\000\000\000\000\000\000\001\017\000ą\001\000’Ų\030\000\000\000\000\000\000\000\000\200Ŗņæ0<\030\b\220U\006\b\210rņæ¤$\030\bL§”\025\000\001\000\000ģD\034\b"
sh = {-1232142336, 31457295, 416874240}
i = 362916693
__PRETTY_FUNCTION__ = "CM_LoadMap"
#6 0x08156e10 in SV_SpawnServer (day=qtrue, server=0xbff28c40 "passables", param=0x0) at src/server/sv_init.c:1116
i = 1
checksum = 0
map = 0xbff28c40 "passables"
pos = 0x0
buf = 0x812a054 "U\211åø@]1\t]ĆU\211å”@a1\t]ĆU\211å\203ģ\030ĒEü"
__PRETTY_FUNCTION__ = "SV_SpawnServer"
#7 0x0815728d in SV_Map (day=qtrue, levelstring=0xbff28c40 "passables", assembly=0x0) at src/server/sv_init.c:1230
__PRETTY_FUNCTION__ = "SV_Map"
#8 0x08153212 in SV_Map_f () at src/server/sv_ccmds.c:187
assembly = 0x0
bufMap = "passables\000ņæKµ\030\b\001\000\000\000ō/¤·\002\000\000\000Ē(\031\bx\222ņæĄ’’’Å\003\000\000Ē(\031\b\002\000\000\000;\205\222·\000\000\000\000\000\000\000\000Ą\221ņæĄ’’’Å\003\000\000\000\223ņæŠ\221ņæ;\205\222·\000\000\000\000\020\223ņæó’’’", &#039;\0&#039; <repeats 12 times>, "ļ’’’\000\000\000\000\000\000\000\0000\223ņæ", &#039;\0&#039; <repeats 12 times>, "’’’’÷’’’MW\030\b\000\000\000\000’’’’Jµ\030\bIµ\030\b\000\000\000\000Š\221ņæ\004„ņæ\000\000\000\000\v", &#039;\0&#039; <repeats 11 times>, "¼(\031\b\000\000\000\000š"...
bufAssembly = &#039;\0&#039; <repeats 5948 times>, "¹\214\235·¤\212ņæŗ”\233·#\000\000\000¹\214\235·“\212ņæŗ”\233·\022\000\000\000Ü\027\225·\001\000\000\000\000Ąõ·\022\000\000\000Ą4¤·’’’’Ų\212ņæg)\225·Ą4¤·\000Ąõ·\022\000\000\000+\000\000\000ō/¤·Ą4¤·’’
’’ü\212ņæ0#\225·Ą4¤·\000Ąõ·\022\000\000\000ō/¤·ō/¤·\000\000\000\000Ą4¤·<\213ņæŌ\024\225·Ą4¤·’’’’\000\000\000\000ō/¤·Ņ\224ņæ\001\000\000\000\000\000\000\000\020\000\000\000\022\000\000\000\001\000\000\000\020Ąõ·ō/¤·Ą4¤·ą6"...
day = qtrue
#9 0x0812a9d9 in Cmd_ExecuteString (text=0xbff2a58c "map day passables") at src/common/cmd.c:912
cmd = (const cmd_function_t *) 0x18d191ac
a = (const cmd_alias_t *) 0xd
str = 0x1be585a4 "map"
hash = 29
#10 0x08129963 in Cbuf_Execute () at src/common/cmd.c:229
text = 0x9311be0 "map day passables\n280\n\nselect 200 131557\n_nexttip;\nom; check_nexttip;\n\nck_nexttip;\n;\n\nm; check_nexttip;\n\nck_nexttip;\n;\n\nmain;check_cvars;\nark_fence_upper_plain +park_fence_upper_pillar_tunnel +park_fe"...
quotes = 0
i = 18
line = "map day passables\000\000\000\000’Ų\030\024Øņæ\220q\001\000Ō#Ł\030\001\000\000\000<BŁ\030\004\000\000\000@BŁ\030¬\"Ł\030\000\000\000\000\200\"Ł\030<BŁ\030\001\000\000\000@\vŁ\030\000’Ų\030\021\024U·ōÕ\202¶\000\000\000\000Š\000\000\000xžŲ\030xžŲ\030\001\000\000\000@\vŁ\030\000’Ų\030xžŲ\030HST·@\vŁ\030\000’Ų\030@\vŁ\030\000\000\000\000@\vŁ\030\024ØņæŲ\aŁ\030Š\aŁ\030Ų#Ł\030\215nU·@\vŁ\030\027qU·@\vŁ\030\000’Ų\030°\225Śµ\000\000\000\000\000’Ų\030\024Øņæ", &#039;\0&#039; <repeats 46 times>...
#11 0x08088a68 in CL_SendCommand () at src/client/cl_main.c:941
No locals.
#12 0x08088f2a in CL_Frame (now=145406, data=0x0) at src/client/cl_main.c:1115
delta = 23
lastFrame = 145406
#13 0x08136cd4 in tick_timer (now=145406, data=0x1912cf8c) at src/common/common.c:1046
timer = (struct timer *) 0x1912cf8c
old_interval = 20
lateness = 7
#14 0x08136f72 in Qcommon_Frame () at src/common/common.c:1127
event = (struct event *) 0x1be3d83c
time_to_next = 0
#15 0x08182643 in main (argc=1, argv=0xbff2ab04) at src/ports/linux/linux_main.c:53
No locals.

===== Comments Ported from Sourceforge =====

====== richlv (2009-09-04 22:18:05) ======

testcase
====== tlh2000 (2010-06-19 06:32:49) ======

retried in r30556 - still an error
====== aduke1 (2010-12-20 19:38:54) ======

This error ocurred because that testmap didn&#039;t have a floor.
But there was also a bug in that calculation which caused the assert later on in UFO.
I now fixed the bug.
Loading that map still fails, but now with an error in the log:
ERROR: Game Error: No spawnpoints for team 1
which is the correct answer. This can happen with every other crappy map.
====== tlh2000 (2010-12-20 21:47:14) ======

can you please add comments to the code why the i ^ 1 is needed there?
====== aduke1 (2010-12-20 22:41:25) ======

Done.
Is it understandable now ?
====== tlh2000 (2010-12-21 07:08:41) ======

thanks a lot - it is - i haven&#039;t even seen that only x and y are handled there, that&#039;s why i couldn&#039;t get my head around that change
Steps to reproduce this issue
Nothing entered.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif