fixing NodePath::project_texture segfault on Windows

The segfault is in RenderEffect::return_new :

pair<Effects::iterator, bool> result = _effects->insert(effect);

I don’t know what to do.

i don’t think without more info we will never know ynjh_jo. Did you try to enable message level to spam? Maybe some thing else is failing and cousing this to crash. I would guess that _effects or effect is null at this point but it might be good to set cout’s around it.

Did you get here via C++ code? If so, are you sure you are using PointerTo’s properly (instead of raw pointers) for all of your reference-counting objects?

If you got here via Python code, can you tell us a bit more about how to repro it?

David

It’s via Python, and it’s as simple as in the manual, which was used to work before v1.4.

Hmm, you’re right. It does crash on 1.4.2. However, it doesn’t crash on my own build on the top of the CVS tree, and it doesn’t crash on the 2007-12-11 build available here.

It must have been a momentary bug in 1.4.2. Can you use one of these other versions of Panda instead?

David

Good Lord !
It’s a GREAT news, David. :smiley:
I apologize for troubling you, again. :blush: