Qtox: Memory leak on Linux

Created on 23 Jun 2017  Â·  7Comments  Â·  Source: qTox/qTox

Brief Description

OS: Arch Linux (updated 22-Jun-2017)
qTox version: latest git
Commit hash: 8b6d3a19efd12d66ca69b5c57647c536ef910365
toxcore: 1:0.1.9-3 (stable Arch package)
Qt: 5.9.0
Hardware: Linux x86_64 + Nvidia property driver
…

Reproducible: Sometimes

Steps to reproduce
  1. Launch qTox and sign in
  2. Go to the settings a flip through a few tabs
  3. Click on the call button a few times (even if it does nothing)
Observed Behavior

The memory usage of the program skyrockets

Expected Behavior

The memory usage of the program should stay more or less the same

Additional Info

qtox.log.gz

C-bug upstream

Most helpful comment

@yurivict
Already fixed upstream in OpenAL . It will be included in 1.18.1 . Might as well close since this isn't a qTox issue.

All 7 comments

I'm willing to bet this is a Toxcore bug, since it happens in the Toxic client as well. Either that or its in Pulseaudio or whatever. In Toxic, all you need to do is get a sound to play, and it crashes and leaks memory.

Running it in GDB and LLDB suggests something about __lll_lock_wait() but I don't know if that's relevant.

You can build qTox with debug info, and use google perftools to find what loses memory: http://goog-perftools.sourceforge.net/doc/heap_profiler.html

This seems to be caused by audio output devices. You can avoid this in the meantime by setting
audioOutDevEnabled=false
in qtox.ini

I've narrowed this down to OpenAL 1.18 - Downgrading to 1.17 fixes the memory leak in qTox and other clients. Is this something handled in each client or in toxcore?

Looks like you should report it to OpenAL then.

@yurivict
Already fixed upstream in OpenAL . It will be included in 1.18.1 . Might as well close since this isn't a qTox issue.

You can close this bug then.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  Â·  3Comments

tox-user picture tox-user  Â·  4Comments

ovalseven8 picture ovalseven8  Â·  4Comments

Tcll picture Tcll  Â·  3Comments

Hasshu picture Hasshu  Â·  5Comments