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 #2037 2.3 trunk 22111 - assert in r_state.c:58
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
    Engine
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    3. Normal
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
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/2037 Item 2037] imported from sourceforge.net tracker on 2013-01-28 19:18:54

In full screen mode only, if I try to use the buy/sell equipment option in my base, I get an assertion failed crash at /src/client/renderer/r_state.c:58, with the expression: texnum > 0.
If I don't use full screen mode, I don't seem to get this crash.

I tried using gdb to catch this crash, but I can't even run ufo.exe there, as I keep getting this error, whenever I try to run the game:
Program received signal SIGSEGV, Segmentation fault.
0x0f159631 in ?? ()

Same thing using Code::Blocks, except there I can choose to continue debugging, so that's what I got in the call stack:
#0 00000000 0x77c35b62 in _libuser32_a_iname() (??:??)
#1 00000000 0x0022f7e0 in ??() (??:??)
#2 004D3134 R_BindTexture(texnum=0) (D:/UFOAI SC/src/client/renderer/r_state.c:58)
#3 004C6FF1 R_DrawModelDirect(mi=0x22fcb0, pmi=0x0, tagname=0x0) (D:/UFOAI SC/src/client/renderer/r_mesh.c:260)
#4 004A38C5 MN_DrawItem(node=0x275ca84, org=0x22fd60, item=0x22fd80, x=-1, y=-1, scale=0x275cc34, color=0x22fd70) (D:/UFOAI SC/src/client/menu/node/m_node_container.c:281)
#5 004A8F91 MN_ItemNodeDraw(node=0x275ca84) (D:/UFOAI SC/src/client/menu/node/m_node_item.c:58)
#6 0049941F MN_DrawMenus() (D:/UFOAI SC/src/client/menu/m_draw.c:234)
#7 0048E01D SCR_UpdateScreen() (D:/UFOAI SC/src/client/cl_screen.c:475)
#8 004857E9 CL_Frame(now=25933, data=0x0) (D:/UFOAI SC/src/client/cl_main.c:1433)
#9 004DF3DC tick_timer(now=25933, data=0xed4572c) (D:/UFOAI SC/src/common/common.c:1092)
#10 004DF6C1 Qcommon_Frame() (D:/UFOAI SC/src/common/common.c:1173)
#11 005022AE WinMain(hInstance=0x400000, hPrevInstance=0x0, lpCmdLine=0x241f0b "", nCmdShow=10) (D:/UFOAI SC/src/ports/windows/win_main.c:407)
#12 00000000 0x0050fe1a in main() (??:??)

My graphics card is 8600GT (maybe it's related to the full screen mode).

Win XP, SP2
UFO: AI, 2.3 trunk 22111
===== Comments Ported from Sourceforge =====

====== odiewoof (2009-01-30 03:32:59) ======

Hi smalul10,

Do u want to consider upgrading to SP3 for ur windows??
You should be using GeForce 8600 Graphics card....
Its the exact same as the one i use at my work place.
I suspect u could be using old drivers (original from box probably).

Try updating your graphics card's driver from the original site at:
http://www.nvidia.com/Download/index.aspx?lang=en-us

The current version is:
GeForce Release 181
Version: 181.22 WHQL
Release Date: January 22, 2009
File Size - 72.32MB

You could use the automatic scan settings if you are not sure...

And remember to enable java.
Current java's platform is V6 Update 11.

Then restart your machine.
It would be best to patch to SP3, (plus quite a whole tons of updates after that. THEN will you update your graphics drivers....)

PS: If your windows XP fail authentication, (well, pirated? lol....), you can download the offline installation package here: http://www.microsoft.com/downloads/details.aspx?FamilyID=5B33B5A8-5E76-401F-BE08-1E1555D4F3D4&displaylang=en

I recommend auto updating though, since auto updating is 100+MB whilst offline package is 316MB.

Hope u resolve ur issue......
====== smalul10 (2009-01-30 16:37:29) ======

A saved game file, trunk 22111
====== smalul10 (2009-01-30 16:40:38) ======

1. I'm not going to update to SP3 anytime soon, but I do have all the other updates from Microsoft.
2. I do use the latest NVIDIA drivers (181.22).
3. I have both the latest JDE and JDK (version 6, update 11), but this is not related to the game.

Attaching a saved game file (in case the problem is there) - switch to full screen mode (before or after loading the game, it doesn't matter), and try to use the buy/sell equipment button. I get a crash.
====== odiewoof (2009-01-30 19:25:58) ======

Hi,

3) Well, my point in asking you for ensuring JAVA is updated / installed = GeForce (Nvidia) website is java-based, so if u have java, u need to ensure its enabled for the site (Probably NoScript or other java-based protection on your computer). And if u have java, i rather u have the latest patch (6v11). Thats the purpose, nothing to do with the game. Game is not java-based.

2) Okie, its good u have 181.22. Lets move on.

1) Well, u should consider SP3 anitime now..... its much more stable in the codes, and renders a number of x86 codes better and more efficiently.... but since u do not want to update, well.... not sure how we can go on....

Probably u might want to provide the other developers a backtrace??

Either way, note that this is developing-heavily.... so for the main programming to move on, probably just stick to windowed mode for now.... I know and read about how mani of the developers are sticking to the windowed mode, so that other bugs and features can be addressed first;

Only perhaps closer to 2.3-stable would they work on the Full Screen Mode issue. :)

Meanwhile, be patient? :)
====== smalul10 (2009-01-30 19:47:14) ======

1. We should probably take this discussion to the forum, as the tracker is not mean for "talking".
2. I've been playing this game for a very long time (since trunk 8XXX or 9XXX - I download and compile the source code myself), and I've reported many bugs in the past (I don't have much time to play and report bugs today because of collage).
3. I like to keep my computer updated with all the latest drivers, so that's probably not the issue here.
4. I know this game is always under development, that's why I'm posting bug reports when ever I can - to help develop the game and fix bugs.
5. I don't care if the developers won't fix this bug right now, I only want them to know it's there.

Back to the bug - there is a bug somewhere - in the r_state.c file, line 58. The expression is "texnum > 0". I don't know what this means as I don't have the time to read the code and try to understand it.
I tried to provide the best backtrace I can, but like I said, for some reason I can't run this game in gdb ("Program received signal SIGSEGV, Segmentation fault"), so I did the next best thing, and copy-pasted the call stack from Code::Blocks when the game crashed.

I can say the problem is 100% related to the full screen mode, as it always occurs when I'm using full screen mode, but never in windowed mode.
====== vedrit (2009-02-25 21:37:20) ======

I get this issue in wondow mode when I try to equip units.
NVidia GeForce 8200, latest update Feb. 18, 2009
====== vedrit (2009-02-26 00:17:20) ======

I can testify to this error occuring in widnow mode, as I never play in full-screen (I have other things going on at the same time, and I regularly switch. Window is more practicle for that)

Latest GeForce update is Feb. 18, as I said earlier.
====== tlh2000 (2009-03-21 08:59:07) ======

some other users told us that this is only happening in windowed mode for them, too
====== geever (2009-04-13 15:46:19) ======

should be fixed.

-geever
====== sf-robot (2009-04-28 02:26:23) ======

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
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