Pamac keeps crashing with every update

Have you checked lately for any pacnew files.

Most comments so far are not answering the original question

How can I fix this issue, please?

I suggest launching pamac GUI from terminal next time updates are available

pamac-manager --updates

There should be more informative error messages in terminal if GUI fails to launch
If the GUI launches sucessfully from terminal, issue might just be with the update notifier widget

If pamac GUI fails to launch from terminal, try using pamac-cli to update repository packages only

pamac update --no-aur

It doesn’t work from the main app, too, not only the notifier widget.

So, that means the issue is in AUR packages??

What is that exactly?

You can check this https://wiki.manjaro.org/index.php/Main_Page`
and this manjaro-pacnew-checker.

When you have an issue, post the ENTIRE output or log. Information is crucial to being able to solve any problem. I’ve seen threads go for pages and all someone needed to do was ask for a log file or simple command output.

Post complete logs/output/versions/error messages / Newbie Corner / Arch Linux Forums

We’re almost 50 replies in and no one has asked for the terminal output?

Please post the output of the the following using Preformatted text:

pamac-manager

See also [HowTo] Request support

❯ pacman -Si discover | grep packagekit
Optional Deps   : packagekit-qt5: to manage packages from Arch Linux repositories (not recommended, use at your own risk)

Warning: PackageKit opens up system permissions by default, and is otherwise not recommended for general usage. See FS#50459 and FS#57943.

pacman/Tips and tricks - ArchWiki

Gtk-Message: 21:59:29.238: Failed to load module "appmenu-gtk-module"

(pamac-manager:58340): Gdk-CRITICAL **: 21:59:30.543: gdk_window_set_cursor: assertion 'GDK_IS_WINDOW (window)' failed



Aargh, I expected as much. Sometimes stderr / stdout (look up each term if you’d like) messages aren’t always helpful.

It sounds like you’ve already made sure you were fully up to date via pacman, so the next step would be using GDB to debug the program.

First, install the Pamac debug packages:

sudo pacman -S --needed gdb libpamac-debug pamac-cli-debug

Then one of the following:

If you’re using pamac-gtk (Gtk 4):

sudo pacman -S pamac-debug

If you’re using pamac-gtk3 (Gtk 3):

sudo pacman -S pamac-gtk3-debug

Then run:

gdb -q --args pamac-manager

Enable debuginfod for the session when prompted. It may take some time for the debug info to download.

Example:

❯ gdb -q --args pamac-manager
Reading symbols from pamac-manager...
Reading symbols from /usr/lib/debug/usr/bin/pamac-manager.debug...
(gdb) run
Starting program: /usr/bin/pamac-manager 

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
Downloading separate debug info for ...

After that’s finished, gdb will attempt to run pamac-manager. That will be the important output.

Afterward, you can type exit at the (gdb) prompt.

 gdb -q --args pamac-manager                                ✔ 

zsh: correct 'gdb' to '_gdb' [nyae]? n
Reading symbols from pamac-manager...
Reading symbols from /usr/lib/debug/usr/bin/pamac-manager.debug...
(gdb) 
(gdb) run
Starting program: /usr/bin/pamac-manager 

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
Downloading separate debug info for /lib64/ld-linux-x86-64.so.2
Downloading separate debug info for system-supplied DSO at 0x7ffff7fc8000 
Downloading separate debug info for /usr/lib/libgtk-3.so.0                
Downloading separate debug info for /usr/lib/libgdk-3.so.0                
Downloading separate debug info for /usr/lib/libgdk_pixbuf-2.0.so.0       
Downloading separate debug info for /usr/lib/libgio-2.0.so.0              
Downloading separate debug info for /usr/lib/libgobject-2.0.so.0          
Downloading separate debug info for /usr/lib/libglib-2.0.so.0             
Downloading separate debug info for /usr/lib/libhandy-1.so.0              
Downloading separate debug info for /usr/lib/libc.so.6                    
[Thread debugging using libthread_db enabled]                             
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Downloading separate debug info for /usr/lib/libgmodule-2.0.so.0
Downloading separate debug info for /usr/lib/libpangocairo-1.0.so.0       
Downloading separate debug info for /usr/lib/libpango-1.0.so.0            
Downloading separate debug info for /usr/lib/libharfbuzz.so.0             
Downloading separate debug info for /usr/lib/libcairo.so.2                
Downloading separate debug info for /usr/lib/libpangoft2-1.0.so.0         
Downloading separate debug info for /usr/lib/libfontconfig.so.1           
Downloading separate debug info for /usr/lib/libfribidi.so.0              
Downloading separate debug info for /usr/lib/libcairo-gobject.so.2        
Downloading separate debug info for /usr/lib/libatk-1.0.so.0              
Downloading separate debug info for /usr/lib/libepoxy.so.0                
Downloading separate debug info for /usr/lib/libm.so.6                    
Downloading separate debug info for /usr/lib/libXi.so.6                   
Downloading separate debug info for /usr/lib/libX11.so.6                  
Downloading separate debug info for /usr/lib/libatk-bridge-2.0.so.0       
Downloading separate debug info for /usr/lib/libcloudproviders.so.0       
Downloading separate debug info for /usr/lib/libtracker-sparql-3.0.so.0   
Downloading separate debug info for /usr/lib/libXfixes.so.3               
Downloading separate debug info for /usr/lib/libxkbcommon.so.0            
Downloading separate debug info for /usr/lib/libwayland-client.so.0       
Downloading separate debug info for /usr/lib/libwayland-cursor.so.0       
Downloading separate debug info for /usr/lib/libwayland-egl.so.1          
Downloading separate debug info for /usr/lib/libXext.so.6                 
Downloading separate debug info for /usr/lib/libXcursor.so.1              
Downloading separate debug info for /usr/lib/libXdamage.so.1              
Downloading separate debug info for /usr/lib/libXcomposite.so.1           
Downloading separate debug info for /usr/lib/libXrandr.so.2               
Downloading separate debug info for /usr/lib/libXinerama.so.1             
Downloading separate debug info for /usr/lib/libpng16.so.16               
Downloading separate debug info for /usr/lib/libjpeg.so.8                 
Downloading separate debug info for /usr/lib/libtiff.so.6                 
Downloading separate debug info for /usr/lib/libz.so.1                    
Downloading separate debug info for /usr/lib/libmount.so.1                
Downloading separate debug info for /usr/lib/libffi.so.8                  
Downloading separate debug info for /usr/lib/libpcre2-8.so.0              
Downloading separate debug info for /usr/lib/libalpm.so.13                
Downloading separate debug info for /usr/lib/libsoup-3.0.so.0             
Downloading separate debug info for /usr/lib/libthai.so.0                 
Downloading separate debug info for /usr/lib/libfreetype.so.6             
Downloading separate debug info for /usr/lib/libgraphite2.so.3            
Downloading separate debug info for /usr/lib/libXrender.so.1              
Downloading separate debug info for /usr/lib/libxcb.so.1                  
Downloading separate debug info for /usr/lib/libxcb-render.so.0           
Downloading separate debug info for /usr/lib/libxcb-shm.so.0              
Downloading separate debug info for /usr/lib/libpixman-1.so.0             
Downloading separate debug info for /usr/lib/libexpat.so.1                
Downloading separate debug info for /usr/lib/libatspi.so.0                
Downloading separate debug info for /usr/lib/libdbus-1.so.3               
Downloading separate debug info for /usr/lib/libjson-glib-1.0.so.0        
Downloading separate debug info for /usr/lib/libxml2.so.2                 
Downloading separate debug info for /usr/lib/libsqlite3.so.0              
Downloading separate debug info for /usr/lib/libzstd.so.1                 
Downloading separate debug info for /usr/lib/liblzma.so.5                 
Downloading separate debug info for /usr/lib/libjbig.so.2.1               
Downloading separate debug info for /usr/lib/libblkid.so.1                
Downloading separate debug info for /usr/lib/libcrypto.so.3               
Downloading separate debug info for /usr/lib/libarchive.so.13             
Downloading separate debug info for /usr/lib/libcurl.so.4                 
Downloading separate debug info for /usr/lib/libgpgme.so.11               
Downloading separate debug info for /usr/lib/libpsl.so.5                  
Downloading separate debug info for /usr/lib/libbrotlidec.so.1            
Downloading separate debug info for /usr/lib/libgssapi_krb5.so.2          
Downloading separate debug info for /usr/lib/libnghttp2.so.14             
Downloading separate debug info for /usr/lib/libdatrie.so.1               
Downloading separate debug info for /usr/lib/libbz2.so.1.0                
Downloading separate debug info for /usr/lib/libXau.so.6                  
Downloading separate debug info for /usr/lib/libXdmcp.so.6                
Downloading separate debug info for /usr/lib/libsystemd.so.0              
Downloading separate debug info for /usr/lib/libicuuc.so.73               
Downloading separate debug info for /usr/lib/libacl.so.1                  
Downloading separate debug info for /usr/lib/liblz4.so.1                  
Downloading separate debug info for /usr/lib/libidn2.so.0                 
Downloading separate debug info for /usr/lib/libssh2.so.1                 
Downloading separate debug info for /usr/lib/libssl.so.3                  
Downloading separate debug info for /usr/lib/libassuan.so.0               
Downloading separate debug info for /usr/lib/libgpg-error.so.0            
Downloading separate debug info for /usr/lib/libunistring.so.5            
Downloading separate debug info for /usr/lib/libbrotlicommon.so.1         
Downloading separate debug info for /usr/lib/libkrb5.so.3                 
Downloading separate debug info for /usr/lib/libk5crypto.so.3             
Downloading separate debug info for /usr/lib/libcom_err.so.2              
Downloading separate debug info for /usr/lib/libkrb5support.so.0          
Downloading separate debug info for /usr/lib/libkeyutils.so.1             
Downloading separate debug info for /usr/lib/libresolv.so.2               
Downloading separate debug info for /usr/lib/libcap.so.2                  
Downloading separate debug info for /usr/lib/libgcrypt.so.20              
Downloading separate debug info for /usr/lib/libicudata.so.73             
Downloading separate debug info for /usr/lib/gio/modules/libgvfsdbus.so   
Downloading separate debug info for /usr/lib/gvfs/libgvfscommon.so        
[New Thread 0x7ffff27ff6c0 (LWP 2309)]                                    
[New Thread 0x7fffe9ffe6c0 (LWP 2310)]
[New Thread 0x7ffff1ffe6c0 (LWP 2311)]
Downloading separate debug info for /usr/lib/libappstream.so.4
Downloading separate debug info for /usr/lib/libxmlb.so.2                 
Downloading separate debug info for /usr/lib/libyaml-0.so.2               
Downloading separate debug info for /usr/lib/libstemmer.so.0              
Downloading separate debug info for /usr/lib/libsnapd-glib-2.so.1         
Downloading separate debug info for /usr/lib/libflatpak.so.0              
Downloading separate debug info for /usr/lib/libdconf.so.1                
Downloading separate debug info for /usr/lib/libostree-1.so.1             
Downloading separate debug info for /usr/lib/libseccomp.so.2              
Downloading separate debug info for /usr/lib/libmalcontent-0.so.0         
Downloading separate debug info for /usr/lib/libpolkit-gobject-1.so.0     
Downloading separate debug info for /usr/lib/libavahi-common.so.3         
Downloading separate debug info for /usr/lib/libavahi-client.so.3         
Downloading separate debug info for /usr/lib/libavahi-glib.so.1           
Downloading separate debug info for /usr/lib/libsodium.so.23              
Downloading separate debug info for /usr/lib/libpthread.so.0              
Downloading separate debug info for /usr/lib/gtk-3.0/modules/libxapp-gtk3-module.so
Downloading separate debug info for /usr/lib/libxapp.so.1                 
Downloading separate debug info for /usr/lib/libgnomekbdui.so.8           
Downloading separate debug info for /usr/lib/libgnomekbd.so.8             
Downloading separate debug info for /usr/lib/libxklavier.so.16            
Downloading separate debug info for /usr/lib/libxkbfile.so.1              
Downloading separate debug info for /usr/lib/gtk-3.0/modules/libcanberra-gtk-module.so
Downloading separate debug info for /usr/lib/libcanberra-gtk3.so.0        
Downloading separate debug info for /usr/lib/libcanberra.so.0             
Downloading separate debug info for /usr/lib/libvorbisfile.so.3           
Downloading separate debug info for /usr/lib/libtdb.so.1                  
Downloading separate debug info for /usr/lib/libltdl.so.7                 
Downloading separate debug info for /usr/lib/libvorbis.so.0               
Downloading separate debug info for /usr/lib/libogg.so.0                  
Downloading separate debug info for /usr/lib/gtk-3.0/modules/libcolorreload-gtk-module.so
Downloading separate debug info for /usr/lib/gtk-3.0/modules/libwindow-decorations-gtk-module.so
Gtk-Message: 10:43:24.894: Failed to load module "appmenu-gtk-module"     
[New Thread 0x7ffff10a36c0 (LWP 2312)]
[Thread 0x7ffff10a36c0 (LWP 2312) exited]
[New Thread 0x7ffff10a36c0 (LWP 2313)]
[New Thread 0x7fffebfff6c0 (LWP 2314)]
[Thread 0x7ffff10a36c0 (LWP 2313) exited]
[New Thread 0x7ffff10a36c0 (LWP 2315)]
[New Thread 0x7fffeb7fe6c0 (LWP 2316)]
[Thread 0x7ffff10a36c0 (LWP 2315) exited]
[Thread 0x7fffebfff6c0 (LWP 2314) exited]
[Thread 0x7fffeb7fe6c0 (LWP 2316) exited]
[New Thread 0x7fffeb7fe6c0 (LWP 2317)]
Downloading separate debug info for /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
Downloading separate debug info for /usr/lib/librsvg-2.so.2               
[New Thread 0x7fffebfff6c0 (LWP 2319)]                                    
[New Thread 0x7ffff10a36c0 (LWP 2320)]
[Thread 0x7fffebfff6c0 (LWP 2319) exited]
[Thread 0x7ffff10a36c0 (LWP 2320) exited]
[New Thread 0x7ffff10a36c0 (LWP 2321)]
[New Thread 0x7fffebfff6c0 (LWP 2322)]
[Thread 0x7ffff10a36c0 (LWP 2321) exited]
[New Thread 0x7ffff10a36c0 (LWP 2323)]
[Thread 0x7fffebfff6c0 (LWP 2322) exited]
[New Thread 0x7fffea9ff6c0 (LWP 2324)]
[Thread 0x7ffff10a36c0 (LWP 2323) exited]
[Thread 0x7fffea9ff6c0 (LWP 2324) exited]
[New Thread 0x7fffea9ff6c0 (LWP 2330)]
[Thread 0x7fffea9ff6c0 (LWP 2330) exited]
[Detaching after fork from child process 2331]
[Detaching after fork from child process 2332]
[Detaching after fork from child process 2333]
[Detaching after fork from child process 2334]

