Skip to content

error stream getting unworkable.

6 messages · Timothy Bates, Duncan Murdoch, Simon Urbanek

#
Just to say that the stream of error text in the console is at the point where usability is dramatically impaired.

Entering a model and generating output both file the console with error code,,,
Even moving the cursor now triggers lines of reporting for each move

No other app does this, and I think we need a solution

examples below...

Warning: Could not create system idle sleep assertion (-536870211)
2022-08-05 09:21:34.468 R[476:3215] *** -[_NSActivityAssertion _initWithActivityOptions:reason:expirationHandler:]: Warning: Could not create system idle sleep assertion (-536870211)
2022-08-05 09:21:34.469 R[476:3215] *** -[_NSActivityAssertion _initWithActivityOptions:reason:expirationHandler:]: Warning: Could not create system idle sleep assertion (-536870211)

2022-08-05 09:20:43.962 R[476:3215] *** -[_NSActivityAssertion _initWithActivityOptions:reason:expirationHandler:]: Warning: Could not create system idle sleep assertion (-536870211)
2022-08-05 09:22:00.025 R[476:3215] *** -[_NSActivityAssertion _initWithActivityOptions:reason:expirationHandler:]: Warning: Could not create system idle sleep assertion (-536870211)
(Intercept) ? = 0 [-0.1, 0.1], t = 0, p = 1.000
SOSeffort ? = 0.26 [0.15, 0.36], t = 4.88, p < 0.001
R? = 0.067 (adj = 0.065)2022-08-05 09:22:00.050 R[476:3215] *** -[_NSActivityAssertion _initWithActivityOptions:reason:expirationHandler:]: Warning: Could not create system idle sleep assertion (-536870211)
Located match from cache: item 'Paste' in menu 'Edit' with match penalty 0
Choosing result from list: item 'Paste' in menu 'Edit' with match penalty 0
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e buidheann carthannais a th? ann an Oilthigh Dh?n ?ideann, cl?raichte an Alba, ?ireamh cl?raidh SC005336.
#
I only see very occasional errors in the console.  What versions of the 
OS and R are you using?  I'm using Catalina 10.15.7 with R.app 1.79 
(8095 High Sierra build) running R 4.2.1.

Duncan Murdoch
On 06/08/2022 5:26 a.m., Timothy Bates wrote:
#
Hi Duncan,
I?m using the current release MacOS 12/Monterey. and also the version scheduled for release in Fall (MacOS 13/Ventura developer),

Catalina is three years old which might explain our different experience - A lot of the error stream refers to use of deprecated function calls, which increase with each version.

I haven?t yet started tot keep a list of all the warnings/errors but many are due to R.app calling deprecated MacOS functions. Those should be updated to current functions. Also failures to support newer OS requirements (like, I think idling/app sleep). I?ll note here also that RR,app doesn?t support the new "Stage manager? windowing which will be ubiquitous in a few months: The drop downs for code completion render in their own mini windows, and the main window doesn?t come to the front on launch.

Redirecting system call errors to a log file would help users by keeping the console free of spurious text

Preferably, putting the Xcode project on github and accepting pull requests could allow more eyes on this.
Or perhaps sponsor a summer cleanup  project for a student to modernise the codebase.

best, tim

R version: R version 4.2.1 (2022-06-23)
Platform: x86_64-apple-darwin17.0 
MacOS: 13.0
#
On 06/08/2022 6:00 a.m., Timothy Bates wrote:
Yes, that likely explains it.
The project is online in svn at

   https://svn.r-project.org/R-packages/trunk/Mac-GUI

Check out using

   svn co https://svn.r-project.org/R-packages/trunk/Mac-GUI

Build details are here:

   https://svn.r-project.org/R-packages/trunk/Mac-GUI/INSTALL

I don't know how receptive the authors are to patches, but the way to 
produce them is to check out the current sources, make your changes, 
then run

   svn diff --internal-diff >something.diff

and send something.diff to the authors.  Not as convenient as github, 
but not really all that different.

Duncan Murdoch
#
But those are only at compile time, they have nothing to do with your earlier report.

Most stderr errors seen so far are either due to well-documented bugs in certain macOS versions or additional software you install. We have yet to find any errors that come from the GUI itself. You can always disable the stderr forwarding if you use software that is noisy.
See R for Mac FAQ  10.4
I wish - it's been on Github for quite a while: https://github.com/R-macos/Mac-GUI but it has made little difference, still no contributors.

Cheers,
Simon
#
Hi Simon,
Hope all?s well.

Looking at RController.m and the "fixBuggyOutput" function

It seems to me candidates for adding to this list (assuming it can?t be fixed)

I?m getting a lot of "Could not create system idle sleep assertion?
e.g. 2022-08-07 20:19:30.010 R[3196:92038] *** -[_NSActivityAssertion _initWithActivityOptions:reason:expirationHandler:]: Warning: Could not create system idle sleep assertion (-536870211)

I?m also getting output from menu short cuts.
e.g. "cmd-opt-L? (clear console) generates this:
        Located match from cache: item 'Clear Console' in menu 'Edit' with match penalty 0
        Choosing result from list: item 'Clear Console' in menu 'Edit' with match penalty 0

and cmd-C (copy) generates this.
        Located char match from search: item 'Copy' in menu 'Edit' with match penalty 0
        Choosing result from list: item 'Copy' in menu 'Edit' with match penalty 0
        Marking command key cache valid

So adding those would help a lot.
I can?t believe it but zero forks of the app on GitHub? Oh well There?s one now :-)

Given none of us were aware of it, I think promoting it would be helpful.
Perhaps aa a line to the startup in R.app saying "Contribute at https://github.com/R-macos/Mac-GUI?  ?

APPLE
If OS bugs can be reproduced, they can be sent in as bug reports to Apple, the more copies the more likely they fix it.
ACTION: If they are MacOS bugs, we can each report them to Apple and quote the Radar # to let them become aware of these.
Any Radar #s?

The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e buidheann carthannais a th? ann an Oilthigh Dh?n ?ideann, cl?raichte an Alba, ?ireamh cl?raidh SC005336.