Skip to content

another freeze on plot(1:10)

5 messages · John Fox, Simon Urbanek, Richard M. Heiberger

#
Hi Rich,

I imagine that there are other people who will make more sense out of 
the crash report than I, but one thing that I noticed immediately was 
that you're using R from Emacs.

I've been using R 4.2.x arm64 builds extensively on two up-to-date Macs, 
a MacBook Pro and a Mac Studio desktop, both with M1 chips. I use both 
RStudio and the R.app GUI. I haven't observed anything like the problem 
you're experiencing.

Does the problem occur when you're not using Emacs?

I hope this is of some help,
  John
On 2022-08-11 8:10 p.m., Richard M. Heiberger wrote:
#
Dear John,
Yes, that is an important question.
It occurs both from the R app and from the terminal as well as from emacs.

The issue is very specifically the default graphics device, either by specification quartz() or by just drawing something.
Two months ago, it was because the Mac fonts got damaged.  I reset them and all was well.
This time the crash report doesn?t show the fonts problem, but the font checking app is again not working correctly.
The progress bar stops at 1% and never moves.  This time I attempted to repair the fonts.  The repair tool
said the fonts are ok and that it didn?t do anything.

Rich
From: John Fox <jfox at mcmaster.ca>
Date: Thursday, August 11, 2022 at 22:10
To: Richard M. Heiberger <rmh at temple.edu>
Cc: R list <r-sig-mac at r-project.org>
Subject: [External] Re: [R-SIG-Mac] another freeze on plot(1:10)
Hi Rich,

I imagine that there are other people who will make more sense out of
the crash report than I, but one thing that I noticed immediately was
that you're using R from Emacs.

I've been using R 4.2.x arm64 builds extensively on two up-to-date Macs,
a MacBook Pro and a Mac Studio desktop, both with M1 chips. I use both
RStudio and the R.app GUI. I haven't observed anything like the problem
you're experiencing.

Does the problem occur when you're not using Emacs?

I hope this is of some help,
  John
On 2022-08-11 8:10 p.m., Richard M. Heiberger wrote:
--
John Fox, Professor Emeritus
McMaster University
Hamilton, Ontario, Canada
web: https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsocialsciences.mcmaster.ca%2Fjfox%2F&amp;data=05%7C01%7Crmh%40temple.edu%7Ccd9996b47598454a25af08da7c07dcbc%7C716e81efb52244738e3110bd02ccf6e5%7C0%7C0%7C637958670489868438%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=2j85iMhwBCTegBloWldnTUv67cxiCzY0NBI9Yd21Bcw%3D&amp;reserved=0
#
Rich,

yes, it is a font issue again - the hang is in 

ATSFontFindFromName + 48 (ATS + 245484) [0x1c1dcceec] 1-12
FOLazyInitialize + 432 (ATS + 8288) [0x1c1d93060] 1-12
NewHookUpWithATSServer(unsigned char) + 468 (ATS + 10000) [0x1c1d93710] 1-12
RendezvousWithServer(char*) 

As you noticed, something is still messed up with your fonts, because Apple's font server in macOS is hanging (as you check tool does). Unfortunately I don't really see how to debug that remotely. You could move away ~/Library/Fonts to see if this is an issue with one of your user-installed fonts...

Cheers,
Simon
#
This is ~/Library
  drwxr-xr-x+   9 rmh  staff    288 Feb  5  2021 FontCollections
  drwxr-xr-x+   2 rmh  staff     64 Feb 24  2021 Fonts       ## empty
  drwxr-xr-x    2 rmh  staff     64 Apr 12  2014 Fonts (Removed) ## empty
  drwxr-xr-x    2 rmh  staff     64 May 21  2013 Fonts Disabled ## empty

  /Users/rmh/Library/FontCollections:
  total used in directory 56 available 1.3 TiB
  drwxr-xr-x+   9 rmh  staff   288 Feb  5  2021 .
  drwx------@ 121 rmh  staff  3872 May  1 23:39 ..
  -rw-r--r--    1 rmh  staff   957 Jun 21  2012 Fixed Width.collection
  -rw-r--r--    1 rmh  staff   872 Jun 21  2012 Fun.collection
  -rw-r--r--    1 rmh  staff   815 Jun 21  2012 Modern.collection
  -rw-r--r--    1 rmh  staff   856 Jun 21  2012 PDF.collection
  -rw-r--r--    1 rmh  staff  1055 Jun 21  2012 Traditional.collection
  -rw-r--r--    1 rmh  staff  1164 Jun 21  2012 Web.collection
  -rw-r--r--@   1 rmh  staff  1654 Feb  5  2021 com.apple.Recents.collection