(pamac-manager:2290): Gdk-CRITICAL **: 10:43:31.283: gdk_window_set_cursor: assertion 'GDK_IS_WINDOW (window)' failed
[New Thread 0x7fffea9ff6c0 (LWP 2335)]
[New Thread 0x7ffff10a36c0 (LWP 2336)]
[New Thread 0x7fffebfff6c0 (LWP 2337)]
[Thread 0x7fffea9ff6c0 (LWP 2335) exited]
[Thread 0x7fffebfff6c0 (LWP 2337) exited]
[New Thread 0x7fffebfff6c0 (LWP 2338)]
[New Thread 0x7fffea9ff6c0 (LWP 2339)]
[Thread 0x7fffebfff6c0 (LWP 2338) exited]
[Thread 0x7fffea9ff6c0 (LWP 2339) exited]
Downloading separate debug info for /usr/lib/libcanberra-0.30/libcanberra-multi.so
Downloading separate debug info for /usr/lib/libcanberra-0.30/libcanberra-pulse.so
Downloading separate debug info for /usr/lib/libpulse.so.0                
Downloading separate debug info for /usr/lib/pulseaudio/libpulsecommon-16.1.so
Downloading separate debug info for /usr/lib/libsndfile.so.1              
Downloading separate debug info for /usr/lib/libasyncns.so.0              
Downloading separate debug info for /usr/lib/libvorbisenc.so.2            
Downloading separate debug info for /usr/lib/libFLAC.so.12                
Downloading separate debug info for /usr/lib/libopus.so.0                 
Downloading separate debug info for /usr/lib/libmpg123.so.0               
Downloading separate debug info for /usr/lib/libmp3lame.so.0              
[Thread 0x7ffff10a36c0 (LWP 2336) exited]                                 
[New Thread 0x7ffff10a36c0 (LWP 2340)]
Downloading separate debug info for /usr/lib/libcanberra-0.30/libcanberra-alsa.so
Downloading separate debug info for /usr/lib/libasound.so.2               
[New Thread 0x7fffea9ff6c0 (LWP 2341)]                                    
[New Thread 0x7fffebfff6c0 (LWP 2342)]
[Thread 0x7fffea9ff6c0 (LWP 2341) exited]
[New Thread 0x7fffea9ff6c0 (LWP 2343)]
[New Thread 0x7fffe97fd6c0 (LWP 2344)]
[Thread 0x7fffebfff6c0 (LWP 2342) exited]
[Thread 0x7fffea9ff6c0 (LWP 2343) exited]
[Thread 0x7fffe97fd6c0 (LWP 2344) exited]
Downloading separate debug info for /usr/lib/gio/modules/libgiognomeproxy.so
Downloading separate debug info for /usr/lib/gio/modules/libgiolibproxy.so
Downloading separate debug info for /usr/lib/libproxy.so.1                
Downloading separate debug info for /usr/lib/libproxy/libpxbackend-1.0.so 
Downloading separate debug info for /usr/lib/libduktape.so.207            
Downloading separate debug info for /usr/lib/gio/modules/libxfconfgsettingsbackend.so
Downloading separate debug info for /usr/lib/libxfconf-0.so.3             
Downloading separate debug info for /usr/lib/libgthread-2.0.so.0          
Downloading separate debug info for /usr/lib/libxfce4util.so.7            
Downloading separate debug info for /usr/lib/gio/modules/libdconfsettings.so
[New Thread 0x7fffe97fd6c0 (LWP 2345)]                                    
[New Thread 0x7fffea9ff6c0 (LWP 2346)]                                    
[New Thread 0x7fffebfff6c0 (LWP 2347)]
Downloading separate debug info for /usr/lib/libnss_mymachines.so.2
Downloading separate debug info for /usr/lib/libnss_mdns_minimal.so.2     
Downloading separate debug info for /usr/lib/libnss_resolve.so.2          
Downloading separate debug info for /usr/lib/libnss_myhostname.so.2       
Downloading separate debug info for /usr/lib/gio/modules/libgiognutls.so  
Downloading separate debug info for /usr/lib/libgnutls.so.30              
Downloading separate debug info for /usr/lib/libp11-kit.so.0              
Downloading separate debug info for /usr/lib/libbrotlienc.so.1            
Downloading separate debug info for /usr/lib/libtasn1.so.6                
Downloading separate debug info for /usr/lib/libnettle.so.8               
Downloading separate debug info for /usr/lib/libhogweed.so.6              
Downloading separate debug info for /usr/lib/libgmp.so.10                 
[Thread 0x7fffebfff6c0 (LWP 2347) exited]                                 
[Thread 0x7fffea9ff6c0 (LWP 2346) exited]
Downloading separate debug info for /usr/lib/pkcs11/p11-kit-trust.so      
[Thread 0x7fffeb7fe6c0 (LWP 2317) exited]                                 
exit
[New Thread 0x7fffeb7fe6c0 (LWP 2647)]
[Thread 0x7fffe97fd6c0 (LWP 2345) exited]
[Thread 0x7ffff10a36c0 (LWP 2340) exited]
[Thread 0x7ffff1ffe6c0 (LWP 2311) exited]
[Thread 0x7fffe9ffe6c0 (LWP 2310) exited]
[Thread 0x7ffff27ff6c0 (LWP 2309) exited]
[Thread 0x7ffff4bbce40 (LWP 2290) exited]
[Thread 0x7fffeb7fe6c0 (LWP 2647) exited]
[New process 2290]
[Inferior 1 (process 2290) exited normally]
(gdb) exit

Well, I don’t see anything obvious jumping out. However, the output may help @guinux debug the issue.

What about the output from the Pamac CLI? Does that work? Are there any errors?

I didn’t try yet. There are no updates to check, but I’ll try to reproduce the issue to be more detailed.

I found this post Pamac Error - Process org.manjaro.pamac.manager exited with status 127 I don’t know what that command can do. But, it’s something very similar to my issue, I think.

That’s not the point.

A good part of troubleshooting is process of elimination. Help us help you. :wink:

I also suffer from random crashes, so I applied your steps on my machine, and after Pamac crashes no stack is generated except some printed messages:

.
.
(pamac-manager:4485): Gdk-CRITICAL **: 20:34:04.221: gdk_window_set_cursor: assertion 'GDK_IS_WINDOW (window)' failed
.
.
(pamac-manager:4485): Gdk-WARNING **: 21:58:04.014: Server is missing xdg_foreign support
.
.
Gdk-Message: 22:55:42.046: Lost connection to Wayland compositor.
.
.
[Inferior 1 (process 4485) exited with code 01]
(gdb) bt
No stack.

I will try to do more testing to reproduce those random crashes and see if gdb print anything helpful.

Here you are

 pamac update --no-aur                                      ✔ 



Preparing...
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: Mina Waheed (minaw)
Password: 
==== AUTHENTICATION COMPLETE ====
Synchronizing package databases...
Refreshing extra.db...                                                    
Nothing to do.                                                            
Transaction successfully finished.
1 Like

just a random idea, try at your own risk, find your pamac.conf file and delete it and reboot and it should replace itself with default values, please someone tell me if im wrong, but this has saved my bacon on many an app configured wrong

As a general rule, it would probably be safer to advise people to rename or move the file instead.

right, right, and i did ask for corrections, i just assumed people knew that in linux any config is just that, a config and not that super cereal, it just defines user specified preferences, the trick in windows was to just rename the file with a .old at end and its super obvious which one you decided to disable so it can be restored at a later date, i just get so lazy with expressing my intentions by typing them, le sigh

like this:

mv ~/.config/pamac/config ~/.config/pamac/config.bak
1 Like

@MW_J97 @medmedin It turns out the GDB output was not useful. I was hoping it would be.

The best thing to do would be to see if there’s already a related upstream issue and chime in. If not, create a new issue with the information you’ve gathered.

Keep in mind @guinux is the only Pamac developer and you may not receive a response. He does review issues and fixes things when he has time.

When this occurs, is it just pamac that crashes or are you unable to open task manager and most all other system utilities, including add/remove programs? I think I might be experiencing the same issue, and have been for many months. I started a different thread here New pending updates break my system - #2 by andreas85 for mine. Just updated it with system logs today.

My issue was never noticed before hand. Id be doing w/e in the system tray and notice updates indicator. Id click on it and nothing. After this happened a few times, I began trying things before hard resetting (glad to know I have option now vs JUST a hard restart) and thats when I noticed that no system utilities would launch. Also, the start menu would work but clicking on restart, it would do nothing.

Im adding my comment to the thread in case it might assist a solution being found (assuming that it is the same bug)