Anyone running X11 apps on Mojave? [Solved]

Pierre Malard plm at teledetection.fr
Mon Jan 21 10:41:43 UTC 2019


Hi, a great thanks!

You were right, it was my specific configuration which was in cause, even if it was not a DISPLAY error.

After a long wile and successives tests I found why it doesn’t work :-)

First, I found that was the « —login » parameter of X11 script which was in cause. If I launch X11 without it, it works. In piratical:
1- the « exec -l /bin/bash --login -c 'exec /Applications/MacPorts/X11.app/Contents/MacOS/X11.bin' - /Applications/MacPorts/X11.app/Contents/MacOS/X11.bin » of X11 script won’t work.
2- An «  exec -l /bin/bash -c 'exec /Applications/MacPorts/X11.app/Contents/MacOS/X11.bin' - /Applications/MacPorts/X11.app/Contents/MacOS/X11.bin » world fine.
It’s the same thing with XQuartz.

The explanation now:
As I have a BASH v4.3 installed with MacPort, I would use it in my « Terminal.app » sessions and I just add this line in my « ~/.bash_profile » file:
	[ -x /opt/local/bin/bash ] && exec /opt/local/bin/bash
to launch BASH v4.3. I remove it and everything work with X11…

As it is evident now, this « exec » line trouble opening X11 with the other « exec —login ». As explain in the « man bash »:
       When bash is invoked as an interactive login shell, or as a non-interactive shell  with
       the --login option, it first reads and executes commands from the file /etc/profile, if
       that  file  exists.   After  reading  that  file,   it   looks   for   ~/.bash_profile,
       ~/.bash_login,  and ~/.profile, in that order, and reads and executes commands from the
       first one that exists and is readable.
So, my « ~/.bash_profile » were read with the first call, not with the second one.

It’s a great new for me but I have a subsidiary question:
   « How can I use the MacPort BASH in place of Apple one? »

If you have a solution…


Le 19 janv. 2019 à 12:03, Christopher Jones <jonesc at hep.phy.cam.ac.uk> a écrit :
> 
> The logs below indicate problems with DISPLAY. They also suggest you have some residual parts of the non-macports Xquartz installed.
> 
> Do you set DISPLAY at all in any of your shell login scripts. If so remove this. Try creating a new test user on your system, log in as that and see if it works from there. If so it would indicate something in your user environment.
> 
> Make sure you have all parts of the other Xquartz removed. In particlar make sure all the plist entries under Library are removed.
> 
> cheers Chris
> 
>> On 19 Jan 2019, at 10:58 am, Pierre Malard <plm at teledetection.fr> wrote:
>> 
>> Thanks again,
>> 
>> There is no crash but here are the only logs I found. I don’t understand why it doesn’t work. The log file « ~/Library/Logs/X11/org.macports.log » is generate when I launch X11.bin directly on a Terminal. When I try to open App, there is nothing neither logs.
>> However, I have the same trouble on all my Mac on Mojave. Is it a new « security » mesure from Apple?
>> 
>> piotr at Rascasse:~/Library/Logs/X11$ cat org.macosforge.xquartz.log
>> X11.app: DISPLAY does not look like a launchd set variable, unsetting.
>> X11.app: main(): argc=1
>> 	argv[0] = /Applications/Utilities/XQuartz.app/Contents/MacOS/X11.bin
>> Waiting for startup parameters via Mach IPC.
>> X11.app: No launchd socket handed off, unsetting DISPLAY
>> X11.app: do_start_x11_server(): argc=7
>> 	argv[0] = /opt/X11/bin/X
>> 	argv[1] = :0
>> 	argv[2] = -listen
>> 	argv[3] = tcp
>> 	argv[4] = -iglx
>> 	argv[5] = -auth
>> 	argv[6] = /Users/piotr/.serverauth.38793
>> [1706135.851] Xquartz starting:
>> [1706135.851] X.Org X Server 1.18.4
>> [1706135.851] Build Date: 20161025
>> [1706135.870] x: 0, y: 0, w: 2560, h: 1418
>> [1706135.883] (II) GLX: Initialized Core OpenGL GL provider for screen 0
>> [1706135.965] X11.app: DarwinProcessFDAdditionQueue_thread: Sleeping to allow xinitrc to catchup.
>> [1706135.982] (EE) Error loading keymap /tmp/server-0.xkm
>> [1706135.982] (EE) XKB: Failed to load keymap. Loading default keymap instead.
>> [1706137.861] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [1706160.556] (II) Server terminated successfully (0). Closing log file.
>> 
>> 
>> 
>> piotr at Rascasse:~/Library/Logs/X11$ cat org.macports.log
>> X11.app: DISPLAY ("/private/tmp/com.apple.launchd.SKs4xIJJVq/org.macosforge.xquartz:0") does not match our id ("org.macports"), unsetting.
>> X11.app: main(): argc=2
>> 	argv[0] = /Applications/MacPorts/X11.app/Contents/MacOS/X11.bin
>> 	argv[1] = -psn_0_340051
>> Waiting for startup parameters via Mach IPC.
>> X11.app: No launchd socket handed off, unsetting DISPLAY
>> X11.app: do_start_x11_server(): argc=7
>> 	argv[0] = /opt/local/bin/Xquartz
>> 	argv[1] = :0
>> 	argv[2] = -nolisten
>> 	argv[3] = tcp
>> 	argv[4] = -iglx
>> 	argv[5] = -auth
>> 	argv[6] = /Users/piotr/.serverauth.1026
>> [   227.231] Xquartz starting:
>> [   227.231] X.Org X Server 1.18.4
>> [   227.231] Build Date: 20180831
>> [   227.238] x: 0, y: 0, w: 2560, h: 1418
>> [   227.303] (II) GLX: Initialized Core OpenGL GL provider for screen 0
>> [   229.063] X11.app: DarwinProcessFDAdditionQueue_thread: Sleeping to allow xinitrc to catchup.
>> [   229.087] (EE) Error loading keymap /tmp/server-0.xkm
>> [   229.087] (EE) XKB: Failed to load keymap. Loading default keymap instead.
>> [   229.872] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [ 25122.470] x: 0, y: 0, w: 2560, h: 1418
>> [ 25122.522] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [ 25122.522] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [ 26144.274] x: 0, y: 0, w: 2560, h: 1418
>> [ 26144.278] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [ 31657.125] x: 0, y: 0, w: 2560, h: 1418
>> [ 31657.128] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [ 63133.955] x: 0, y: 0, w: 2560, h: 1418
>> [ 63133.960] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [ 70910.981] x: 0, y: 0, w: 2560, h: 1418
>> [ 70910.985] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [ 83867.215] x: 0, y: 0, w: 2560, h: 1418
>> [ 83867.229] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [110886.434] x: 0, y: 0, w: 2560, h: 1418
>> [110886.438] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [153571.180] x: 0, y: 0, w: 2560, h: 1418
>> [153571.188] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [162162.765] x: 0, y: 0, w: 2560, h: 1418
>> [162162.769] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [197919.300] x: 0, y: 0, w: 2560, h: 1418
>> [197919.305] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [198637.899] x: 0, y: 0, w: 2560, h: 1418
>> [198637.907] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [242705.063] x: 0, y: 0, w: 2560, h: 1418
>> [242705.068] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [250616.473] x: 0, y: 0, w: 2560, h: 1418
>> [250616.478] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [257996.670] x: 0, y: 0, w: 2560, h: 1418
>> [257996.699] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [258021.249] x: 0, y: 0, w: 2560, h: 1418
>> [258021.255] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [284319.324] x: 0, y: 0, w: 2560, h: 1418
>> [284319.338] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [302091.351] x: 0, y: 0, w: 2560, h: 1418
>> [302091.356] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [302104.560] x: 0, y: 0, w: 2560, h: 1418
>> [302104.565] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [309253.186] x: 0, y: 0, w: 2560, h: 1418
>> [309253.194] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [310341.088] x: 0, y: 0, w: 2560, h: 1418
>> [310341.093] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [326829.422] x: 0, y: 0, w: 2560, h: 1418
>> [326829.434] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [330967.553] x: 0, y: 0, w: 2560, h: 1418
>> [330967.566] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [334605.847] x: 0, y: 0, w: 2560, h: 1418
>> [334613.763] noPseudoramiXExtension=0, pseudoramiXNumScreens=1
>> [340157.573] (II) Server terminated successfully (0). Closing log file.
>> 
>>> Le 18 janv. 2019 à 23:57, Ken Cunningham <ken.cunningham.webuse at gmail.com> a écrit :
>>> 
>>> Oh, I see. No launch at all, under any circumstances.
>>> 
>>> To get anywhere with that, we would need to see the whole crash report to find out what happened.
>>> 
>>> Best,
>>> 
>>> Ken
>>> 
>>> 
>>> On 2019-01-18, at 2:49 PM, Pierre Malard wrote:
>>> 
>>>> Each time I try to open X11.app (or XQuartz.app) by double-clicking or via « open -a », it doesn’t work, the application is not open. The only way I have to launch X11 is via a terminal as I explain.
>>>> 
>>>> The log I have on console is:
>>>> -[PersistentAppsSupport applicationReady:] | App: X11, ready, updating active tracking timer
>>>> -[ApplicationManager checkInAppContext:refCon:eventData:] |      checked in app : X11
>>>> -[PersistentAppsSupport applicationQuit:] | for app:X11, _appTrackingState = 2
>>>> -[PersistentAppsSupport applicationQuit:] | App: X11, quit, updating active tracking timer
>>>> 
>>> 
>> 
>> --
>> Pierre Malard
>> 
>>  « La vérité ne triomphe jamais, mais ses ennemis finissent
>>   toujours par mourir... »
>>                                                  Max Placnk (1858-1947)
>>  |\      _,,,---,,_
>>  /,`.-'`'    -.  ;-;;,_
>> |,4-  ) )-,_. ,\ (  `'-'
>> '---''(_/--'  `-'\_)   πr
>> 
>> perl -e '$_=q#: 3|\ 5_,3-3,2_: 3/,`.'"'"'`'"'"' 5-.  ;-;;,_:  |,A-  ) )-,_. ,\ (  `'"'"'-'"'"': '"'"'-3'"'"'2(_/--'"'"'  `-'"'"'\_): 24πr::#;y#:#\n#;s#(\D)(\d+)#$1x$2#ge;print'
>> - --> Ce message n’engage que son auteur <--
>> 
> 

--
Pierre Malard

   «le système d'individualisme à outrance, d'âpre concurrence,
   de lutte sans merci qui régit aujourd'hui la production, fait
   presque autant de mal à la classe bourgeoise dans son ensemble
   qu'à la classe ouvrière. [...]
  Ils vivent dans un monde de lutte où la solidarité est inconnue.»
                                           Jean Jaures - "L'idéal de justice" - 1889
   |\      _,,,---,,_
   /,`.-'`'    -.  ;-;;,_
  |,4-  ) )-,_. ,\ (  `'-'
 '---''(_/--'  `-'\_)   πr

perl -e '$_=q#: 3|\ 5_,3-3,2_: 3/,`.'"'"'`'"'"' 5-.  ;-;;,_:  |,A-  ) )-,_. ,\ (  `'"'"'-'"'"': '"'"'-3'"'"'2(_/--'"'"'  `-'"'"'\_): 24πr::#;y#:#\n#;s#(\D)(\d+)#$1x$2#ge;print'
- --> Ce message n’engage que son auteur <--

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20190121/f5dfb37e/attachment.sig>


More information about the macports-users mailing list