Subject: Re: bug#38748: 28.0.50; crash on MacOS 10.15.2

From: Pip Cet <[email-masked]>
Date: Sat, 11 Jan 2020 19:14:38 +0000

On Sat, Jan 11, 2020 at 6:37 PM Pieter van Oostrum
<[email-masked]> wrote:
> I compiled HEAD with this patch applied, and it still crashed but with the other crash cause (in Fmouse_pixel_position).

Do you have a backtrace? I think it's a NULL pointer reference now.
The attached patch might help.
diff --git a/src/nsterm.m b/src/nsterm.m
index 57573ef8d7..5aa170258e 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -2532,7 +2532,7 @@ so some key presses (TAB) are swallowed by the system.  */
       && FRAME_LIVE_P (dpyinfo->last_mouse_frame))
     f = dpyinfo->last_mouse_frame;
 
-  if (f && FRAME_NS_P (f))
+  if (f && FRAME_NS_P (f) && FRAME_OUTPUT_DATA (f))
     {
       view = FRAME_NS_VIEW (f);