[R-SIG-Mac] R GUI and Quartz

Randy Lai randy.cs.lai at gmail.com
Wed Nov 13 21:07:25 CET 2013


I meant the method windowWillCloseNotifications in RDocumentController.m

1. change “QuartzCocoaView” to something otherwise to avoid it being invoked,
2. compile the R GUI
3. run the plot function, e.g. plot(1,1)
4. close the quartz

you will see the error  EXC_HAD_ACCESS (code=EXC_i386_GPFLT).

there may be a memory leak in R code!?


On Nov 13, 2013, at 6:26 AM, Simon Urbanek <simon.urbanek at r-project.org> wrote:

> On Nov 13, 2013, at 6:54 AM, Randy Lai <randy.cs.lai at gmail.com> wrote:
> 
>> Hi all,
>> 
>> I am studying the R GUI code and I have a question about Quartz.
>> 
>> It seems that R GUI will add a dummy Quartz Cocoa window before the quartz is closed.
>> What is the reason behind?
>> 
> 
> Can you supply some details as of what you're looking at? The GUI is no longer driving Quartz, so I'm not sure what code you have in mind.
> 
> Cheers,
> Simon
> 
> 
> 
> 
>> I have tried compiled the code without this part, it raises an error for EXC_HAD_ACCESS (code=EXC_i386_GPFLT).
>> 
>> Randy
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>> 
> 



More information about the R-SIG-Mac mailing list