Yes, thank you. I will fix this for the upcoming release.
ok great… thank you very much! im sure my project won’t be done yet by then so i will just put empty functions in for the parts that need movies and will come back 2 them once this is fixed
No sorry here is another dump from them i looked and it is slightly different
#0 0x96f67e42 in __kill ()
#1 0x96f67e34 in kill$UNIX2003 ()
#2 0x96fda23a in raise ()
#3 0x96fe6679 in abort ()
#4 0x02ee54da in ThreadSimpleManager::choose_next_context ()
#5 0x02eed230 in save_thread_context ()
#6 0x02ee1102 in ThreadSimpleManager::next_context ()
#7 0x02ee83bb in MutexSimpleImpl::do_acquire ()
#8 0x02c9fb60 in OpenCVTexture::update_frame ()
#9 0x02c9a914 in OpenCVTexture::update_frame ()
#10 0x02ca3213 in OpenCVTexture::do_read_one ()
#11 0x0300731c in Texture::do_read ()
#12 0x02fcc87e in Texture::read ()
#13 0x03011c50 in TexturePool::ns_load_texture ()
#14 0x030d7906 in Dtool_TexturePool_load_texture_1273 ()
#15 0x00485acd in PyEval_EvalFrameEx (f=0x5af68f0, throwflag=0) at /home/fb6/loewis/25/Python/ceval.c:3612
#16 0x0048771d in PyEval_EvalCodeEx (co=0x590ac38, globals=0x5911300, locals=0x0, args=0x80eaa8, argcount=2, kws=0x80eab0, kwcount=0, defs=0x5909934, defcount=6, closure=0x0) at /home/fb6/loewis/25/Python/ceval.c:2875
#17 0x00484d9e in PyEval_EvalFrameEx (f=0x80e970, throwflag=0) at /home/fb6/loewis/25/Python/ceval.c:3708
#18 0x0048771d in PyEval_EvalCodeEx (co=0x59770, globals=0x24d20, locals=0x24d20, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at /home/fb6/loewis/25/Python/ceval.c:2875
#19 0x004878d1 in PyEval_EvalCode (co=0x59770, globals=0x24d20, locals=0x24d20) at /home/fb6/loewis/25/Python/ceval.c:514
#20 0x004ab031 in PyRun_FileExFlags (fp=0xa08ce4c0, filename=0xbffff719 “movie.py”, start=257, globals=0x24d20, locals=0x24d20, closeit=1, flags=0xbffff55c) at /home/fb6/loewis/25/Python/pythonrun.c:1273
#21 0x004ab3cb in PyRun_SimpleFileExFlags (fp=0xa08ce4c0, filename=0xbffff719 “movie.py”, closeit=1, flags=0xbffff55c) at /home/fb6/loewis/25/Python/pythonrun.c:879
#22 0x004b8bbe in Py_Main (argc=1, argv=0xbffff5dc) at /home/fb6/loewis/25/Modules/main.c:532
#23 0x00001f8e in ?? ()
#24 0x00001eb5 in ?? ()
All right, thanks for the traceback. Turned out there was another deadlock in a different function.
Try this build.
152.10.254.215/~pro-rsoft/Panda3D-1.6.2.dmg
nope still deadlocked… sorry looks like the dump may be the same this time
#0 0x96f67e42 in __kill ()
#1 0x96f67e34 in kill$UNIX2003 ()
#2 0x96fda23a in raise ()
#3 0x96fe6679 in abort ()
#4 0x02ee66fa in ThreadSimpleManager::choose_next_context ()
#5 0x02eee450 in save_thread_context ()
#6 0x02ee2322 in ThreadSimpleManager::next_context ()
#7 0x02ee95db in MutexSimpleImpl::do_acquire ()
#8 0x02ca1250 in OpenCVTexture::update_frame ()
#9 0x02c9c0d4 in OpenCVTexture::update_frame ()
#10 0x02ca4d83 in OpenCVTexture::do_read_one ()
#11 0x030082cc in Texture::do_read ()
#12 0x02fcd82e in Texture::read ()
#13 0x03012c00 in TexturePool::ns_load_texture ()
#14 0x030d88b6 in Dtool_TexturePool_load_texture_1273 ()
#15 0x00485acd in PyEval_EvalFrameEx (f=0x5af6250, throwflag=0) at /home/fb6/loewis/25/Python/ceval.c:3612
#16 0x0048771d in PyEval_EvalCodeEx (co=0x590cc38, globals=0x5913300, locals=0x0, args=0x80eaa8, argcount=2, kws=0x80eab0, kwcount=0, defs=0x590b934, defcount=6, closure=0x0) at /home/fb6/loewis/25/Python/ceval.c:2875
#17 0x00484d9e in PyEval_EvalFrameEx (f=0x80e970, throwflag=0) at /home/fb6/loewis/25/Python/ceval.c:3708
#18 0x0048771d in PyEval_EvalCodeEx (co=0x59770, globals=0x24d20, locals=0x24d20, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at /home/fb6/loewis/25/Python/ceval.c:2875
#19 0x004878d1 in PyEval_EvalCode (co=0x59770, globals=0x24d20, locals=0x24d20) at /home/fb6/loewis/25/Python/ceval.c:514
#20 0x004ab031 in PyRun_FileExFlags (fp=0xa08ce4c0, filename=0xbffff719 “movie.py”, start=257, globals=0x24d20, locals=0x24d20, closeit=1, flags=0xbffff55c) at /home/fb6/loewis/25/Python/pythonrun.c:1273
#21 0x004ab3cb in PyRun_SimpleFileExFlags (fp=0xa08ce4c0, filename=0xbffff719 “movie.py”, closeit=1, flags=0xbffff55c) at /home/fb6/loewis/25/Python/pythonrun.c:879
#22 0x004b8bbe in Py_Main (argc=1, argv=0xbffff5dc) at /home/fb6/loewis/25/Modules/main.c:532
#23 0x00001f8e in ?? ()
#24 0x00001eb5 in ?? ()
Sorry, I missed a case. Try again please - same link.
ok it didnt deadlock but im getting an error which says:
tex.synchronizeTo(sound)
AttributeError: ‘libpanda.OpenCVTexture’ object has no attribute ‘synchronizeTo’
i tried to follow the manual … did i do it wrong?
Yeah - only MovieTexture has synchronizeTo, OpenCVTexture doesn’t since that’s a VideoTexture, and ffmpeg support isn’t enabled in the OSX build (but its required for MovieTexture). Confusing, eh?
What happens if you just comment out the synchronizeTo line?
I was just trying that i get this:
Couldn’t step to desired frame number in icvGrabFrame_QT.
it just show as still that is upside down and diagonal out of curiosity why isn’t FFmpeg included? and does that mean i can’t play the sound or just that i have to manually try and sink them?
Hmm. It seems that VideoTextures can be played using the AnimInterface but I have no idea how.
You’ll be able to use sound, yeah - you’ll just need to play it separately.
FFmpeg is not included because I didn’t manage to get a universal static ffmpeg build working on OSX with Panda after months of trying.
oh ok i think im just going to try and see if i can use pygame or something else for the cut scenes and i guess i just can’t have any monitors or tvs in my game … thanks a lot for all your help though
I think I managed to get ffmpeg working, can one of you OSX users try this build and see if ffmpeg (media player sample, I think) is working?
152.10.254.215/~pro-rsoft/Panda3D-1.7.0.dmg
Hello, I can’t download it “You don’t have permission to access /~pro-rsoft/Panda3D-1.7.0-pre.dmg on this server” Thanks.
Sorry, bad link. I’ve updated the link in the post above.
Please keep in mind that this actually is not 1.7.0, but rather a CVS snapshot (an old one at that) - and nothing is guaranteed to work.
Great, thanks, I am having problems with media player and webcam on MacOSX.
The Media Player demo is working with 1.7 on MacOSX, but the following code is giving a white square (it was a black square on 1.6.2) :
import direct.directbase.DirectStart
from pandac.PandaModules import OpenCVTexture
from pandac.PandaModules import CardMaker
tex = OpenCVTexture()
tex.fromCamera(0)
cm = CardMaker('card')
card = aspect2d.attachNewNode(cm.generate())
card.setTexture(tex)
print tex.getTexScale()
print tex.getVideoWidth()
print tex.getVideoHeight()
run()
Thanks, and sorry for my english.
Well, from a black square to a white square, that’s already a big improvement
But seriously, I get a white square too… I’ll investigate the problem.
Thanks, it will be great to have Augmented Reality on MacOS.