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

Alpaca crashes on startup on Debian/KDE #446

Open
Haui1112 opened this issue Jan 6, 2025 · 3 comments
Open

Alpaca crashes on startup on Debian/KDE #446

Haui1112 opened this issue Jan 6, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@Haui1112
Copy link

Haui1112 commented Jan 6, 2025

Describe the bug
Very recently (also fully updated), the app briefly opens on startup and closes again. If tried persistently, the app opens and briefly works but freezes forever and needs to be closed with kill task. When opened with flatpak run, it displays the following error message:

haui@***:~$ flatpak run com.jeffser.Alpaca
INFO    [main.py | main] Alpaca version: 3.2.0
INFO    [connection_handler.py | start] Starting Alpaca's Ollama instance...
INFO    [connection_handler.py | start] Started Alpaca's Ollama instance
Couldn't find '/home/haui/.ollama/id_ed25519'. Generating new private key.
Your new public key is: 

Error: listen tcp 127.0.0.1:11435: bind: address already in use
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHaZHvQGulUDX/F+8Sn2msxDi0m6hmLKIGHVww06****

INFO    [connection_handler.py | start] client version is 0.5.4
**
Gtk:ERROR:../gtk/gtkboxlayout.c:646:gtk_box_layout_compute_opposite_size_for_size: assertion failed: (sizes[nvis_children - n_inconstant].data == child)
Bail out! Gtk:ERROR:../gtk/gtkboxlayout.c:646:gtk_box_layout_compute_opposite_size_for_size: assertion failed: (sizes[nvis_children - n_inconstant].data == child)

Expected behavior
The app opens and is responsive.

Screenshots
Screenshot_20250106_105133
Screenshot_20250106_105232

Debugging information

It doesnt get to this. The app does not respond to any clicks.

@Haui1112 Haui1112 added the bug Something isn't working label Jan 6, 2025
@lightonflux
Copy link

I too have the problem that it opens and becomes unresponsive on Fedora. After some trying, it starts again, but has forgotten its models. So i need to re-add/"download" them again. And because they are on disk the download is immediate. @Haui1112 can you observe the same?

@Jeffser
Copy link
Owner

Jeffser commented Jan 7, 2025

Hi, thanks for the report, this has been an issue that pops up from time to time.

It's caused by the launching process being done in a different thread than the main one, what I did to fix this is move everything to the main GTK thread except for these:

  • Chat loading
  • Model loading (available model list / local models)
  • Ollama instance loading (when applicable)

I tested the launch process 100 times and it didn't fail at all, of course that doesn't mean is perfect, like I said, it's an issue that pops up from time to time.

3a27513
70f744f

I'm still cooking the next release so it might take a couple of days for the fix to reach Flathub.

As for @lightonflux issue, I believe that might be caused by the same threading problem, I've never seen that problem but it might have been fixed with the other stuff.

@lightonflux
Copy link

Good to know. @Jeffser i will report it separately if i encounter it again with the coming version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants