# Crash at startup (Win10, v.3.1.2)

**URL:** <https://discourse.psychopy.org/t/crash-at-startup-win10-v-3-1-2/7849>\
**Category:** Other\
**Created:** [May 20, 2019, 4:31pm UTC](https://discourse.psychopy.org/t/crash-at-startup-win10-v-3-1-2/7849 "2019-05-20T16:31:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_LK](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/andrew_lk/32/4875_2.png) [@Andrew\_LK](https://discourse.psychopy.org/u/Andrew_LK)\
**Post date:** [May 20, 2019, 4:31pm UTC](https://discourse.psychopy.org/t/crash-at-startup-win10-v-3-1-2/7849/1 "2019-05-20T16:31:17Z")

</div>

Thanks for any help, in advance!

PsychoPy 3.1.2 (and 3.1.1, both 64 and 32-bit versions have been attempted) are both crashing immediately after I launch PsychoPy and the builder window opens. I am getting the following error with 3.1.1:

Program: C:\Program Files (x86)\PsychoPy3\python.exe  
File: src/hostapi/wdmks/pa\_win\_wdmks.c, Line 1061

Expression: FALSE

I’m not sure what the most useful system info is, but I am running Windows 10 home 64-bit (v.1809) on a Dell XPS 9550 from 2015.

Any help with getting PsychoPy to run on my machine would be supremely appreciated! Thanks!

---

<div class="post-metadata">

**Author:** ![Andrew\_LK](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/andrew_lk/32/4875_2.png) [@Andrew\_LK](https://discourse.psychopy.org/u/Andrew_LK)\
**Post date:** [May 21, 2019, 7:29pm UTC](https://discourse.psychopy.org/t/crash-at-startup-win10-v-3-1-2/7849/2 "2019-05-21T19:29:37Z")

</div>

It looks like it might be an issue with a portaudio .dll but I don’t now how to download new versions of this. I’ve tried updating all my drivers and trying instead a standard windows HD audio driver instead of the Realtek HD audio driver but the issue remains the same.

A couple of websites that mention the issue but after trying everything I understand about what they say might help, I still have an issue. Perhaps they will make more sense to someone with better technical knowledge than me:  
[https://portaudio.music.columbia.narkive.com/ERiN2By4/assertion-failed-false-file-src-hostapi-wdmks-pa-win-wdmks-c-line-1054](https://portaudio.music.columbia.narkive.com/ERiN2By4/assertion-failed-false-file-src-hostapi-wdmks-pa-win-wdmks-c-line-1054)

> **[pyxelが「Assertion\` failed!」エラーで動作しない｜teratail](https://teratail.com/questions/163729)**
>
> pip install pyxelにてpyxelをインストールし、サンプルプログラムを起動した際以下エラーで起動ができませんでした。インストール時にエラーはありませんでした。 エラーメッセージAssertion\` failed!Program: C:\\Program Files\\Python37\\

> <https://github.com/spatialaudio/python-sounddevice/issues/7>
>
> I tried \`pip install sounddevice\` then importing it, on 64 bit windows with 64 b…it python - and it wasn't happy..
> 
> \`\`\`
> C:\\Users\\stu\\Desktop\\planar\>python
> Python 2.7.10rc1 (default, May 10 2015, 18:50:04) \[MSC v.1500 64 bit (AMD64)\] on win32
> Type "help", "copyright", "credits" or "license" for more information.
> \>\>\> import sounddevice
> Assertion failed!
> 
> Program: C:\\Python27\\python.exe
> File: src/hostapi/wdmks/pa\_win\_wdmks.c, Line 1035
> 
> Expression: FALSE
> 
> This application has requested the Runtime to terminate it in an unusual way.
> Please contact the application's support team for more information.
> 
> \`\`\`

> **[MuseScore 3 cannot start with WDM-KS audio devices installed.](https://musescore.org/en/node/281406)**
>
> MuseScore3 do not start with a soundcard or an audio interface connected. MuseScore3 can only start with a -s command line option, or with PortAudio disabled…

Thanks

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [May 27, 2019, 10:07am UTC](https://discourse.psychopy.org/t/crash-at-startup-win10-v-3-1-2/7849/3 "2019-05-27T10:07:50Z")

</div>

Hi @Andrew_LK, did you take a look at the GitHub issue?

> <https://github.com/psychopy/psychopy/issues/2476#issuecomment-496034441>
>
> PsychoPy 3.1.2 (and 3.1.1, both 64 and 32-bit versions have been attempted) are …both crashing immediately after I launch PsychoPy and the builder window opens. I am getting the following error with 3.1.1:
> 
> Program: C:\\Program Files (x86)\\PsychoPy3\\python.exe
> File: src/hostapi/wdmks/pa\_win\_wdmks.c, Line 1061
> 
> Expression: FALSE
> 
> I’m not sure what the most useful system info is, but I am running Windows 10 home 64-bit (v.1809) on a Dell XPS 9550 from 2015. I believe this is an issue with portaudio but I can't seem to get around it by updating my sound driver or changing it to a default Windows one. 
> 
> Any help with getting PsychoPy to run on my machine would be supremely appreciated! Thanks!

---

<div class="post-metadata">

**Author:** ![Andrew\_LK](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/andrew_lk/32/4875_2.png) [@Andrew\_LK](https://discourse.psychopy.org/u/Andrew_LK)\
**Post date:** [May 27, 2019, 1:33pm UTC](https://discourse.psychopy.org/t/crash-at-startup-win10-v-3-1-2/7849/4 "2019-05-27T13:33:29Z")

</div>

That was me over at GitHub. The suggestion made there by mirh to replace a portaudio dll from a resource he/she provided worked magically, once I figured out how to do it! For the solution see that thread.
