LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   running 2 skype instances on ubuntu 13.04 64bit (one gets blocked)... (http://www.linuxquestions.org/questions/linux-desktop-74/running-2-skype-instances-on-ubuntu-13-04-64bit-one-gets-blocked-4175482299/)

masavini 10-26-2013 06:39 PM

running 2 skype instances on ubuntu 13.04 64bit (one gets blocked)...
 
hi,

i run skype 4.2 on ubuntu 13.04 with 2 accounts.
they're launched with this commands:
Code:

echo user1 pwd1 | LD_PRELOAD=/usr/lib/i386-linux-gnu/mesa/libGL.so.1 skype --pipelogin --dbpath=~/.Skype1 &

echo user2 pwd2 | LD_PRELOAD=/usr/lib/i386-linux-gnu/mesa/libGL.so.1 skype --secondary --pipelogin --dbpath=~/.Skype2 &

the 2 instances run fine for some time (usually a few hours), but then one of them crashes and i have to kill it with:
Code:

killall -s SIGKILL skype
a "plain" killall skype won't be enough...

i tried and start both of them with --secondary option, but the problem still occurs.
i tried and launch them from command line to see if some errore message appears, but it does not...

i noticed that i usually find a crashed instance when i come back after a few hours vacation... please mind my system is set to never sleep or hibernate...

and i also noticed that the crashed instance usually has the "away" icon, while both my skype instances are set to never show me as away...

pid 4097 is blocked right now:
Code:

$ ps aux | grep -E "skype|START" | grep -v "grep"
USER      PID %CPU %MEM    VSZ  RSS TTY      STAT START  TIME COMMAND
teo      4097  1.5  1.7 549024 138720 ?      Sl  Oct26  13:11 skype --pipelogin --dbpath=~/.Skype1
teo      4849  2.3  1.7 550324 138668 ?      Sl  Oct26  20:35 skype --secondary --pipelogin --dbpath=~/.Skype2

the only weird thing i can say about the output above is that both the instances were launched about at the same time, at 13:11...

so the "survived" instance (4849) has wrong start time. the blocked instance has the proper one...

any hint on how to debug this?

Pearlseattle 10-27-2013 02:42 PM

Hi


I think that everybody here will be clueless without some more informations.
Maybe you can keep an eye on
1) what gets written to /var/log/messages (or wherever your "dmesg" output is written) and
2) start the two instances using two separate active terminals which might then show interesting stuff when one of the instance fails like failure messages or something similar?


Cheers

masavini 10-27-2013 04:13 PM

ok, thanks... i'll try and post more details... thanks!

masavini 10-28-2013 06:41 AM

interesting:

Code:

$ echo usr pwd | skype --secondary --pipelogin --dbpath=~/.Skype
Gtk-Message: Failed to load module "overlay-scrollbar"
`menu_proxy_module_load': skype: undefined symbol: menu_proxy_module_load

(skype:6964): Gtk-WARNING **: Failed to load type module: (null)

`menu_proxy_module_load': skype: undefined symbol: menu_proxy_module_load

(skype:6964): Gtk-WARNING **: Failed to load type module: (null)

`menu_proxy_module_load': skype: undefined symbol: menu_proxy_module_load

(skype:6964): Gtk-WARNING **: Failed to load type module: (null)

`menu_proxy_module_load': skype: undefined symbol: menu_proxy_module_load

(skype:6964): Gtk-WARNING **: Failed to load type module: (null)

*** Error in `skype': malloc(): memory corruption (fast): 0xf99d949a ***

i guess skype got blocked when the last line appeared...

Pearlseattle 10-28-2013 01:50 PM

So maybe you upgraded your GTK-libraries and they do not provide anymore the functionality needed by Skype?

masavini 10-29-2013 03:48 PM

Quote:

Originally Posted by Pearlseattle (Post 5053881)
So maybe you upgraded your GTK-libraries and they do not provide anymore the functionality needed by Skype?

i don't really know... how can i check this?

Pearlseattle 10-29-2013 04:58 PM

By searching for the first error => google for "Gtk-Message: Failed to load module "overlay-scrollbar""

Have a look at this - there are a few workarounds mentioned:
https://bugs.launchpad.net/ubuntu/+s...r/+bug/1134202

Cheers

masavini 11-04-2013 05:39 PM

i gave up...
turned out with this code: it simply restarts skype as the log shows it's blocked:
Code:

cd /tmp

while :;do
        echo user pwd | skype --secondary --pipelogin --dbpath=~/.Skype &>skypelog &
       
        sleep 60
       
        while [[ -z $(grep "memory corruption" skypelog) ]]; do
                sleep 120
        done
       
        zenity --question --title="skype is blocked..." --text="kill and relaunch skype?"
        if (( $? < 1 )); then
                killall -s SIGKILL skype
        fi
       
done

thanks for your help...


All times are GMT -5. The time now is 08:52 AM.