tuituji / ossbuild

Automatically exported from code.google.com/p/ossbuild
Other
0 stars 0 forks source link

python crash #96

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I tested our python-farsight code under windows and I had a crash. This code 
works under linux, but make python crash under windows.

I attached a small test script that makes python crash when executing the last 
line.

Any idea what causes that? How could I help debugging that?

I'm running win7, python2.6.4, build 0.10.7 beta1

Thanks for those builds

Original issue reported on code.google.com by aste...@lagaule.org on 28 Oct 2010 at 11:53

Attachments:

GoogleCodeExporter commented 9 years ago
I'm looking at it right now. Thanks for reporting the issue

Original comment by ylatuya on 6 Nov 2010 at 5:51

GoogleCodeExporter commented 9 years ago
Hi again,

First of all I have found a bug in the installer, the farsight module should be 
installed in 'site-packages/' instead of in 'site-packages/farsight' 
(otherwhise you need import 'farsight.farsight').

Then your script is missing the proper import of the gstreamer modules. You 
should do:
import pygst
pygst.require('0.10')
import gst
import farsigh

And after that I have been able to reproduce the crash. For some reason the 
programs doesn't end normally, but if you run it under gdb it will finish 
properly and you will see that ' p2psession = 
conference.new_session(farsight.MEDIA_TYPE_AUDIO)' raise an Exception:

[New Thread 3904.0x13e8]
[New Thread 3904.0x1468]
ERROR: No codecs for media type audio detected
AttributeError: 'module' object has no attribute 'Element'

Program exited with code 01.
(gdb) 

Original comment by ylatuya on 6 Nov 2010 at 9:08

Attachments:

GoogleCodeExporter commented 9 years ago
I have found something else very interesting in the debug log:
0:13:26.622136000  4472   006B8FA0 DEBUG       
fsbaseconferences-plugin.c:128:fs_plugin_load: lookinsight2-0.0.9\
0:13:26.624136000  4472   006B8FA0 INFO        fsbaseconference 
fs-plugin.c:134:fs_plugin_load: openin.0.9\\libnice-transmitter.dll: 
`c:\farsight2-0.0.9\\libnice-transmitter.dll': The specified module cou

And after that it crashes

Original comment by ylatuya on 6 Nov 2010 at 9:25

GoogleCodeExporter commented 9 years ago
Hi,

Indeed installer doesn't install things correctly. It's the same for gst, I had 
to move it.

I tried your script and the same occures: python crashes. I don't have 
traceback when running p2psession = 
conference.new_session(farsight.MEDIA_TYPE_AUDIO). At least the try / except 
doesn't catch anything. Python still crashes at the last line.

Original comment by yann.leb...@gmail.com on 6 Nov 2010 at 9:29

GoogleCodeExporter commented 9 years ago
It's related to a wrong FS_PLUGIN_PATH, which we sould set properly with the 
installer.

Original comment by ylatuya on 6 Nov 2010 at 9:29

GoogleCodeExporter commented 9 years ago
You need to run it with gdb, where it doesn't crash and the expection is raised 
and printed.

But I have found the cause and fix for it :D

see r924

Original comment by ylatuya on 6 Nov 2010 at 10:22

GoogleCodeExporter commented 9 years ago
Well... a better fix would be checking that even before.
I'll open a bug upstream to see let the farsight guys fix it properly

Original comment by ylatuya on 6 Nov 2010 at 10:26

GoogleCodeExporter commented 9 years ago
Great! Thanks, I'll wait next built to test.

Original comment by yann.leb...@gmail.com on 6 Nov 2010 at 10:34

GoogleCodeExporter commented 9 years ago
Well, the patch doesn't seem to be good... Now the expception is not raised

Tracked upstream in:
https://bugs.freedesktop.org/show_bug.cgi?id=31435

Original comment by ylatuya on 6 Nov 2010 at 10:41

GoogleCodeExporter commented 9 years ago
@yann: You don't need to wait for a new Build. Set 
FS_PLUGIN_PATH=$PREFIX/lib/farsight2-0.0 and I think that would be fixed too. 

Original comment by ylatuya on 6 Nov 2010 at 10:47

GoogleCodeExporter commented 9 years ago
Indeed that raises a "glib.GError: Invalid local address passed" exception.

I'll try in on real win machine rather than in a VM to see.

Original comment by yann.leb...@gmail.com on 6 Nov 2010 at 11:00

GoogleCodeExporter commented 9 years ago
ylatuya: would you mind giving me a detailed list of needed installer changes 
so this is corrected?

Original comment by david.g.hoyt on 8 Nov 2010 at 6:26

GoogleCodeExporter commented 9 years ago
@david: only one change is needed :). Instead of having farsight.pyd in 
site-packages/farsight/farsiht.pyd it should be in site-packages/farsight.pyd.

Original comment by ylatuya on 8 Nov 2010 at 6:33

GoogleCodeExporter commented 9 years ago
Something else, set FS_PLUGIN_PATH=$PREFIX/lib/farsight2-0.0

Original comment by ylatuya on 8 Nov 2010 at 6:43

GoogleCodeExporter commented 9 years ago
Fixed upstream:
https://bugs.freedesktop.org/show_bug.cgi?id=31435

Original comment by ylatuya on 8 Nov 2010 at 10:58

GoogleCodeExporter commented 9 years ago
I'll try to backport the patch with the proper fix ASAP

Original comment by ylatuya on 10 Nov 2010 at 1:06

GoogleCodeExporter commented 9 years ago
Fixed in r948

Original comment by ylatuya on 14 Dec 2010 at 8:06

GoogleCodeExporter commented 9 years ago
Hi, the set FS_PLUGIN_PATH is still needed with the 0.10.7 beta4 installer. Is 
this normal?

also farsight.pyd and gst folder re still installed in the wrong place.

And finally, when I set FS_PLUGIN_PATH correctly, I still have the same error 
on a real windows machine (not a VM) :

Traceback (most recent call last):
  File "test_jingle.py", line 11, in <module>
    p2pstream = p2psession.new_stream(participant, farsight.DIRECTION_RECV, 'nice', params)
glib.GError: Invalid local address passed

is there a way to get libnice debug messages to see wht happend?

Original comment by yann.leb...@gmail.com on 11 May 2011 at 4:56