# Exporting a note crashes bear and generates a zero byte file

**URL:** <https://community.bear.app/t/exporting-a-note-crashes-bear-and-generates-a-zero-byte-file/16629>\
**Category:** Bear Web\
**Created:** [May 8, 2025, 4:53am UTC](https://community.bear.app/t/exporting-a-note-crashes-bear-and-generates-a-zero-byte-file/16629 "2025-05-08T04:53:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![chawla](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@chawla](https://community.bear.app/u/chawla)\
**Post date:** [May 8, 2025, 4:53am UTC](https://community.bear.app/t/exporting-a-note-crashes-bear-and-generates-a-zero-byte-file/16629/1 "2025-05-08T04:53:14Z")

</div>

## **Operation system** : macOS **Web Browser** : haven’t been able to test anything on web because of the previous bug i filed

## Bug report

**What were you doing** :  
I noticed this after i was invited into web app testing group, so i am assuming it is related. I’ve tried to export a single note(which I had opened on the web) to a bunch of formats but every single, bear crashes and i end up with a zero byte file. I’ve tried it with PDF, markdown, bearnote, etc.  
**What feature did you use** :  
Exporting a note  
**What happened** :  
bear crashed and a zero byte file was created. I’ve attached macOS generated crash log.  
**What did you expect to happen** :  
my file would have been exported.  
[crash\_report.txt](https://community.bear.app/uploads/short-url/ejjN70PGpUuh2Hr6ONnWGy0uLxz.txt) (85.5 KB)

* * *

**Feedback:**

---

<div class="post-metadata">

**Author:** ![chawla](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@chawla](https://community.bear.app/u/chawla)\
**Post date:** [May 8, 2025, 4:53am UTC](https://community.bear.app/t/exporting-a-note-crashes-bear-and-generates-a-zero-byte-file/16629/2 "2025-05-08T04:53:58Z")

</div>

Forgot to add - I am able to export other notes, but not the ones I tried opening on the web.

---

<div class="post-metadata">

**Author:** ![HumbleBear](https://dub1.discourse-cdn.com/flex013/user_avatar/community.bear.app/humblebear/32/3730_2.png) [@HumbleBear](https://community.bear.app/u/HumbleBear)\
**Post date:** [May 8, 2025, 7:30am UTC](https://community.bear.app/t/exporting-a-note-crashes-bear-and-generates-a-zero-byte-file/16629/3 "2025-05-08T07:30:10Z")

</div>

So you open them via the web, then export via desktop and it crashes that?

---

<div class="post-metadata">

**Author:** ![bru](https://dub1.discourse-cdn.com/flex013/user_avatar/community.bear.app/bru/32/179_2.png) [@bru](https://community.bear.app/u/bru)\
**Post date:** [May 8, 2025, 4:07pm UTC](https://community.bear.app/t/exporting-a-note-crashes-bear-and-generates-a-zero-byte-file/16629/4 "2025-05-08T16:07:32Z")

</div>

Hi there, this is super interesting. We’ve never experienced this, but adding it to the high priority list of bugs to reproduce!

---

<div class="post-metadata">

**Author:** ![matteo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.bear.app/matteo/32/21_2.png) [@matteo](https://community.bear.app/u/matteo)\
**Post date:** [May 8, 2025, 4:22pm UTC](https://community.bear.app/t/exporting-a-note-crashes-bear-and-generates-a-zero-byte-file/16629/5 "2025-05-08T16:22:30Z")

</div>

> [@chawla](#):
>
> Forgot to add - I am able to export other notes, but not the ones I tried opening on the web.

Would you be open to share one of those note with us? Just copy/paste the text and send it via DM to me 🙂

Thanks.

---

<div class="post-metadata">

**Author:** ![chawla](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@chawla](https://community.bear.app/u/chawla)\
**Post date:** [May 8, 2025, 6:18pm UTC](https://community.bear.app/t/exporting-a-note-crashes-bear-and-generates-a-zero-byte-file/16629/6 "2025-05-08T18:18:01Z")

</div>

I tried to replicate again but noticed a few other things

1. Now i do not see the bug i reported in [Clicking on an existing note turns the note into a blank note - #8](https://community.bear.app/t/clicking-on-an-existing-note-turns-the-note-into-a-blank-note/16523/8).
2. I tried to open a few other notes on web and replicate the behavior but i dont see it happening with most of the notes but just one note.
3. I thought may be this note is too large, that’s why it is crashing but i was able to export larger notes (in terms of word count, character count) but not this one specific note.
4. @matteo I can DM the note to you, please let me know what format will be the most beneficial.

---

<div class="post-metadata">

**Author:** ![matteo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.bear.app/matteo/32/21_2.png) [@matteo](https://community.bear.app/u/matteo)\
**Post date:** [May 8, 2025, 6:25pm UTC](https://community.bear.app/t/exporting-a-note-crashes-bear-and-generates-a-zero-byte-file/16629/7 "2025-05-08T18:25:37Z")

</div>

Markdown is fine as a format, you can directly copy/paste the note into a text file. My guess is that there is a funky code block that Bear is not handling correctly.

---

<div class="post-metadata">

**Author:** ![chawla](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@chawla](https://community.bear.app/u/chawla)\
**Post date:** [May 8, 2025, 6:27pm UTC](https://community.bear.app/t/exporting-a-note-crashes-bear-and-generates-a-zero-byte-file/16629/8 "2025-05-08T18:27:31Z")

</div>

ohh probably. this one has lot of bash commands, sql scripts and other stuff! DM’ing you in a min
