notes icon indicating copy to clipboard operation
notes copied to clipboard

setTheme method causes a segfault (MacOS)

Open Frityet opened this issue 3 years ago • 3 comments

I was trying to add automatic theme detection (based off your system theme) and discovered that calling the setTheme method causes a segmentation fault. I am using MacOS Monterey, and am using the latest version (dev)

Frityet avatar Sep 16 '22 19:09 Frityet

Upon further inspection

2022-09-16 12:49:32.775364-0700 Notes[28692:1727512] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=28692
2022-09-16 12:49:32.775494-0700 Notes[28692:1727512] SecTaskCopyDebugDescription: Notes[28692]/0#-1 LF=0
2022-09-16 12:49:33.541333-0700 Notes[28692:1727512] [qt.qpa.fonts] Populating font family aliases took 184 ms. Replace uses of missing font family "SF Pro Text" with one that exists to avoid this cost.
2022-09-16 12:49:33.542071-0700 Notes[28692:1727512] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=28692
2022-09-16 12:49:33.542162-0700 Notes[28692:1727512] SecTaskCopyDebugDescription: Notes[28692]/0#-1 LF=0
2022-09-16 12:49:33.689429-0700 Notes[28692:1727512] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=28692
2022-09-16 12:49:33.689535-0700 Notes[28692:1727512] SecTaskCopyDebugDescription: Notes[28692]/0#-1 LF=0
Exception: EXC_BAD_ACCESS (code=1, address=0x10)

Null pointer dereference? I can't generate debug symbols so I can't isolate it easily.

Frityet avatar Sep 16 '22 20:09 Frityet

Hello, can I get an example of your code? Currently I can not reproduce it with my code

diepdtnse03145 avatar Oct 10 '22 11:10 diepdtnse03145

Hello, can I get an example of your code? Currently I can not reproduce it with my code

Getting my macbook fixed, will respond once done

Frityet avatar Oct 12 '22 06:10 Frityet

@Frityet Hey, let me know if you can reproduce this segfault again, please.

nuttyartist avatar Nov 07 '22 10:11 nuttyartist

Fixed (sorry looking through old issues I made)

Frityet avatar Jan 05 '23 01:01 Frityet