It won?t let me rename FontCollections

Would it be useful to trace grDevices::quartz
and step through to see which of its lines causes the freeze?

Would starting with
quartz(family=?something not default?)   ## as discussed in ?quartz:Note
be likely to work?

Or type?


I am looking at root
/Library/Fonts (Removed):
  total used in directory 0 available 1.3 TiB
  drwxr-xr-x   5 root  wheel   160 Aug  8 19:03 .
  drwxr-xr-x  78 root  wheel  2496 Mar 25 15:15 ..
  drwxr-xr-x   7 root  wheel   224 Apr 12  2014 04-12-2014 21_55_16 EDT
  drwxr-xr-x   6 root  wheel   192 Jun  7 13:55 06-07-2022 13_55_21 EDT
  drwxr-xr-x   6 root  wheel   192 Aug  8 19:03 08-08-2022 19_03_37 EDT

I don?t know how to interpret those.  The Jun and August 2022 are last time and this time when
I attempted to use the Font Tool.  I don?t understand the 2014 item.  That is seven years before this machine was bulit.  I did have my first mac then and have no recall of having touched the font app with that machine.

Rich
From: Simon Urbanek <simon.urbanek at R-project.org>
Date: Thursday, August 11, 2022 at 23:10
To: Richard M. Heiberger <rmh at temple.edu>
Cc: John Fox <jfox at mcmaster.ca>, R list <r-sig-mac at r-project.org>
Subject: [External] Re: [R-SIG-Mac] [External] Re: another freeze on plot(1:10)
Rich,

yes, it is a font issue again - the hang is in

ATSFontFindFromName + 48 (ATS + 245484) [0x1c1dcceec] 1-12
FOLazyInitialize + 432 (ATS + 8288) [0x1c1d93060] 1-12
NewHookUpWithATSServer(unsigned char) + 468 (ATS + 10000) [0x1c1d93710] 1-12
RendezvousWithServer(char*)

As you noticed, something is still messed up with your fonts, because Apple's font server in macOS is hanging (as you check tool does). Unfortunately I don't really see how to debug that remotely. You could move away ~/Library/Fonts to see if this is an issue with one of your user-installed fonts...

Cheers,
Simon

  
  
#
I tried an alternative.
I logged into my alternate account (which I created a long time ago for just this type of problem)
quartz() works normally.
Font Book App validates all fonts normally.

The ~/Library/Fonts/ is empty
~/Library/FontCollections/ has 6 items
On my normal account it has 7 items (with com.apple.Recents.collection) being the extra.
The other two Font directories (Removed and Disabled) aren?t here in the alternate account.

I logged out and went back to my normal account.
Validating the fonts still freezes at 1% of the progress bar.
I renamed com.apple.Recents.collection to SomethingElse.com.apple.Recents.collection
And opened quartz()
and R locked up.

I closed R and reopened it again (after the renaming) and R still freezes.when I plot(1:10)

I also tried opening quartz(), then X11(), then I plotted on X(11) it worked normally,
Then I dev.set() back to the quartz. When I plot(1:10) it locks up.
So it is not the existence of the quartz device, it is the attempt to use it that causes the freeze.

Rich

From: R-SIG-Mac <r-sig-mac-bounces at r-project.org> on behalf of Richard M. Heiberger <rmh at temple.edu>
Date: Thursday, August 11, 2022 at 23:55
To: Simon Urbanek <simon.urbanek at R-project.org>
Cc: R list <r-sig-mac at r-project.org>
Subject: Re: [R-SIG-Mac] [External] Re: [External] Re: another freeze on plot(1:10)
This is ~/Library
  drwxr-xr-x+   9 rmh  staff    288 Feb  5  2021 FontCollections
  drwxr-xr-x+   2 rmh  staff     64 Feb 24  2021 Fonts       ## empty
  drwxr-xr-x    2 rmh  staff     64 Apr 12  2014 Fonts (Removed) ## empty
  drwxr-xr-x    2 rmh  staff     64 May 21  2013 Fonts Disabled ## empty

  /Users/rmh/Library/FontCollections:
  total used in directory 56 available 1.3 TiB
  drwxr-xr-x+   9 rmh  staff   288 Feb  5  2021 .
  drwx------@ 121 rmh  staff  3872 May  1 23:39 ..
  -rw-r--r--    1 rmh  staff   957 Jun 21  2012 Fixed Width.collection
  -rw-r--r--    1 rmh  staff   872 Jun 21  2012 Fun.collection
  -rw-r--r--    1 rmh  staff   815 Jun 21  2012 Modern.collection
  -rw-r--r--    1 rmh  staff   856 Jun 21  2012 PDF.collection
  -rw-r--r--    1 rmh  staff  1055 Jun 21  2012 Traditional.collection
  -rw-r--r--    1 rmh  staff  1164 Jun 21  2012 Web.collection
  -rw-r--r--@   1 rmh  staff  1654 Feb  5  2021 com.apple.Recents.collection

It won?t let me rename FontCollections

Would it be useful to trace grDevices::quartz
and step through to see which of its lines causes the freeze?

Would starting with
quartz(family=?something not default?)   ## as discussed in ?quartz:Note
be likely to work?

Or type?


I am looking at root
/Library/Fonts (Removed):
  total used in directory 0 available 1.3 TiB
  drwxr-xr-x   5 root  wheel   160 Aug  8 19:03 .
  drwxr-xr-x  78 root  wheel  2496 Mar 25 15:15 ..
  drwxr-xr-x   7 root  wheel   224 Apr 12  2014 04-12-2014 21_55_16 EDT
  drwxr-xr-x   6 root  wheel   192 Jun  7 13:55 06-07-2022 13_55_21 EDT
  drwxr-xr-x   6 root  wheel   192 Aug  8 19:03 08-08-2022 19_03_37 EDT

I don?t know how to interpret those.  The Jun and August 2022 are last time and this time when
I attempted to use the Font Tool.  I don?t understand the 2014 item.  That is seven years before this machine was bulit.  I did have my first mac then and have no recall of having touched the font app with that machine.

Rich
From: Simon Urbanek <simon.urbanek at R-project.org>
Date: Thursday, August 11, 2022 at 23:10
To: Richard M. Heiberger <rmh at temple.edu>
Cc: John Fox <jfox at mcmaster.ca>, R list <r-sig-mac at r-project.org>
Subject: [External] Re: [R-SIG-Mac] [External] Re: another freeze on plot(1:10)
Rich,

yes, it is a font issue again - the hang is in

ATSFontFindFromName + 48 (ATS + 245484) [0x1c1dcceec] 1-12
FOLazyInitialize + 432 (ATS + 8288) [0x1c1d93060] 1-12
NewHookUpWithATSServer(unsigned char) + 468 (ATS + 10000) [0x1c1d93710] 1-12
RendezvousWithServer(char*)

As you noticed, something is still messed up with your fonts, because Apple's font server in macOS is hanging (as you check tool does). Unfortunately I don't really see how to debug that remotely. You could move away ~/Library/Fonts to see if this is an issue with one of your user-installed fonts...

Cheers,
Simon
_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac at r-project.org
https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-sig-mac&amp;data=05%7C01%7Crmh%40temple.edu%7Cb22cb38cc254405c434508da7c166fa3%7C716e81efb52244738e3110bd02ccf6e5%7C0%7C0%7C637958733089159823%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=Xc16XtcE2o32PhdQGwGe%2BRIuQxuUFkgEii6X1TQidgw%3D&amp;reserved=0