Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: memory problem  (Read 2385 times)

_heinz_

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 4
    • View Profile
memory problem
« on: November 01, 2005, 05:18:01 PM »

Hello out there.


I have compiled the videoplugin under VC6 successfully and I think I have set up all correctly however when I call

TheoraMovieClip::changePlayMode(TextureEffectPlay_ASAP);

it takes abaut a second and then I get an Error window entitled
'Microsoft Visual C++ Runtime Library'
and it says:

Runtime Error!
R6016
- not enough space for thread data

I don't think that I am out of physical memory with 2GB RAM and a 120GB harddrive.
So it must have something to do with the virtual address space or something like this.

I don't know how to manage Threads. I haven't even one created apart from my MainGameLoop.

So how can I fix this?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
memory problem
« Reply #1 on: November 02, 2005, 09:41:43 AM »

Hmm.. This is definately odd.. The plugin should not approach 2GBs of ram (which, btw, is an imressive amount of RAM :)

Sounds like the thread is doing something crazy... Did you enable seeking? If you have, I suggest disabling (the default). And is this your app, or the CEGUI demo app? ANd the cheerios movie, or your own encoded movie.. I have encoded some movies myself that just break the decoder :/ and lock up my system...
Logged

Anonymous

  • Guest
memory problem
« Reply #2 on: November 02, 2005, 10:54:07 AM »

Ok,

It is my own app and the cheerious video and seeking is disabled. I am currently porting my code to VC2003 Toolkit with Code::Blocks. Perhaps this might solve the problem.
I'll post a new one when I'm done with it.
Logged

_heinz_

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 4
    • View Profile
memory problem
« Reply #3 on: November 02, 2005, 10:56:31 AM »

Whoops, forgot to log in.

The above post is copyright and all this legal stuff by me ;-)
Logged

_heinz_

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 4
    • View Profile
memory problem
« Reply #4 on: November 04, 2005, 08:19:01 AM »

I've updated to VC7.1 and now the Game does not crash anymore but I get
an errormessage saying:

Run-Time Check Failure #3 - The variable 'MVect' is being used without being
defined.

This error occurs in decode.c of libtheora.
Since I am not familiar with the internal workings of theora I hope anyone can tell me
which Prerequerities I have to provide to have MVect defined.
Logged

Anonymous

  • Guest
memory problem
« Reply #5 on: November 04, 2005, 10:02:07 AM »

Ok, you are not using the theora that i included with the project.. Which specifically inistialises that variable.. it is not really a bug, as the theora devs claim that it is not even used.

So, you can either initialize it (like I do with the theora I distribute - which is why i distribute it).. or disable that runtime check in your project settings.
Logged

_heinz_

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 4
    • View Profile
memory problem
« Reply #6 on: November 05, 2005, 09:47:02 AM »

That made it. Now it runs really fine. Thank you.

But I've discovered a new problem:
If I've understood it correctly,

TheoraMovieMessage::messageEvent(   TH_OggStreamDone   );

gets called when the movie ends.

However in my app its called during loading of the movie.

Is this perhaps a bug in the Plugin?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
memory problem
« Reply #7 on: November 05, 2005, 11:44:59 AM »

Yes, more than likely a bug... The decoding loop has probably read to the end of the file, and has buffered all ogg packets, and while the decoding is not done, it has set the flag wrongly.

This is all stuff I plan to fix when I rewrite the lib into a static lib that does not rely/use Ogre classes.
Logged