I can confirm that this is a rather nasty Sonoma bug at least since macOS 
14.3.1. It seems Apple tried to implement some kind of optimization that wants 
to minimize redraws in views, but it's buggy in that it doesn't detect that the 
contents have actually changed and thus refuses to redraw the view even though 
R tells it to do so. I found a somewhat convoluted work-around: if we draw two 
different things (just say dummy rectangles of varying color) and then 
overwrite them with the actual R plot then even Sonoma will redraw the view. It 
is rather bizarre... The work around of doodling unrelated things on the screen 
is now in R-devel and R-patched (85968 and 85969 resp.) so please check R 4.3.3 
beta r85969 or higher from mac.R-project.org

Cheers,
Simon



> On 22/02/2024, at 10:57 AM, Simon Urbanek <simon.urba...@r-project.org> wrote:
> 
> I can confirm that this is a bug specific to macOS Sonoma 14.3.1, even 
> earlier versions of Sonoma don't have that problem. Given the number of 
> previous bugs in Sonoma chances are Apple may fix in the in the next release, 
> but I'll see if we can do anything about it on our end in the meantime.
> 
> Cheers,
> Simon
> 
> 
>> On 19/02/2024, at 5:56 AM, María de los Ángeles Casares de Cal via R-SIG-Mac 
>> <r-sig-mac@r-project.org> wrote:
>> 
>> Thank you very much for your information, Michael.
>> 
>> I had not realize that by changing the size of the window where all the 
>> plots should be, everything appears.
>> The same thing happens to me too.
>> 
>> Regards,
>> Ángeles
>> 
>> 
>> sessionInfo()
>> R version 4.3.2 (2023-10-31)
>> Platform: aarch64-apple-darwin20 (64-bit)
>> Running under: macOS Sonoma 14.3.1
>> 
>> Matrix products: default
>> BLAS:   
>> /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib
>>  
>> LAPACK: 
>> /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib;
>>   LAPACK version 3.11.0
>> 
>> locale:
>> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
>> 
>> time zone: Europe/Madrid
>> tzcode source: internal
>> 
>> attached base packages:
>> [1] stats     graphics  grDevices utils     datasets  methods   base     
>> 
>> loaded via a namespace (and not attached):
>> [1] compiler_4.3.2
>> 
>> system_profiler SPHardwareDataType | grep Model
>>    Model Name: MacBook Air
>>    Model Identifier: Mac14,2
>>    Model Number: Z161000GJY/A
>> 
>> 
>> 
>>> El 16 feb 2024, a las 14:10, Michael Grundler <mcgrund...@gmail.com> 
>>> escribió:
>>> 
>>> I am also observing the same behavior as María with the 4.3.2 Patched
>>> binary from mac.r-project.org running under Sonoma 14.3.1 on an m3
>>> mac. Using the default quartz() device and running the example line by
>>> line shows a blank device. If the device window is resized, however,
>>> the expected result appears. The example runs fine using x11(). The
>>> example also runs fine on both quartz() and x11() on my old x86
>>> running under Sonoma 14.2.1.
>>> 
>>>> sessionInfo()
>>> R version 4.3.2 Patched (2024-02-13 r85905)
>>> Platform: aarch64-apple-darwin20 (64-bit)
>>> Running under: macOS Sonoma 14.3.1
>>> 
>>> Matrix products: default
>>> BLAS:   
>>> /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib
>>> LAPACK: 
>>> /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib;
>>> LAPACK version 3.11.0
>>> 
>>> locale:
>>> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
>>> 
>>> time zone: America/New_York
>>> tzcode source: internal
>>> 
>>> attached base packages:
>>> [1] stats     graphics  grDevices utils     datasets  methods   base
>>> 
>>> loaded via a namespace (and not attached):
>>> [1] compiler_4.3.2
>>> 
>>> _______________________________________________
>>> R-SIG-Mac mailing list
>>> R-SIG-Mac@r-project.org
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>> 
>> 
>>      [[alternative HTML version deleted]]
>> 
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac@r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>> 
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 

_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to