# How can I find the error log after a crash?

**URL:** https://discourse.slicer.org/t/how-can-i-find-the-error-log-after-a-crash/24389
**Category:** Support
**Tags:** error
**Created:** [July 19, 2022, 10:23am UTC](https://discourse.slicer.org/t/how-can-i-find-the-error-log-after-a-crash/24389 "2022-07-19T10:23:42Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![wrc](https://avatars.discourse-cdn.com/v4/letter/w/6de8d8/32.png) [@wrc](https://discourse.slicer.org/u/wrc)
#### Post date: [July 19, 2022, 10:23am UTC](https://discourse.slicer.org/t/how-can-i-find-the-error-log-after-a-crash/24389/1 "2022-07-19T10:23:42Z")

</div>

Hi, I am developing an extension based on ParrallelProcessing. It works well in most cases but fails sometimes. The 3D Slicer window closes automatically during calculation. So I cannot find the log on view-error log. Does 3D Slicer save logs in any folder? I would like to know the path on both Windows and MacOS.

---

<div class="post-metadata">

### Author: ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)
#### Post date: [July 19, 2022, 3:20pm UTC](https://discourse.slicer.org/t/how-can-i-find-the-error-log-after-a-crash/24389/2 "2022-07-19T15:20:03Z")

</div>

You can find past logs in the menu `Help / Report a bug`

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [July 19, 2022, 4:36pm UTC](https://discourse.slicer.org/t/how-can-i-find-the-error-log-after-a-crash/24389/3 "2022-07-19T16:36:32Z")

</div>

It’s possible that some error or log messages from subprocesses launched by ParallelProcesses are not logged. If you think that’s happening maybe you can design a test case based on your experience and we can add proper logging to the extension.

---

<div class="post-metadata">

### Author: ![wrc](https://avatars.discourse-cdn.com/v4/letter/w/6de8d8/32.png) [@wrc](https://discourse.slicer.org/u/wrc)
#### Post date: [July 21, 2022, 12:56am UTC](https://discourse.slicer.org/t/how-can-i-find-the-error-log-after-a-crash/24389/4 "2022-07-21T00:56:22Z")

</div>

Thank you for your reply. I found the error may come from:  
`self.start("PythonSlicer", [self.scriptPath,])` in `Process.run()`

Now I want to check is there any wrong in my parallel script. However, 3D Slicer cannot show any log in the parallel script. Also, file output like numpy.savetxt is not allowed. Do you know how to show log in the parallel script?

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [July 21, 2022, 9:27am UTC](https://discourse.slicer.org/t/how-can-i-find-the-error-log-after-a-crash/24389/5 "2022-07-21T09:27:38Z")

</div>

> [@wrc](#):
>
> Also, file output like numpy.savetxt is not allowed. Do you know how to show log in the parallel script?

We don’t do anything that would interfere with numpy, so `numpy.savetxt` should work well. What errors do you get?

I’ve submitted a [pull request](https://github.com/pieper/SlicerParallelProcessing/pull/11) that makes the captures the log of the background process and adds it to the application log, which should help with finding any errors.
