[quake3-bugzilla] [Bug 4036] New: VMs can clog up sourceFile buffers

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Wed Apr 8 14:17:59 EDT 2009


http://bugzilla.icculus.org/show_bug.cgi?id=4036

           Summary: VMs can clog up sourceFile buffers
           Product: Quake 3
           Version: SVN HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P3
         Component: Misc
        AssignedTo: zakk at icculus.org
        ReportedBy: devhc97 at gmail.com
         QAContact: quake3-bugzilla at icculus.org


When the cgame/game/ui gets unloaded, we should automatically close all related
sourceFiles[i], otherwise some files will remain open forever.

When forcefully unloading a VM, CL_InitUI() gets called. Why? forced_unload is
set! If the UI fails to load, we're toast.
My scenario is that Tremulous' cgame forgets to close some sourceFiles[i]. At
some point all 64 file slots will appear to be in use, and UI_LoadMenus() (in
UI_Init()) will fail to open the menus.txt file, and call Com_Error() with
"default menu file not found: ui/menus.txt" [where "not found" should have been
expressed as "failed to open"].

Perhaps use separate sourceFiles for each VM?

-- 
Configure bugmail: http://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the quake3-bugzilla mailing list