Skip to content

All electron apps crashing in WSL with 'pthread_mutex_unlock(&m->mutex) == 0' failed #13561

Closed

Description

@abalter

Issue

I'm learning to build electron apps with a Udemy course. I'm working in a WSL Ubuntu environment. I was using Atom as my code editor. All was working well until I accidentally opened my Windows version of Atom. I closed it again, and now ALL electron-based apps I try in my WSL environment fail with

Assertion 'pthread_mutex_unlock(&m->mutex) == 0' failed at pulsecore/mutex-posix.c:108, function pa_mutex_unlock(). Aborting.

I tried removing and doing clean installs of node and npm, as well as Atom.

Example:

balter@spectre:~$ git clone https://github.com/electron/electron-quick-start.git
Cloning into 'electron-quick-start'...
remote: Counting objects: 289, done.
remote: Total 289 (delta 0), reused 0 (delta 0), pack-reused 289
Receiving objects: 100% (289/289), 59.89 KiB | 0 bytes/s, done.
Resolving deltas: 100% (133/133), done.
Checking connectivity... done.
balter@spectre:~$ cd electron-quick-start/
balter@spectre:~/electron-quick-start$ npm install

> [email protected] postinstall /home/balter/electron-quick-start/node_modules/electron
> node install.js

added 153 packages in 4.194s
balter@spectre:~/electron-quick-start$ npm start

> [email protected] start /home/balter/electron-quick-start
> electron .

Assertion 'pthread_mutex_unlock(&m->mutex) == 0' failed at pulsecore/mutex-posix.c:108, function pa_mutex_unlock(). Aborting.

System Info

balter@spectre:~$ node --version
v8.11.3
balter@spectre:~$ which node
/home/balter/.nvm/versions/node/v8.11.3/bin/node
balter@spectre:~$ npm --version
5.6.0
balter@spectre:~$ which npm
/home/balter/.nvm/versions/node/v8.11.3/bin/npm
balter@spectre:~$ uname -a
Linux spectre 4.4.0-17134-Microsoft #112-Microsoft Thu Jun 07 22:57:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux
balter@spectre:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.4 LTS
Release:        16.04
Codename:       xenial

Activity

  1. welcome commented on Jul 4, 2018

    @welcome

    👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

    To help make it easier for us to investigate your issue, please follow the contributing guidelines.

  2. abalter commented on Jul 5, 2018

    @abalter
    Author

    I updated and fixed the issue. See #13566

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions