Re: Quartz no longer launching when an X application is invoked

2023-11-30 Thread Kenneth Wolcott
Hi;

  So what is the proper way for X to be started?

  Do I need to manually create a launch entry like I have for the
emacs server?  If so, what is the invocation? What is being invoked?
xorg-server?

  Now that the DISPLAY is null, invoking xpdf fails even after an open
-a /Applications/MacPorts/X11.app, complaining about the DISPLAY
variable setting.

Thanks,
Ken

On Thu, Nov 30, 2023 at 10:47 PM Kenneth Wolcott
 wrote:
>
> Hi Ryan;
>
>   It was defined in ~/.zprofile and created by MacPorts in 2021 :-)  I
> commented it out. I'll source the .zprofile and see what happens.
>
> Thanks,
> Ken
>
> On Thu, Nov 30, 2023 at 10:23 PM Ryan Schmidt  wrote:
> >
> > On Nov 30, 2023, at 16:01, Kenneth Wolcott wrote:
> > >
> > > 3. My DISPLAY environment variable is set to ":0";
> > > I do not know where this variable is not being set properly or is
> > > being overridden.
> >
> > You need to figure out where DISPLAY=:0 is being set, and remove the code 
> > that does so. It's probably in your shell startup file. Depending on which 
> > shell you use, there are many possible names for startup files in your home 
> > directory: .zshrc, .zprofile, .bashrc, .bash_profile, etc.
> >
> > Setting DISPLAY=:0 was correct in Mac OS X 10.4 and earlier but it has not 
> > been correct since Mac OS X 10.5.


Re: Quartz no longer launching when an X application is invoked

2023-11-30 Thread Kenneth Wolcott
Hi Ryan;

  It was defined in ~/.zprofile and created by MacPorts in 2021 :-)  I
commented it out. I'll source the .zprofile and see what happens.

Thanks,
Ken

On Thu, Nov 30, 2023 at 10:23 PM Ryan Schmidt  wrote:
>
> On Nov 30, 2023, at 16:01, Kenneth Wolcott wrote:
> >
> > 3. My DISPLAY environment variable is set to ":0";
> > I do not know where this variable is not being set properly or is
> > being overridden.
>
> You need to figure out where DISPLAY=:0 is being set, and remove the code 
> that does so. It's probably in your shell startup file. Depending on which 
> shell you use, there are many possible names for startup files in your home 
> directory: .zshrc, .zprofile, .bashrc, .bash_profile, etc.
>
> Setting DISPLAY=:0 was correct in Mac OS X 10.4 and earlier but it has not 
> been correct since Mac OS X 10.5.


Re: Quartz no longer launching when an X application is invoked

2023-11-30 Thread Ryan Schmidt
On Nov 30, 2023, at 16:01, Kenneth Wolcott wrote:
> 
> 3. My DISPLAY environment variable is set to ":0";
> I do not know where this variable is not being set properly or is
> being overridden.

You need to figure out where DISPLAY=:0 is being set, and remove the code that 
does so. It's probably in your shell startup file. Depending on which shell you 
use, there are many possible names for startup files in your home directory: 
.zshrc, .zprofile, .bashrc, .bash_profile, etc.

Setting DISPLAY=:0 was correct in Mac OS X 10.4 and earlier but it has not been 
correct since Mac OS X 10.5.

Re: Quartz no longer launching when an X application is invoked

2023-11-30 Thread Kenneth Wolcott
Hi Chris;

  Thank you for your response.

  1. I manually use /Applications/MacPorts/X11.app (/usr/bin/open -a
/Applications/MacPorts/X11.app when inside a script) when invoking an
app (such as /opt/local/bin/xtern) which then fails:

~: which xterm
/opt/local/bin/xterm
~: xterm &
[1] 6134
[1]  + exit 1 xterm
~: xterm: Xt error: Can't open display: :0

~: open -a /Applications/MacPorts/X11.app
~: xterm &
[1] 6423
~: echo $DISPLAY
:0

2. I uninstalled and re-installed xorg-server per your instructions.
This did not solve the problem.

3. My DISPLAY environment variable is set to ":0";
I do not know where this variable is not being set properly or is
being overridden.

I do have an emacs server launch:
~/Library/LaunchAgents/gnu.emacs.daemon.plist

Should I create something similar for X? If so, what app needs to do
the work? org-server?

Thanks,
Ken Wolcott

