# Crashing a lot after updates

**URL:** https://discourse.processing.org/t/crashing-a-lot-after-updates/702
**Category:** Coding Questions
**Created:** [June 4, 2018, 3:33am UTC](https://discourse.processing.org/t/crashing-a-lot-after-updates/702 "2018-06-04T03:33:16Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![barryalen1992](https://avatars.discourse-cdn.com/v4/letter/b/9de0a6/32.png) [@barryalen1992](https://discourse.processing.org/u/barryalen1992)
#### Post date: [June 4, 2018, 3:33am UTC](https://discourse.processing.org/t/crashing-a-lot-after-updates/702/1 "2018-06-04T03:33:17Z")

</div>

After recent Windows 10 updates all of my coding crashes instantly when I opened them. What is happening with those updates. Does anyone suffer the same problem? Help me please!

---

<div class="post-metadata">

### Author: ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)
#### Post date: [June 4, 2018, 5:33am UTC](https://discourse.processing.org/t/crashing-a-lot-after-updates/702/2 "2018-06-04T05:33:46Z")

</div>

> [@barryalen1992](#):
>
> my coding crashes instantly when I opened them

Can you describe your crash please? It opens and shows some error message? Or is it when your ran you code?

Kf

---

<div class="post-metadata">

### Author: ![albact7](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/albact7/32/336_2.png) [@albact7](https://discourse.processing.org/u/albact7)
#### Post date: [June 4, 2018, 4:00pm UTC](https://discourse.processing.org/t/crashing-a-lot-after-updates/702/3 "2018-06-04T16:00:09Z")

</div>

Hello, I have simmilar problems I didn’t have last time I worked with Processing (some months ago) running the same projects. I assumed it all came from new Windows updates.  
When running the example code here: [https://processing.org/reference/libraries/video/Capture.html](https://processing.org/reference/libraries/video/Capture.html)

I get this error:  
Could not run the sketch (Target VM failed to initialize).  
For more information, read revisions.txt and Help ? Troubleshooting.

And when running my own project, I get these:

(java.exe:1164): GStreamer-CRITICAL \*\*:  
Trying to dispose element rgb, but it is in PAUSED instead of the NULL state.  
You need to explicitly set elements to the NULL state before  
dropping the final reference, to allow them to clean up.  
This problem may also be caused by a refcounting bug in the  
application or some element.

(java.exe:1164): GStreamer-CRITICAL \*\*:  
Trying to dispose element Video Capture, but it is in PAUSED instead of the NULL state.  
You need to explicitly set elements to the NULL state before  
dropping the final reference, to allow them to clean up.  
This problem may also be caused by a refcounting bug in the  
application or some element.

I couldn’t display any image from the webcam in any of the cases.  
Thank you in advance.  
Regards,  
albact7

---

<div class="post-metadata">

### Author: ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)
#### Post date: [June 5, 2018, 7:52am UTC](https://discourse.processing.org/t/crashing-a-lot-after-updates/702/4 "2018-06-05T07:52:10Z")

</div>

@barryalen1992 You should consider checking prev post in the older forum. Try removing and installing the Processing library (Back up your Processing resources first). You need to remove the preferences file as well and see if that fixes the problem. If it doesn’t, I would advise creating an issue in the github page of the Processing foundation.

@albact7 Do you experience your problems only with files that access the Capture class? Can you try testing with other simpler files? The idea is to figure out if it is the core library or if it is just related to video resources. Don’t forget to describe your OS and provide an mcve.

Kf

---

<div class="post-metadata">

### Author: ![albact7](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/albact7/32/336_2.png) [@albact7](https://discourse.processing.org/u/albact7)
#### Post date: [June 13, 2018, 11:19am UTC](https://discourse.processing.org/t/crashing-a-lot-after-updates/702/5 "2018-06-13T11:19:14Z")

</div>

> [@kfrajer](#):
>
> mcve

In the example: [https://processing.org/reference/libraries/video/Capture.html](https://processing.org/reference/libraries/video/Capture.html)  
This is the line when crashes:  
String cameras = Capture.list();

And in my project:

Capture video;  
video = new Capture(this, 640, 480);  
video.start(); //crashes here

I still get the same errors as in previous post. I have tested with other simpler files without Capture class and they work without problem.

My OS:  
Windows 10 Home  
Version: 1803  
OS version: 17134.81

Regards,  
albact7
