# Crash when resizing window

**URL:** https://forums.ankiweb.net/t/crash-when-resizing-window/28774
**Category:** Beta Testing
**Created:** [March 22, 2023, 2:38pm UTC](https://forums.ankiweb.net/t/crash-when-resizing-window/28774 "2023-03-22T14:38:52Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![NameLessGO](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/namelessgo/32/34298_2.png) [@NameLessGO](https://forums.ankiweb.net/u/NameLessGO)
#### Post date: [March 22, 2023, 2:38pm UTC](https://forums.ankiweb.net/t/crash-when-resizing-window/28774/1 "2023-03-22T14:38:52Z")

</div>

Could someone replicate on m1

1. Start Anki (no add-ons)
2. Browser (no full screen)
3. Toggle full screen in browser

- If your anki is already full screen, opening browser won’t crash anki
- Beta 1 runs fine

```auto
Process: anki [1023]
Path: /Applications/Anki.app/Contents/MacOS/anki
Identifier: net.ankiweb.dtop
Version: 2.1.61 (???)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2023-03-22 11:40:29.3960 -0300
OS Version: macOS 13.2.1 (22D68)
Report Version: 12
Anonymous UUID: ED0D4ED6-8A41-F288-BA77-1620E9416546

Sleep/Wake UUID: 757D95D2-B3D8-4700-AC68-8A5DB075479D

Time Awake Since Boot: 730 seconds
Time Since Wake: 483 seconds

System Integrity Protection: enabled

Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008
Exception Codes: 0x0000000000000001, 0x0000000000000008

Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [1023]

VM Region Info: 0x8 is not in any region. Bytes before following region: 105553518919672
      REGION TYPE START - END [VSIZE] PRT/MAX SHRMOD REGION DETAIL
      UNUSED SPACE AT START
--->  
      MALLOC_NANO (reserved) 600018000000-600020000000 [128.0M] rw-/rwx SM=NUL ...(unallocated)

Kernel Triage:
VM - pmap_enter retried due to resource shortage

```

---

<div class="post-metadata">

### Author: ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)
#### Post date: [March 24, 2023, 7:49am UTC](https://forums.ankiweb.net/t/crash-when-resizing-window/28774/2 "2023-03-24T07:49:22Z")

</div>

@NameLessGO Whether or not the main window is in full screen, switching the browse window to full screen does not cause a crash on an M1 here. If you change the browser window size/location and close it, then try again, does it still crash?

---

<div class="post-metadata">

### Author: ![NameLessGO](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/namelessgo/32/34298_2.png) [@NameLessGO](https://forums.ankiweb.net/u/NameLessGO)
#### Post date: [March 24, 2023, 2:51pm UTC](https://forums.ankiweb.net/t/crash-when-resizing-window/28774/3 "2023-03-24T14:51:19Z")

</div>

- Changing the size of the browser (even when double-clicking the tab), using tile right or left, minimizing, moving the tab (anki or browser) to desktop 2 → Crash
- The crash does not happen when the user have one desktop (Desktop 1)
- Couldn’t replicate with a new profile
- This only happens in Beta 2

For now, the solution seems to be migrating profiles (exporting and importing decks): in case someone has this problem in the future or removing Desktop 2

![Source image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/2/296eb7fd9550976e782119ec9023d91cfbcb15b7.gif)

---

<div class="post-metadata">

### Author: ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)
#### Post date: [March 26, 2023, 5:40am UTC](https://forums.ankiweb.net/t/crash-when-resizing-window/28774/4 "2023-03-26T05:40:04Z")

</div>

Instead of export+import, please see if the reset window sizes button in the preferences resolves it.

---

<div class="post-metadata">

### Author: ![NameLessGO](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/namelessgo/32/34298_2.png) [@NameLessGO](https://forums.ankiweb.net/u/NameLessGO)
#### Post date: [March 26, 2023, 1:45pm UTC](https://forums.ankiweb.net/t/crash-when-resizing-window/28774/5 "2023-03-26T13:45:56Z")

</div>

Yeah, it fixed the issue

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)
#### Post date: [April 25, 2023, 1:46pm UTC](https://forums.ankiweb.net/t/crash-when-resizing-window/28774/6 "2023-04-25T13:46:53Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
