KiCad 8.0.4-rc2 crash when scrolling on macOS
<!-- --------Before Creating a New Issue-----------
* Limit report to a single issue.
* Search the issue tracker to verify the issue has not already been reported.
* Complete all instructions between `template comment markers <>.
* Keep report contents limited to the necessary information required to fix the issue.
* When creating an issue against the stable version of KiCad, make sure the latest available stable version is installed as issues may have already been resolved in later stable versions. -->
# Description
<details><summary>Click to expand crash log</summary>
<pre>
Process: kicad [92729]
Path: /Volumes/VOLUME/*/KiCad.app/Contents/MacOS/kicad
Identifier: org.kicad.kicad
Version: 8.0.4-rc2 (8.0.4-rc2)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2024-07-02 16:07:59.6104 +0800
OS Version: macOS 14.3.1 (23D60)
Report Version: 12
Anonymous UUID: D069BFF2-D397-49C9-0299-CF27DFF6461E
Sleep/Wake UUID: B7341096-D06C-4744-9E97-3DDF4A6A8D9C
Time Awake Since Boot: 1300000 seconds
Time Since Wake: 15184 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000ffff8341
Exception Codes: 0x0000000000000001, 0x00000000ffff8341
Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [92729]
VM Region Info: 0xffff8341 is not in any region. Bytes before following region: 76102847
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 10488c000-104c08000 [ 3568K] r-x/r-x SM=COW ...s/MacOS/kicad
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libdispatch.dylib 0x1858737c0 _dispatch_source_handler_dispose + 20
1 libdispatch.dylib 0x185871f40 _dispatch_source_set_handler + 428
2 CoreFoundation 0x185aea198 __CFRunLoopRun + 516
3 CoreFoundation 0x185ae993c CFRunLoopRunSpecific + 608
4 Foundation 0x186bf5998 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
5 libwx_osx_cocoau-3.2.0.2.3.dylib 0x107e99a2c wxGUIEventLoop::DoDispatchTimeout(unsigned long) + 148
6 libwx_osx_cocoau-3.2.0.2.3.dylib 0x107d9e434 wxCFEventLoop::DispatchTimeout(unsigned long) + 44
7 libwx_osx_cocoau-3.2.0.2.3.dylib 0x107d9e630 wxCFEventLoop::OSXDoRun() + 288
8 libwx_osx_cocoau-3.2.0.2.3.dylib 0x107e99fb8 wxModalEventLoop::OSXDoRun() + 88
9 libwx_osx_cocoau-3.2.0.2.3.dylib 0x107d9e75c wxCFEventLoop::DoRun() + 40
10 libwx_osx_cocoau-3.2.0.2.3.dylib 0x107cfcf44 wxEventLoopBase::Run() + 200
11 libwx_osx_cocoau-3.2.0.2.3.dylib 0x107df8b48 wxDialog::ShowModal() + 100
12 kicad 0x104a17614 COMMON_CONTROL::ConfigurePaths(TOOL_EVENT const&) + 300
13 kicad 0x104a375c8 COROUTINE<int, TOOL_EVENT const&>::callerStub(long) + 60
14 kicad 0x104b50d20 make_fcontext + 28
</pre>
</details>
# Steps to reproduce
<!-- If there are multiple steps to reproduce it or it is a visual issue, then providing a screen recording as an attachment to this report is recommended. -->
<!-- If this issue is specific to a project, please attach the necessary files to this issue. -->
<!-- Add the steps to reproduce using the numbers below -->
<!-- Add new step numbers before the "KiCad Version" heading. -->
1. Open Preferences->Configure paths...
2. Try to scroll down
3. Crash
# KiCad Version
<!-- Copy version information (from main menu Help->About KiCad ->Copy Version Info) and paste it between the triple backticks below to preserve the formatting. -->
```
Application: KiCad arm64 on arm64
Version: 8.0.4-rc2, release build
Libraries:
wxWidgets 3.2.5
FreeType 2.13.2
HarfBuzz 8.3.0
FontConfig 2.15.0
libcurl/8.4.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.58.0
Platform: macOS Sonoma Version 14.3.1 (Build 23D60), 64 bit, Little endian, wxMac
Build Info:
Date: Jul 2 2024 05:37:27
wxWidgets: 3.2.5 (wchar_t,wx containers)
Boost: 1.84.0
OCC: 7.7.2
Curl: 7.87.0
ngspice: 42
Compiler: Clang 14.0.3 with C++ ABI 1002
Build settings:
```
issue