On Thu, Nov 30, 2023 at 2:55 AM Chris Jones  wrote:
>
> Hi,
>
> 'Quartz' has nothing to do with X11, its the primary compositor used by
> macOS itself to render graphics.
>
> I assume you are actually taking about the X11 server, which in MacPorts
> is provided by the 'xorg-server' port and historically was provided by
> the 'XQuartz' package.
>
> Some basic questions.
>
> 1. What installation of the X11 server are you using ? the MacPorts
> provided one or something else ?
>
> 2. Regardless of your answer to 1., try (re)installing the MacPorts
> provided one
>
>   > sudo port uninstall xorg-server
>   > sudo port install xorg-server
>
> Then log out and back in again. This step is important as if you skip it
> things do not work correctly.
>
> 3. Finally, in order for the automatic starting of the X11 server on
> demand to work, you need your DISPLAY variable set correctly. It should
> look something like
>
> $ echo $DISPLAY
> /private/tmp/com.apple.launchd.TwDg8TRtvI/org.macosforge.xquartz:0
>
> i.e. it needs to refer to a launchd socket. If you see something else
> instead you like are overriding this somewhere and you need to find and
> remove this.
>
> Chris
>
> On 30/11/2023 5:30 am, Kenneth Wolcott wrote:
> > Hi;
> >
> > Quartz no longer launching when an X application is invoked
> >
> > The first time I had installed some ports that were dependent on
> > Quartz I had difficulty getting them to start because Quartz was not
> > running.
> >
> > The first solution was to manually invoke Quartz, which worked ok.
> >
> > I then was able to get Quartz to start via Launch when an X
> > application was invoked.
> >
> > Recently (?) it stopped working and I'm not sure why.
> >
> > All research I've done so far has been fruitless, I'm just not asking
> > the right questions...
> >
> > I'm back to manually starting Quartz.
> >
> > Please show me how to diagnose the problem and also to solve it.
> >
> > Thanks,
> > Ken Wolcott


Re: net-snmp runtime problems on Sonoma

2023-11-30 Thread Daniel J. Luke
On Nov 27, 2023, at 12:17 PM, Daniel J. Luke  wrote:
> I thought I'd ping the list before digging more into this, but on one Sonoma 
> (14.1.1) host that I monitor via snmp, MacPorts (and apple's) snmpd (from 
> net-snmp) seems to get stuck using 100% of one cpu core when I walk the host 
> (or query some stuff from HOST-RESOURCES, probably .1.3.6.1.4.1.2021.4.3 or 
> .1.3.6.1.4.1.2021.4.4).
> 
> If I run under lldb and catch it in time (or if I sample it) I see it's stuck 
> in vm_region_64 (called from pages_swapped)... It's only happening on one 
> host I'm monitoring, though. Just wondering if anyone else has seen this?

For the list archives - this appears to have fixed itself with no intervention 
from me - which makes me suspect that I've got some hardware that is on its way 
out.

-- 
Daniel J. Luke



Re: Quartz no longer launching when an X application is invoked

2023-11-30 Thread Chris Jones

Hi,

'Quartz' has nothing to do with X11, its the primary compositor used by 
macOS itself to render graphics.


I assume you are actually taking about the X11 server, which in MacPorts 
is provided by the 'xorg-server' port and historically was provided by 
the 'XQuartz' package.


Some basic questions.

1. What installation of the X11 server are you using ? the MacPorts 
provided one or something else ?


2. Regardless of your answer to 1., try (re)installing the MacPorts 
provided one


 > sudo port uninstall xorg-server
 > sudo port install xorg-server

Then log out and back in again. This step is important as if you skip it 
things do not work correctly.


3. Finally, in order for the automatic starting of the X11 server on 
demand to work, you need your DISPLAY variable set correctly. It should 
look something like


$ echo $DISPLAY
/private/tmp/com.apple.launchd.TwDg8TRtvI/org.macosforge.xquartz:0

i.e. it needs to refer to a launchd socket. If you see something else 
instead you like are overriding this somewhere and you need to find and 
remove this.


Chris

On 30/11/2023 5:30 am, Kenneth Wolcott wrote:

Hi;

Quartz no longer launching when an X application is invoked

The first time I had installed some ports that were dependent on
Quartz I had difficulty getting them to start because Quartz was not
running.

The first solution was to manually invoke Quartz, which worked ok.

I then was able to get Quartz to start via Launch when an X
application was invoked.

Recently (?) it stopped working and I'm not sure why.

All research I've done so far has been fruitless, I'm just not asking
the right questions...

I'm back to manually starting Quartz.

Please show me how to diagnose the problem and also to solve it.

Thanks,
Ken Wolcott