[physfs] Possible PhysFS bug?

Jeremy jswigart at gmail.com
Tue May 8 09:57:14 EDT 2007


deinit doesn't throw an error, so it appears to be working fine.

I don't have a linux box to debug on, it is just a user that has ran a
couple tests to see the problem.

running 1.1.0

On 5/8/07, Edward Rudd <eddie at omegaware.com> wrote:
>
> Jeremy wrote:
> [snip]
> >
> > The game loads the dll newly every map change. Inside my dll I am
> > mounting 3 folders for use in my file system. During unloading of the
> > dll I call PHYSFS_deinit, which should release all mounted assets, I
> > have verified this is all getting called as expected.
>
> Is the return value of the PHYSFS_deinit call set correctly to 1? or is
> an error thrown?
>
> > The problem is that every time the game re-loads the dll, despite the
> > previous load being PHYSFS_deinit'ed, it doesn't seem to free the handle
> > to those 3 folders. the lsof command shows handles building up and
> > building up, until some of our users recently started reporting an error
> > with too many files open after running for several days.
>
> You may want to write a small test app that runs outside of enemy
> territory that recreates the bug and run it through the debugger being
> careful to watch the 2 calls to closeFileHandleList() that occur from
> PHYSFS_deinit (the second is from within freeSearchPath called by
> PHYSFS_deinit)
>
> Also, what version of PhysFS are you using?
>
> Edward Rudd
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/physfs/attachments/20070508/5d0de28a/attachment.htm>


More information about the physfs mailing list