# Chapter 7 - Thread 1: EXC\_BAD\_ACCESS (code=1, address=0x1c)

**URL:** <https://forums.kodeco.com/t/chapter-7-thread-1-exc-bad-access-code-1-address-0x1c/109754>\
**Category:** Catalyst by Tutorials\
**Created:** [May 21, 2020, 2:22pm UTC](https://forums.kodeco.com/t/chapter-7-thread-1-exc-bad-access-code-1-address-0x1c/109754 "2020-05-21T14:22:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![prodamere](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/prodamere/32/105896_2.png) [@prodamere](https://forums.kodeco.com/u/prodamere)\
**Post date:** [May 21, 2020, 2:22pm UTC](https://forums.kodeco.com/t/chapter-7-thread-1-exc-bad-access-code-1-address-0x1c/109754/1 "2020-05-21T14:22:25Z")

</div>

When implementing the ‘Show Entry With Light Background’ setting, I get the following error:

I run the app and then open settings to switch on ‘Show Entry With Light Background’, I then re-open the app and it crashes in AppDelegate: Thread 1: EXC\_BAD\_ACCESS (code=1, address=0x1c).

This happens not only on my app, but also with the Chapter 7 Final project.

Does anyone know what’s wrong?

Thanks

---

<div class="post-metadata">

**Author:** ![prodamere](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/prodamere/32/105896_2.png) [@prodamere](https://forums.kodeco.com/u/prodamere)\
**Post date:** [May 22, 2020, 10:38am UTC](https://forums.kodeco.com/t/chapter-7-thread-1-exc-bad-access-code-1-address-0x1c/109754/2 "2020-05-22T10:38:49Z")

</div>

Update:

I also get this bug when building on mac (currently working on the chapter 11 project). It can be reproduced as following:

1. Build and run
2. Close the Journalyst app using the red x button
3. Attempt to re-open the app from the taskbar
4. App crashes

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [July 7, 2020, 2:42am UTC](https://forums.kodeco.com/t/chapter-7-thread-1-exc-bad-access-code-1-address-0x1c/109754/3 "2020-07-07T02:42:17Z")

</div>

@macandyp Can you please help with this when you get a chance? Thank you - much appreciated! :]

---

<div class="post-metadata">

**Author:** ![macandyp](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/macandyp/32/108930_2.png) [@macandyp](https://forums.kodeco.com/u/macandyp)\
**Post date:** [July 7, 2020, 6:18pm UTC](https://forums.kodeco.com/t/chapter-7-thread-1-exc-bad-access-code-1-address-0x1c/109754/4 "2020-07-07T18:18:25Z")

</div>

Hey, what version of everything are you running (macOS/Xcode)? I’m not able to reproduce the crash, but I do see a bunch of stuff spit out in the debugger when following your steps. Seems like there’s something going on behind the scenes that doesn’t like something about reopening the window is (at least partially) handled on a background thread. I don’t have a lot of info at the moment, but it is related to some AppKit code, which makes me initially believe it is a catalyst problem. Are you able to get the crash log?

---

<div class="post-metadata">

**Author:** ![prodamere](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/prodamere/32/105896_2.png) [@prodamere](https://forums.kodeco.com/u/prodamere)\
**Post date:** [July 17, 2020, 6:22pm UTC](https://forums.kodeco.com/t/chapter-7-thread-1-exc-bad-access-code-1-address-0x1c/109754/5 "2020-07-17T18:22:55Z")

</div>

I can’t seem to reproduce it anymore, so I have no idea what happened! If it occurs again I’ll make another post. Thank you for trying to help, much appreciated.

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [April 4, 2021, 2:02am UTC](https://forums.kodeco.com/t/chapter-7-thread-1-exc-bad-access-code-1-address-0x1c/109754/6 "2021-04-04T02:02:23Z")

</div>

@prodamere Do you still have issues with this?
