macports installation crashes under Sequoia 15.01 too (Bug #941)


Added by Kaspar Schwarzenbach 25 days ago. Updated 22 days ago.


Status:New Start date:10/27/2024
Priority:Urgent Due date:
Assignee:- % Done:

0%

Category:-
Target version:-

Description

See Ticket 939 (untouched since 15.10.24) for problems with AMC macports installation under mac os 14.7.
The system has meanwhile been upgraded to sequoia 15.0.1 with these steps:
$ sudo port -fp uninstall installed
$ xcode-select --install
$ sudo port migrate
$ sudo port selfupdate
$ sudo port upgrade outdated
$ sudo port install auto-multiple-choice +mactex

Black Background Problemm with XQuartz
still under OS 14.7 the AMC XQuartz window was black and contents not readable
following hack helped to solve this problem
$ defaults write org.xquartz.X11 enable_render_extension 0

Behaviour of auto-multiple-choice under macports (mac OS 15.0.1)
The program starts as expected, with normal white window background (XQuartz)
An existing project can be opened.
While checking the marks, then press "ok" or when exporting the data, the AMC program crashes.

This is the error message for AMC from the terminal:
elster@elster ~ % auto-multiple-choice

(auto-multiple-choice:73618): Gtk-WARNING **: 10:43:01.466: Theme parsing error: gtk.css:23:11: not a number

(auto-multiple-choice:73618): Gtk-WARNING **: 10:43:01.466: Theme parsing error: gtk.css:23:24: Using Pango syntax for the font: style property is deprecated; please use CSS syntax

(auto-multiple-choice:73618): Gdk-ERROR **: 10:43:24.076: The program 'auto-multiple-choice' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadLength (poly request too large or internal Xlib length erro'.
(Details: serial 4001 error_code 16 request_code 72 (core protocol) minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
zsh: trace trap auto-multiple-choice
elster@elster ~ %


History

Updated by Joël Brogniart 24 days ago

Is your installation running on an Apple Silicon machine? It seems that XQuartz is having some trouble on Apple Silicon processor. It is best to install AMC without XQuartz with the following command.

sudo port install auto-multiple-choice -x11 +no_x11 +quartz

This command should be used when no port is installed so as other ports are also installed with these options.
Installing_AMC_with_MacPorts_on_macOS

Updated by Kaspar Schwarzenbach 24 days ago

My installation runs on a M1 mac with silicon chip. And I'd followed your guide Installing_AMC_with_MacPorts_on_macOS, but I've opted for +mactex as I inted to use my already installed mactex
I've now done this:
sudo port uninstall auto-mutliple-choice
sudo port install auto-multiple-choice -x11 +no_x11 +quartz +mactex
Unfortunately AMC still crashes. Might it be necessary to uninstall XQuartz as well, and if, how could I uninstall XQuartz?

Updated by Joël Brogniart 23 days ago

It's not sufficient to only uninstall AMC as some ports on which AMC depends also need to be reinstalled. So the simplest way is to uninstall all installed port and then install AMC again.

Updated by Kaspar Schwarzenbach 22 days ago

This solved the problem, thanks: AMC is back to life.
These were the steps necessary:

sudo port -fp uninstall installed
defaults write org.xquartz.X11 enable_render_extension 1   # see initial ticket, now re-enabled render
export PATH=/opt/local/bin:/opt/local/sbin:$PATH    # despite having set this path, mac's terminal doesn't remember it
sudo port install auto-multiple-choice -x11 +no_x11 +quartz +mactex   # installation time ca 3h !
sudo port selfupdate 
sudo port upgrade outdated 

AMC is now running fine; ticket solved

Also available in: Atom PDF