DisplayLink Forum

DisplayLink Forum (https://displaylink.org/forum/index.php)
-   Mac Software (https://displaylink.org/forum/forumdisplay.php?f=30)
-   -   Endless log spam _CGXGLDisplayContextForDisplayDevice: No matching context for device (https://displaylink.org/forum/showthread.php?t=62987)

jb510 11-27-2014 01:18 PM

Quote:

Originally Posted by Carlo (Post 76031)
Hi ehendrix,

Sorry for going quiet on this one. Yes we think this is a good workaround, we could apply it at install time.

We'd use
? [= Sender WindowServer] [=S Message_CGXGLDisplayContextForDisplayDevice] ignore

Unless anyone can spot any issue with the approach?

Cheers,
Carlo

Note that the above declaration is missing a space between Message and _CGX... should be
Code:

? [= Sender WindowServer] [=S Message _CGXGLDisplayContextForDisplayDevice] ignore

BMT 11-27-2014 09:59 PM

Quote:

Originally Posted by Carlo (Post 76031)
Hi ehendrix,

Sorry for going quiet on this one. Yes we think this is a good workaround, we could apply it at install time.

We'd use
? [= Sender WindowServer] [=S Message_CGXGLDisplayContextForDisplayDevice] ignore

Unless anyone can spot any issue with the approach?

Cheers,
Carlo

Hi Carlo, the string you proposed is formatted incorrectly, it would need to be as follows instead else it won't work:
? [= Sender WindowServer] [S= Message _CGXGLDisplayContextForDisplayDevice] ignore

I've confirmed the above works as intended.

PS. Make sure to put the string at the top of asl.conf else it won't work! (Due to other rules taking priority over it and cancelling out the effect). I'm not sure if S= or =S (as you proposed) makes any difference, but I've only ever seen it as S= which is why I put it that way round.

Also, if you're thinking of doing this automatically you should make sure to check there's not already a string containing _CGXGLDisplayContextForDisplayDevice OR WindowServer in asl.conf, as people may have already added the same or a different string to stop it from happening already.

Edit: Looks like someone else beat me to it, I've been trying to post this for the past few days but kept getting forum errors each time I did. The 4th page of the topic wasn't even showing up until I posted my message! Weird.

Carlo 11-28-2014 09:44 AM

Thank you BMT and others,

Will take your advice, hopefully won't find issues with this change.

Cheers,
Carlo

jb8748 11-28-2014 10:01 AM

My view is that the DisplayLink installation should not edit the global asl.conf file in any way. I don't think it's the right approach for installers to alter system files when there are other alternatives.

You should use an ASL module, like I outlined in my blog post. My reasoning is:
1) asl.conf can be overwritten at anytime by a system update
2) it is clear who has requested that these stop entering the log - and this itself is logged when ASL starts
3) ASL will/should deal gracefully with cases where people have multiple 'claims' on the messages
4) Removing this (such as when uninstalling the drivers completely) becomes trivial as it's one file to delete. Removing an edit to asl.conf, which may have been subsequently edited, isn't going to be reliable.

Just my thoughts. Looking forward to this making it into the standard installation.

James

ehendrix 12-02-2014 08:41 PM

Quote:

Originally Posted by jb8748 (Post 76060)
Thank you ehendrix. That does look like a better command - I'm no expert on the logging so I was finding things that worked. I've updated my blog post.

James

As I see it, this was all team work. I would have never come to this if it weren't for your blog post and postings from others. :-)

BMT 12-10-2014 11:37 AM

Quote:

Originally Posted by jb8748 (Post 76070)
My view is that the DisplayLink installation should not edit the global asl.conf file in any way. I don't think it's the right approach for installers to alter system files when there are other alternatives.

While I would normally agree that it's bad to alter system files, the method you outlined in your blog post has never worked for me - editing asl.conf is the only method that has.

luckman212 07-21-2015 05:30 PM

I thought that it was "fixed" but I noticed today these logspam messages continue to appear for me even as of v2.4 (Jul 3 2015) so I had to re-enable this patch.

dude123 05-11-2017 02:49 PM

Sadly this has become a topic again under 10.12 Sierra. My syslogs get hit by 60.000 messages per second. And none of the above hints helps, also the asl-config coming with the displaylink 3.0 driver doesn't help. Anyone an idea about this?

Carlo 05-12-2017 08:28 AM

Quote:

Originally Posted by dude123 (Post 83449)
Sadly this has become a topic again under 10.12 Sierra. My syslogs get hit by 60.000 messages per second. And none of the above hints helps, also the asl-config coming with the displaylink 3.0 driver doesn't help. Anyone an idea about this?

Can you please copy and paste the log message? It may be a new one.

Kind regards,
Carlo

dude123 05-12-2017 11:18 AM

Quote:

Originally Posted by Carlo (Post 83459)
Can you please copy and paste the log message? It may be a new one.

Yes sure!

Code:

No matching context for device (0x7fe957c26f90) - disabling OpenGL
Sender:
/System/Library/PrivateFrameworks/SkyLight.framework/Resources/WindowServer
(/System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight)

Subsystem:
com.apple.SkyLight


All times are GMT. The time now is 03:09 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.