Homebrew / homebrew-core

🍻 Default formulae for the missing package manager for macOS (or Linux)
https://brew.sh
BSD 2-Clause "Simplified" License
13.38k stars 12.17k forks source link

virt-manager will only run if run with --debug flag #173591

Closed Itxaka closed 4 weeks ago

Itxaka commented 4 weeks ago

brew gist-logs <formula> link OR brew config AND brew doctor output

$ brew config
HOMEBREW_VERSION: 4.3.3
ORIGIN: https://github.com/Homebrew/brew
HEAD: e130e47f23b8b806096f9ec4f2c193213b8ec908
Last commit: 18 hours ago
Core tap JSON: 03 Jun 15:55 UTC
Core cask tap JSON: 03 Jun 15:55 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_NO_ENV_HINTS: set
Homebrew Ruby: 3.3.2 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.2/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 15.0.0 build 1500
Git: 2.39.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.6.0 => /usr/bin/curl
macOS: 14.5-arm64
CLT: 15.3.0.0.1.1708646388
Xcode: N/A
Rosetta 2: false
# itxaka @ Itxakas-MacBook-Air in ~/projects/kairos-sdk on git:main o [18:10:57]
$ brew doctor
Your system is ready to brew.

### Verification

- [X] My `brew doctor` output says `Your system is ready to brew.` and am still able to reproduce my issue.
- [X] I ran `brew update` and am still able to reproduce my issue.
- [X] I have resolved all warnings from `brew doctor` and that did not fix my problem.
- [X] I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.

### What were you trying to do (and why)?

launch virt-manager

### What happened (include all command output)?

# itxaka @ Itxakas-MacBook-Air in ~/projects/kairos-sdk on git:main o [18:11:48]
$ objc[38148]: +[NSPlaceholderMutableString initialize] may have been in progress in another thread when fork() was called.
objc[38148]: +[NSPlaceholderMutableString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.

### What did you expect to happen?

to run virt-manager with no issues

### Step-by-step reproduction instructions (by running `brew` commands)

```shell
brew install virt-manager or brew install virt-manager --HEAD
virt-manager

but if you run it with --debug flag it seems to work?

# itxaka @ Itxakas-MacBook-Air in ~/projects/kairos-sdk on git:main o [18:12:20]
$ virt-manager --debug
[lun, 03 jun 2024 18:13:28 virt-manager 38557] DEBUG (cli:204) Version 4.1.0 launched with command line: /opt/homebrew/bin/virt-manager --debug
[lun, 03 jun 2024 18:13:28 virt-manager 38557] DEBUG (virtmanager:169) virt-manager version: 4.1.0
[lun, 03 jun 2024 18:13:28 virt-manager 38557] DEBUG (virtmanager:170) virtManager import: /opt/homebrew/Cellar/virt-manager/HEAD-a91e23c_6/share/virt-manager/virtManager
[lun, 03 jun 2024 18:13:28 virt-manager 38557] DEBUG (virtmanager:207) PyGObject version: 3.48.2
[lun, 03 jun 2024 18:13:28 virt-manager 38557] DEBUG (virtmanager:211) GTK version: 3.24.42
[lun, 03 jun 2024 18:13:28 virt-manager 38557] DEBUG (systray:479) Showing systray: False
[lun, 03 jun 2024 18:13:28 virt-manager 38557] DEBUG (inspection:205) python guestfs is not installed
[lun, 03 jun 2024 18:13:28 virt-manager 38557] DEBUG (engine:112) No stored URIs found.
[lun, 03 jun 2024 18:13:28 virt-manager 38557] DEBUG (engine:489) processing cli command uri= show_window=manager domain=
[lun, 03 jun 2024 18:13:28 virt-manager 38557] DEBUG (engine:498) No cli action requested, launching default window
[lun, 03 jun 2024 18:13:28 virt-manager 38557] DEBUG (manager:185) Showing manager
[lun, 03 jun 2024 18:13:28 virt-manager 38557] DEBUG (engine:317) window counter incremented to 1
[lun, 03 jun 2024 18:13:28 virt-manager 38557] DEBUG (engine:212) Initial gtkapplication activated
[lun, 03 jun 2024 18:13:29 virt-manager 38557] DEBUG (engine:136) Probed default URI=None

So I have no idea why it would fail without --debug??

SMillerDev commented 4 weeks ago

Seems like https://github.com/virt-manager/virt-manager/issues/620 again

Itxaka commented 4 weeks ago

thanks @SMillerDev !