New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clicking wxMaxima --> Preferences on MacOS Results in Immediate Crash, Thus Can't Set Any Preferences #1749
Comments
I believe that problem has been resolved about 2 years ago. So I guess problem is: You are installing wxMaxima using macPorts, right? => We should find out why macPorts never updated wxMaxima to a newer version |
Hi Gunter!
I've installed wxMaxima (with Maxima inside) using brew, macports, direct download, etc.
It crashed for awhile, then it went away, then when I installed 5.46 it had the Preferences crash.
Right now, I would settle for any method of getting it to work and being up to date.
Thanks,
* Van
…________________________________
From: Gunter Königsman ***@***.***>
Sent: Tuesday, February 14, 2023 12:19 AM
To: wxMaxima-developers/wxmaxima ***@***.***>
Cc: L Van Warren ***@***.***>; Author ***@***.***>
Subject: Re: [wxMaxima-developers/wxmaxima] Clicking wxMaxima --> Preferences on MacOS Results in Immediate Crash, Thus Can't Set Any Preferences (Issue #1749)
I believe that problem has been resolved about 2 years ago. So I guess problem is: You are installing wxMaxima using macPorts, right? => We should find out why macPorts never updated wxMaxima to a newer version
—
Reply to this email directly, view it on GitHub<#1749 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAEP4LW2VBJJCHYQWPQEUU3WXMPVXANCNFSM6AAAAAAU3AY6SI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Tried to forward the ticket to https://trac.macports.org/ticket/66914#ticket. |
Thank you.
…________________________________
From: Gunter Königsman ***@***.***>
Sent: Tuesday, February 14, 2023 12:58 AM
To: wxMaxima-developers/wxmaxima ***@***.***>
Cc: L Van Warren ***@***.***>; Author ***@***.***>
Subject: Re: [wxMaxima-developers/wxmaxima] Clicking wxMaxima --> Preferences on MacOS Results in Immediate Crash, Thus Can't Set Any Preferences (Issue #1749)
Tried to forward the ticket to https://trac.macports.org/ticket/66914#ticket.
—
Reply to this email directly, view it on GitHub<#1749 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAEP4LSLCAENQREVEFXGYN3WXMUK5ANCNFSM6AAAAAAU3AY6SI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
If you have already installed MacPorts, you can use my port files to install wxMaxima-23.02.0 as follows: (1) download the MacPorts-Maxima-5.46.0-20230215.dmg.zip file into the "${HOME}/Downloads" directory. (2) enter the next command in order to remove the "quarantine" attribute of the MacPorts-Maxima-5.46.0-20230215.dmg file:
(3) open the MacPorts-Maxima-5.46.0-20230215.dmg file and enter the next command:
"copy_portfiles.sh" is a shell-script which copies port files (ccl-devel, clisp-devel, ecl-devel, gcl, sbcl, maxima, maxima-devel, texmacs, vtk, and wxmaxima) into MacPorts directory. If you don't like "copy_portfiles.sh", you can look into the content of "copy_portfiles.sh" and change it to what you want. Of course, you can manually copy the wxMaxima port file into MacPorts directory. (4) build and install wxMaxima-23.02.0:
The "+wx32" variant means that wxWidgets-3.2 port is used. |
Tomio - You are a gem, an asset to the symbolic computing community. I followed your clear instructions to the letter. The identical crash still occurs when wxMaxima --> Preferences menu is selected. Translated Report (Full Report Below)Process: wxmaxima [12288] Date/Time: 2023-02-16 13:18:47.5817 -0600 Sleep/Wake UUID: F9D1DFCB-E348-45B5-AF7B-26A04072FB2E Time Awake Since Boot: 290000 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BREAKPOINT (SIGTRAP) Termination Reason: Namespace SIGNAL, Code 5 Trace/BPT trap: 5 Thread 0 Crashed:: Dispatch queue: com.apple.main-thread Thread 1: Thread 2:: com.apple.NSEventThread Thread 3:: com.apple.CFSocket.private Thread 4: Thread 5: Thread 6: Thread 7: Thread 0 crashed with X86 Thread State (64-bit): Logical CPU: 3 Thread 0 instruction stream: Binary Images: External Modification Summary: VM Region Summary:
REGION TYPE SIZE COUNT (non-coalesced) Full Report{"app_name":"wxmaxima","timestamp":"2023-02-16 13:18:50.00 -0600","app_version":"","slice_uuid":"437bcfad-9fdb-3ed2-8e70-abf97cc90bd0","build_version":"","platform":1,"share_with_app_devs":1,"is_first_party":1,"bug_type":"309","os_version":"macOS 12.6.3 (21G419)","incident_id":"F0885BB6-4C5F-4E2D-96EB-263C6B87B716","name":"wxmaxima"} ] Model: iMac17,1, BootROM 170.0.0.0.0, 4 processors, Quad-Core Intel Core i5, 3.2 GHz, 32 GB, SMC 2.33f12 |
lvwarren - Thanks for your report. I guess that using wxWidgets-3.2 is version 3.1.5. How to install wxMaxima-23.02.0 with wxWidgets-3.2.2.1 is as follows: (1) open the "MacPorts-Maxima-5.46.0-20230215.dmg" file and copy the "copy_portfiles.sh" file to the "${HOME}/Downloads" directory:
(2) open "${HOME}/Downloads/copy_portfiles.sh" with your favorite editor, and change M_DEVELOP="NO" to M_DEVELOP="YES".
Then "copy_portfiles.sh" copies additional port files (guile18, gd2, gnuplot, ghostscript, rst2pdf, wxwidgets-common, and wxwidgets-3.2) (3) copy the port files to the MacPorts directory:
(4) upgrade wxWidgets-3.2 to version 3.2.2.1:
(5) uninstall the installed wxMaxima-23.02.0:
(6) build and install wxMaxima-23.02.0 with wxWidgets-3.2.2.1:
|
Wow... ...a portfile for a recent wxMaxima version and someone who can test it? That is extremely good news! The crash backtrace seems to indicate that the following has happened:
Will search for the cause for the invalid bitmap this weekend. |
Thank you Gunter, you have really helped Maxima remain viable over the years.
…________________________________
From: Gunter Königsman ***@***.***>
Sent: Friday, February 17, 2023 2:28 PM
To: wxMaxima-developers/wxmaxima ***@***.***>
Cc: L Van Warren ***@***.***>; Author ***@***.***>
Subject: Re: [wxMaxima-developers/wxmaxima] Clicking wxMaxima --> Preferences on MacOS Results in Immediate Crash, Thus Can't Set Any Preferences (Issue #1749)
Wow... ...a portfile for a recent wxMaxima version and someone who can test it? That is extremely good news!
The crash backtrace seems to indicate that the following has happened:
The preference dialogue is created as a notebook-like object with several tabs.
Every tab gets its own icon in form of a bitmap.
One of these bitmaps is invalid and
wxMaxima has detected that and has offered to crash - which is helpful, because it allows to get a backtrace. The dialogue that opens before the crash should contain an "abort" button that tells not to crash in this place. With a bit of luck afterwards the program works fine.
Will search for the cause for the invalid bitmap this weekend.
—
Reply to this email directly, view it on GitHub<#1749 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAEP4LT4A64YGQUHWBWW23DWX7NNLANCNFSM6AAAAAAU3AY6SI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Tomio - Then following up by check the main.log: version:1 Thanks, Van |
lvwarren - Sorry for the inconvenience. Anyway, simple workaround is as follows: (1) clean the work directory of gnuplot:
(2) revert to Gnuplot-5.4.3 port file:
(3) clean the work directory of wxmaxima:
(4) build and install wxMaxima-23.02.0 with wxWidgets-3.2.2.1:
|
I am glad to hear that.
I guess that there is not the translation into your language. For example, you can change the default language to english in order to avoid the issue. (1) choose "Preferences..." of the wxMaxima menu |
Tomio - As always this is tremendously helpful. I thought this change would be trivial, but it wasn't. Here's why: This is the Mac in Dark Mode after selecting wxMaxima --> Preferences... After searching all the menus, I was unable to find the familiar display of icons which your image depicted. So then I tried Light Mode to obtain: At this point it became clear that the large white cursor, was not a cursor, it was an icon selection, but the icon was not being rendered correctly in aspect ratio, size, or color. I would then hit imaginary points to the right of each large white cursor to obtain a new page: I then found the page you referred to and change the preferred language from Automatic to English. Hope this helps. I'm just glad its working, since I rely heavily on it for many reasons. Jim Purtillo brought a copy of Maxima from MIT to UIUC where I was in 1983. So I've been using it for 40 years and it is just as wonderful now as it was back then.
|
lvwarren -
Oh, I have forgotten the issue. Thanks for the description. I am using macOS High Sierra. So my solution is to select the "Open in Low Resolution" option in the app's Info window:
But this solution is for macOS Big Sur and earlier. |
A simple text label e.g. the one on the icon would be completely adequate. |
@tomio-arisaka : You're a genius! That means that the whole problem is that I forgot to tell the bitmap provider to generate a bitmap of the correct resolution. |
Resolved with commit f32912f. |
I believe I've just found another similar bug in the draw wizards. With a bit of luck these wizards now work on high-dpi mac computers now, too. |
Thank you so much!
…________________________________
From: Gunter Königsman ***@***.***>
Sent: Tuesday, February 21, 2023 12:30 PM
To: wxMaxima-developers/wxmaxima ***@***.***>
Cc: L Van Warren ***@***.***>; Mention ***@***.***>
Subject: Re: [wxMaxima-developers/wxmaxima] Clicking wxMaxima --> Preferences on MacOS Results in Immediate Crash, Thus Can't Set Any Preferences (Issue #1749)
@tomio-arisaka<https://github.com/tomio-arisaka> : You're a genius! That means that the whole problem is that I forgot to tell the bitmap provider to generate a bitmap of the correct resolution.
@lvwarren<https://github.com/lvwarren> : That would be true, but now that you two have done all the debugging it is quite easy to fix this bug. Thanks a lot!
—
Reply to this email directly, view it on GitHub<#1749 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAEP4LREZGJLHFAAM74ROU3WYUCU7ANCNFSM6AAAAAAU3AY6SI>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Thanks Gunter. lvwarren - The attached file is an updated version of my MacPorts port-files. You can install the current development version of wxMaxima with wxmaxima-devel port. (0) download "MacPorts-Maxima-5.46.0-20230222.dmg.zip", remove the quarantine attribute of it, and copy the port-files to the MacPorts directory (1) deactivate wxMaxima-23.02.0 without uninstalling it:
(2) build and install the development version of wxMaxima:
After that, if you want to revert to wxMaxima-23.02.0, then as follows:
On macOS High Sierra, under the development version of wxMaxima, nothing is changed. |
I cannot reply to the issue for a while. So I describe how to change the wxmaxima-devel port-file in order to build the development version of wxMaxima as follows: (1) copy the port-file to the desktop directory, and open it with your favorite editor:
(2) see the next web-page: choose a commit which you want to build, and click the "Copy the full SHA" icon in order to copy the hash value of the commit. (e.g. bf03abb) (3) change the current hash value to the new one:
(4) copy the modified port-file to the MacPorts directory and get the correct checksum:
(5) change the current checksum to the correct one, and change the version:
(6) copy the modified port-file to the MacPorts directory, and verify the checksum:
After that, you can build the development version of wxMaxima with the wxmaxima-devel port. |
wxMaxima version: 21.02.0_MAC
using wxWidgets version: wxWidgets 3.0.5
Maxima version: 5.46.0
Maxima build date: 2023-01-18 10:00:48
Host type: x86_64-apple-darwin21.3.0
System type: Darwin 21.6.0 X86-64
Lisp implementation type: SBCL
Lisp implementation version: 2.3.0
wxMaxima's idea of the directory layout is:
User configuration dir: /Users/van/.maxima/
Help dir: /Applications/MacPorts/wxMaxima.app/Contents/Resources
MacOS Monterey Version 12.6.3
Hardware Overview:
Model Name: iMac
Model Identifier: iMac17,1
Processor Name: Quad-Core Intel Core i5
Processor Speed: 3.2 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 6 MB
Memory: 32 GB
System Firmware Version: 170.0.0.0.0
OS Loader Version: 540.120.3~22
SMC Version (system): 2.33f12
Clicking Help --> Check for Updates yields:
You have version 21.02.0. Current version is 23.02.0.
Click OK to visit wxMaxima web page,
This trail leads back to the current installation
The text was updated successfully, but these errors were encountered: