Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

psi instant messenger crashes at startup #8764

Closed
sorokin opened this issue Jul 12, 2015 · 3 comments
Closed

psi instant messenger crashes at startup #8764

sorokin opened this issue Jul 12, 2015 · 3 comments
Labels
0.kind: bug Something is broken

Comments

@sorokin
Copy link
Contributor

sorokin commented Jul 12, 2015

Currently psi crashes at startup and isn't usable at all. Valgrind log:

==9178== Memcheck, a memory error detector
==9178== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==9178== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==9178== Command: psi
==9178== 
[12:04:32] W:Accessing missing option proxy.Default
[12:04:32] W:Accessing missing option proxy.Default

(psi:9178): GLib-GObject-WARNING **: cannot register existing type 'GstAppVideoSink'

(psi:9178): GStreamer-CRITICAL **: gst_element_register: assertion 'g_type_is_a (type, GST_TYPE_ELEMENT)' failed

(psi:9178): GLib-GObject-WARNING **: cannot register existing type 'GstRtpBin'

(psi:9178): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(psi:9178): GStreamer-CRITICAL **: gst_element_register: assertion 'g_type_is_a (type, GST_TYPE_ELEMENT)' failed

(psi:9178): GLib-GObject-WARNING **: cannot register existing type 'GstVideoMaxRate'

(psi:9178): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(psi:9178): GStreamer-CRITICAL **: gst_element_register: assertion 'g_type_is_a (type, GST_TYPE_ELEMENT)' failed

(psi:9178): GLib-GObject-WARNING **: cannot register existing type 'GstLiveAdder'

(psi:9178): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(psi:9178): GStreamer-CRITICAL **: gst_element_register: assertion 'g_type_is_a (type, GST_TYPE_ELEMENT)' failed

(psi:9178): GLib-GObject-WARNING **: cannot register existing type 'GstAudioresample'

(psi:9178): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(psi:9178): GStreamer-CRITICAL **: gst_element_register: assertion 'g_type_is_a (type, GST_TYPE_ELEMENT)' failed

(psi:9178): GLib-GObject-WARNING **: cannot register existing type 'GstSpeexDSP'

(psi:9178): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(psi:9178): GStreamer-CRITICAL **: gst_element_register: assertion 'g_type_is_a (type, GST_TYPE_ELEMENT)' failed

(psi:9178): GLib-GObject-WARNING **: cannot register existing type 'GstRtpJitterBuffer'

