Skip to content
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

XMage is unusable on Mac M1 #12431

Closed
danielfranke opened this issue Jun 8, 2024 · 10 comments
Closed

XMage is unusable on Mac M1 #12431

danielfranke opened this issue Jun 8, 2024 · 10 comments
Assignees
Labels
bug Bugs and errors linux / macos

Comments

@danielfranke
Copy link

danielfranke commented Jun 8, 2024

Any mouse click in "Connect to Server" window causes XMage to hang (crash - spinning wheel on Mac).

MacBook Pro, 16 inch, 2021
Chip: Apple M1 Max
Memory 64 GB
MacOS Sonoma 14.5
Java 8 update 411

----- CRASH LOG ------

Date/Time: 2024-06-07 22:24:26.230 -0400
End time: 2024-06-07 22:24:45.991 -0400
OS Version: macOS 14.5 (Build 23F79)
Architecture: arm64e
Report Version: 49
Incident Identifier: 6C075C46-EF91-44F9-8710-6C394544173C
Share With Devs: Yes

Data Source: Stackshots
Shared Cache: 3406AD1B-2469-30EB-9863-5DCE861E6DEA slid base address 0x18fba4000, slide 0xfba4000 (System Primary)
Shared Cache: 03FF7F1F-0B2B-3DA3-9879-86BA9BC31444 slid base address 0x1916cc000, slide 0x116cc000 (DriverKit)
Shared Cache: 6F51A82C-C96C-3BC8-82CA-9C109185BD3C slid base address 0x7ff806ecc000, slide 0x6ecc000 (Rosetta)

Command: mage.client.MageFrame
Path: /Applications/XMageBeta/*/java
Codesigning ID: net.java.openjdk.cmd
Team ID: VB5E2TV963
Architecture: x86_64 (translated)
Parent: XMageLauncher-0.3.8 [1812]
Responsible: JavaLauncher [1811]
PID: 1819
Time Since Fork: 461s

Event: hang
Duration: 19.76s
Duration Sampled: 1.10s (process was unresponsive for 19 seconds before sampling)
Steps: 11 (100ms sampling interval)

Hardware model: MacBookPro18,2
Active cpus: 10
HW page size: 16384
VM page size: 16384

Time Since Boot: 2849s
Time Awake Since Boot: 2849s
Time Since Wake: n/a (machine hasn't slept)

Fan speed: 0 rpm
Total CPU Time: 1.338s (2.1G cycles, 2.4G instructions, 0.89c/i)
Advisory levels: Battery -> 1, User -> 2, ThermalPressure -> 0, Combined -> 1
Free disk space: 3046.13 GB/3721.87 GB, low space threshold 3072 MB
Vnodes Available: 82.33% (216670/263168)

Preferred User Language: en-CA
Country Code: CA
OS Cryptex File Extents: 1

@JayDi85
Copy link
Member

JayDi85 commented Jun 8, 2024

As workaround until next update -- workable fix 1:

P.S.

Experimental fix 2 for never worked macos with m1/m2 (who can't run xmage due startup freeze for many years): Not work…

  • disable auto-connect in connection dialog and close xmage;
  • download and replace file http://xmage.today/X/macos/fix2/mage-client-1.4.50.jar
  • open launcher settings - java - client options and add at the end xxx -Dxmage.fullScreen=true (xxx - your old settings, then space, then new setting);
  • it's test version, you can't play on public or local server with it;
  • shot_240614_182834

@JayDi85 JayDi85 changed the title XMage Latest version 1.4.51-dev (2024-06-06 19-55) is unusable on Mac XMage is unusable on Mac M1 Jun 8, 2024
@JayDi85 JayDi85 added linux / macos bug Bugs and errors labels Jun 8, 2024
@danielfranke
Copy link
Author

Workaround now provided access to the interface but Mac Client freezes when using mouse for most configuration windows (e.g.: Using drop down menus or clicking with mouse inside a pop-up window to change a setting). ** Work around is using keyboard only with tab + enter keys but this is not always possible for example when prompted to enter a value such as number of cards to draw during play.

@JayDi85
Copy link
Member

JayDi85 commented Jun 9, 2024

@danielfranke did old versions (from last months) also not work on your mac due freeze on menu usage?

@danielfranke
Copy link
Author

@danielfranke did old versions (from last months) also not work on your mac due freeze on menu usage?

Previous versions did allow me to access the interface (unlike newest version) but freeze up regularly when using any kind of menu with drop down. Buttons when used alone worked as expected.

@JayDi85
Copy link
Member

JayDi85 commented Jun 10, 2024

@danielfranke can you try that fix -- is it workable? Nope, it's not

@danielfranke
Copy link
Author

danielfranke commented Jun 10, 2024

@danielfranke can you try that fix -- is it workable?

Unfortunately, this version does not work. The client hangs before I can connect to any server.
The previous version produced better results (http://xmage.today/X/mage-client-1.4.50.jar).

@JayDi85
Copy link
Member

JayDi85 commented Jun 11, 2024

@danielfranke can you write me DM in discord https://discord.gg/Qn7gN6VR ? I have some versions and tooltips for possible fix.

@calkno
Copy link

calkno commented Jul 10, 2024

I'm running into (what appears to be) the same issue. Any updates on this? Glad to provide any info needed

@JayDi85
Copy link
Member

JayDi85 commented Aug 31, 2024

Solutuion for users who raplaced java, but can't play on public servers -- now it can be compatible: #12768

JayDi85 added a commit that referenced this issue Sep 7, 2024
- GUI: added non-blocking UI to almost all app and game dialogs;
- GUI: it allows to switch between UI dialogs and use any UI elements at any moment;
- GUI: it allows to use chat, card popup, battlefield, concede and other features while choosing (related to #12670);
- GUI: it allows to download images while playing (related to #4160, not fully tested);
- GUI: enabled by default, can be disabled by java option: -Dxmage.guiModalMode=true
- connection: auto-connect will be visible in main menu on startup;
- connection: removed some unused features (auto-connect by command line);
- connection: added <ESC> button to close connection dialog;
- download: added background images download (see non-blocking UI);
- download: improved cancel stability and fixes that it can't stop preparing/downloading process in some use cases;
- app: fixed freezes on macOS systems in some use cases (related to #12431, #11292, #9300, #4920);
@JayDi85 JayDi85 self-assigned this Sep 9, 2024
@JayDi85
Copy link
Member

JayDi85 commented Sep 9, 2024

Original problem was in wrong implementation of modal windows (xmage code for system events processing). Not actual anymore with non-blocking UI in last release #12825

@JayDi85 JayDi85 closed this as completed Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs and errors linux / macos
Projects
None yet
Development

No branches or pull requests

3 participants