# URLConnectionStateBase crashing on OS X 10.9

**URL:** <https://forum.juce.com/t/urlconnectionstatebase-crashing-on-os-x-10-9/49365>\
**Category:** General JUCE discussion\
**Created:** [December 21, 2021, 11:20pm UTC](https://forum.juce.com/t/urlconnectionstatebase-crashing-on-os-x-10-9/49365 "2021-12-21T23:20:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![audiothing](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/audiothing/32/8906_2.png) [@audiothing](https://forum.juce.com/u/audiothing)\
**Post date:** [December 21, 2021, 11:20pm UTC](https://forum.juce.com/t/urlconnectionstatebase-crashing-on-os-x-10-9/49365/1 "2021-12-21T23:20:52Z")

</div>

URLConnectionStateBase is crashing on OS X 10.9.  
I’m using something like this:  
`auto input = authURL.createInputStream (URL::InputStreamOptions (URL::ParameterHandling::inPostData));`

I’m not sure when this started but I have a bunch of old plugins (built several months ago) that are not crashing, although the connection to the server can’t be established. I guess it’s related to this: [URL connects not working on OS X 10.9.5?](https://forum.juce.com/t/url-connects-not-working-on-os-x-10-9-5/41585)

Yet, it would be nice to avoid the crash and just return an error to the user.

This is the stack trace:

```auto
0 com.AudioThing.GongAmp 0x0000000107b51acc juce::URLConnectionStateBase::getErrorCode() const + 12
1 com.AudioThing.GongAmp 0x0000000107b1296f juce::WebInputStream::Pimpl::connect(juce::WebInputStream::Listener*, int) + 335
2 com.AudioThing.GongAmp 0x0000000107b0b326 juce::WebInputStream::connect(juce::WebInputStream::Listener*) + 86
3 com.AudioThing.GongAmp 0x0000000107b0f0f4 juce::URL::createInputStream(juce::URL::InputStreamOptions const&) const + 276``
```

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [December 22, 2021, 10:14am UTC](https://forum.juce.com/t/urlconnectionstatebase-crashing-on-os-x-10-9/49365/2 "2021-12-22T10:14:27Z")

</div>

Thanks for reporting! This looks like a bug that was introduced with the changes in [7d1918b3](https://github.com/juce-framework/JUCE/commit/7d1918b3).

I’ve pushed a fix to `develop` here:

> <https://github.com/juce-framework/JUCE/commit/96383fb50469ec9dabe6604173acb54325112cd5>

Please let me know if you are still seeing the crash after this commit.

---

<div class="post-metadata">

**Author:** ![audiothing](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/audiothing/32/8906_2.png) [@audiothing](https://forum.juce.com/u/audiothing)\
**Post date:** [December 22, 2021, 11:07am UTC](https://forum.juce.com/t/urlconnectionstatebase-crashing-on-os-x-10-9/49365/3 "2021-12-22T11:07:32Z")

</div>

Thanks for the super quick fix. It works now.