(psi:9178): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(psi:9178): GLib-GObject-WARNING **: instance of invalid non-instantiatable type 'GstRtpJitterBuffer'
==9178== Thread 3 PsiMedia::GstThread:
==9178== Invalid write of size 4
==9178==    at 0x20070FB1: gst_rtp_jitter_buffer_init (in /nix/store/rp78qw0941sivzjaiwmdsa6dch0qmavn-psimedia-1.0.3/share/psi/plugins/libgstprovider.so)
==9178==    by 0x20E6D72A: g_type_create_instance (in /nix/store/9cm8xk4s4lq0cmkxmg1hbiw4z6mf5gsv-glib-2.42.1/lib/libgobject-2.0.so.0.4200.1)
==9178==    by 0x20E5268C: g_object_new_internal (in /nix/store/9cm8xk4s4lq0cmkxmg1hbiw4z6mf5gsv-glib-2.42.1/lib/libgobject-2.0.so.0.4200.1)
==9178==    by 0x20E5417C: g_object_newv (in /nix/store/9cm8xk4s4lq0cmkxmg1hbiw4z6mf5gsv-glib-2.42.1/lib/libgobject-2.0.so.0.4200.1)
==9178==    by 0x20B95739: gst_element_factory_create (in /nix/store/576v076syian3nsqnkvwkpq8nb19phvh-gstreamer-0.10.36/lib/libgstreamer-0.10.so.0.30.0)
==9178==    by 0x20B958B0: gst_element_factory_make (in /nix/store/576v076syian3nsqnkvwkpq8nb19phvh-gstreamer-0.10.36/lib/libgstreamer-0.10.so.0.30.0)
==9178==    by 0x20058779: PsiMedia::GstSession::GstSession(QString const&) (in /nix/store/rp78qw0941sivzjaiwmdsa6dch0qmavn-psimedia-1.0.3/share/psi/plugins/libgstprovider.so)
==9178==    by 0x20057396: PsiMedia::GstThread::run() (in /nix/store/rp78qw0941sivzjaiwmdsa6dch0qmavn-psimedia-1.0.3/share/psi/plugins/libgstprovider.so)
==9178==    by 0x6D8707E: ??? (in /nix/store/lqsk6jxaa1ha61mkwwcj4pk38393528y-qt-4.8.6/lib/libQtCore.so.4.8.6)
==9178==    by 0x71FA373: start_thread (in /nix/store/nrxyygy0wqski1klq0305d3h523k41ps-glibc-2.20/lib/libpthread-2.20.so)
==9178==    by 0x825AF9C: clone (in /nix/store/nrxyygy0wqski1klq0305d3h523k41ps-glibc-2.20/lib/libc-2.20.so)
==9178==  Address 0x38 is not stack'd, malloc'd or (recently) free'd
==9178== 
==9178== 
==9178== Process terminating with default action of signal 11 (SIGSEGV)
==9178==  Access not within mapped region at address 0x38
==9178==    at 0x20070FB1: gst_rtp_jitter_buffer_init (in /nix/store/rp78qw0941sivzjaiwmdsa6dch0qmavn-psimedia-1.0.3/share/psi/plugins/libgstprovider.so)
==9178==    by 0x20E6D72A: g_type_create_instance (in /nix/store/9cm8xk4s4lq0cmkxmg1hbiw4z6mf5gsv-glib-2.42.1/lib/libgobject-2.0.so.0.4200.1)
==9178==    by 0x20E5268C: g_object_new_internal (in /nix/store/9cm8xk4s4lq0cmkxmg1hbiw4z6mf5gsv-glib-2.42.1/lib/libgobject-2.0.so.0.4200.1)
==9178==    by 0x20E5417C: g_object_newv (in /nix/store/9cm8xk4s4lq0cmkxmg1hbiw4z6mf5gsv-glib-2.42.1/lib/libgobject-2.0.so.0.4200.1)
==9178==    by 0x20B95739: gst_element_factory_create (in /nix/store/576v076syian3nsqnkvwkpq8nb19phvh-gstreamer-0.10.36/lib/libgstreamer-0.10.so.0.30.0)
==9178==    by 0x20B958B0: gst_element_factory_make (in /nix/store/576v076syian3nsqnkvwkpq8nb19phvh-gstreamer-0.10.36/lib/libgstreamer-0.10.so.0.30.0)
==9178==    by 0x20058779: PsiMedia::GstSession::GstSession(QString const&) (in /nix/store/rp78qw0941sivzjaiwmdsa6dch0qmavn-psimedia-1.0.3/share/psi/plugins/libgstprovider.so)
==9178==    by 0x20057396: PsiMedia::GstThread::run() (in /nix/store/rp78qw0941sivzjaiwmdsa6dch0qmavn-psimedia-1.0.3/share/psi/plugins/libgstprovider.so)
==9178==    by 0x6D8707E: ??? (in /nix/store/lqsk6jxaa1ha61mkwwcj4pk38393528y-qt-4.8.6/lib/libQtCore.so.4.8.6)
==9178==    by 0x71FA373: start_thread (in /nix/store/nrxyygy0wqski1klq0305d3h523k41ps-glibc-2.20/lib/libpthread-2.20.so)
==9178==    by 0x825AF9C: clone (in /nix/store/nrxyygy0wqski1klq0305d3h523k41ps-glibc-2.20/lib/libc-2.20.so)
==9178==  If you believe this happened as a result of a stack
==9178==  overflow in your program's main thread (unlikely but
==9178==  possible), you can try to increase the size of the
==9178==  main thread stack using the --main-stacksize= flag.
==9178==  The main thread stack size used in this run was 8388608.
Unable to load element 'v4lsrc'.
==9178== 
==9178== HEAP SUMMARY:
==9178==     in use at exit: 9,249,509 bytes in 82,536 blocks
==9178==   total heap usage: 337,297 allocs, 254,761 frees, 114,375,601 bytes allocated
==9178== 
==9178== LEAK SUMMARY:
==9178==    definitely lost: 20,288 bytes in 30 blocks
==9178==    indirectly lost: 22,608 bytes in 701 blocks
==9178==      possibly lost: 458,418 bytes in 6,159 blocks
==9178==    still reachable: 8,656,331 bytes in 75,254 blocks
==9178==         suppressed: 0 bytes in 0 blocks
==9178== Rerun with --leak-check=full to see details of leaked memory
==9178== 
==9178== For counts of detected and suppressed errors, rerun with: -v
==9178== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 1 from 1)

The crash is in psimedia plugin. I don't know if it is a problem with psimedia or gstreamer. Currently I had to disable (sorokin@158062d) psimedia to get a working psi.

@pSub pSub added the 0.kind: bug Something is broken label Jul 12, 2015
@jagajaga
Copy link
Member

jagajaga commented Aug 4, 2015

Can you post strace log?

@yokto
Copy link
Contributor

yokto commented Apr 2, 2016

I would suggest just disabling psimedia. The source from which psimedia is taken is not maintained (last commit 2012). In psi-plus there is still some activity. See https://github.com/psi-plus/psimedia.

I could write a patch if disabling psimedia is an acceptable solution.

@joachifm
Copy link
Contributor

joachifm commented Apr 3, 2016

@yokto, sounds good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

5 participants