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

core dump on start #103

Closed
mxmilkiib opened this issue Sep 20, 2021 · 5 comments
Closed

core dump on start #103

mxmilkiib opened this issue Sep 20, 2021 · 5 comments
Labels
invalid This doesn't seem right

Comments

@mxmilkiib
Copy link

Bug description

% optimus-manager-qt
Unable to read current mode from Optimus Manager state file
zsh: abort (core dumped)  optimus-manager-qt
% coredumpctl -1 info
           PID: 37098 (optimus-manager)
           UID: 1001 (milk)
           GID: 1001 (milk)
        Signal: 6 (ABRT)
     Timestamp: Mon 2021-09-20 20:05:28 BST (2min 26s ago)
  Command Line: optimus-manager-qt
    Executable: /usr/bin/optimus-manager-qt
 Control Group: /user.slice/user-1001.slice/session-1.scope
          Unit: session-1.scope
         Slice: user-1001.slice
       Session: 1
     Owner UID: 1001 (milk)
       Boot ID: 7e9f7d83b044478b9463fb6a44ea6b84
    Machine ID: 13e3e2ee85664436b5512c752462b86b
      Hostname: red
       Storage: /var/lib/systemd/coredump/core.optimus-manager.1001.7e9f7d83b044478b9463fb6a44ea6b84.37098.1632164728000000.zst (presen>
     Disk Size: 969.0K
       Message: Process 37098 (optimus-manager) of user 1001 dumped core.

                Found module linux-vdso.so.1 with build-id: e96b8369c96046d285d6dfcba38fb465a344b231
                Found module libnss_files.so.2 with build-id: 1a36dfc01d3a1010b2ee79766a24a8090a3266d5
                Found module libQt5X11Extras.so.5 with build-id: e41614d2e35852f913bf00633d635cfbf5a90dce
                Found module libKF5Style.so.5 with build-id: 0ed8715b4deb2e96f710e2c65a950bb463b852c6
                Found module libbreezecommon5.so.5 with build-id: 05c959663a9368be8fb4b25d3286e4ea80cf34ab
                Found module libKF5WindowSystem.so.5 with build-id: 4465afe9665b61e245c8dcffff5587a9d11c535b
                Found module breeze.so with build-id: 6ce8a5ee41fc634662a1945b7280cebb5b18a828
                Found module libqt5ct-style.so with build-id: 4b20e8cc2116c15aef619e80b7e83e0ab79417cb
                Found module libcomposeplatforminputcontextplugin.so with build-id: ae32608db6d28ea3ecf23757601228688bb7976a
                Found module libffi.so.7 with build-id: de60e99f39569d11d09160bbdcd486cedc87d2b6
                Found module libwayland-cursor.so.0 with build-id: a8b45436314425ee9a92efaff68bd2b79f870e77
                Found module libwayland-client.so.0 with build-id: 58038363d7ea1fd5e6532f6e5f90b1a3ce09388a
                Found module libQt5WaylandClient.so.5 with build-id: 5eff48f3ab497b0b39e24d88a53ea011ac39dd7e
                Found module libQt5QmlModels.so.5 with build-id: d22088cee3e54c1b82a9a876daa1bbc64628d9cd
                Found module libKF5AuthCore.so.5 with build-id: 371c3caa7e0ebbe205bff247efc254cef7702a15
                Found module libKF5GuiAddons.so.5 with build-id: af80033ed20c6c909932a298fd4ac97529a26e67
                Found module libKF5ConfigGui.so.5 with build-id: 8fd1d1fd2356943cb1749239824688aebac8c308
                Found module libKF5Codecs.so.5 with build-id: 60254de048269712d3c4244988a2270f28a619a9
                Found module libQt5QuickTemplates2.so.5 with build-id: df09d36058107f30056e6c79eaa682e9d9e4f2c2
                Found module libQt5Qml.so.5 with build-id: 92006af8b04f29d7af10797e88969c614f450203
                Found module libQt5Quick.so.5 with build-id: 1ed6e9d301e83514c8105d6746995de9404ddede
                Found module libKF5CoreAddons.so.5 with build-id: 47485eccec3750409ad8df25c8a27bb987be8704
                Found module libKF5WidgetsAddons.so.5 with build-id: 76d1906d40fa6eb29f3fc7b0d679aba195c18624
                Found module libKF5I18n.so.5 with build-id: f46b822ad5705a692eadf4a60668872925cb69fe
                Found module libKF5Archive.so.5 with build-id: dd694dbdf4e80621f2aed7529d959ff5c75666be
                Found module libQt5Svg.so.5 with build-id: 926a697e0d991ee22ee414c13c9b75c253fc1d4d
                Found module libKF5ConfigCore.so.5 with build-id: be986051f1fe9b8cd794e34693464c4eea71ac17
                Found module libKF5ConfigWidgets.so.5 with build-id: 760eb150502bba4002f31851ed32423e2357763e
                Found module libQt5QuickControls2.so.5 with build-id: a5978d717db15098905b6e50b7c83cd507df4c77
                Found module libKF5IconThemes.so.5 with build-id: 6a58e90fc0ab39cdfbd0ad0f7f2c9282298856f4
                Found module libqt5ct.so with build-id: 63591ff91f7d991cd67094ccf19ce1b33e8ccdd6
                Found module libXfixes.so.3 with build-id: 0a05c7e8714522bfbdd7c0027c3e2a94965664b0
                Found module libXrender.so.1 with build-id: 97e0b9ab6ba96ebc86527cc2b3c3078aad8616b3
                Found module libXcursor.so.1 with build-id: eb6315bcd7526aaf51b0a1307efdc587cea0a152
                Found module libuuid.so.1 with build-id: 832a09e0d9568cc6dbe699472218ea2f79dc0f34
                Found module libxcb-util.so.1 with build-id: 4188ebc629b472b560849c5792a69c1803c3d1a4
                Found module libexpat.so.1 with build-id: 8850138eae6d9d4d43c5c4b2ac48393bc4279037
                Found module libxkbcommon.so.0 with build-id: 1f1bc7527e57c886c3df5803068122e1971d4724
                Found module libxkbcommon-x11.so.0 with build-id: 821e1e75e92f3aaa96d19ed31fe98dbbd4d34627
                Found module libICE.so.6 with build-id: af53458a64fe1e62a4d95606f7b03c210b2b098c
                Found module libSM.so.6 with build-id: ac7b055fd3f16b4f29373285ab04ed52eebb632d
                Found module libxcb-xinput.so.0 with build-id: 6403174c48f05f40cf7c168beb86f2886b9f09c1
                Found module libxcb-xkb.so.1 with build-id: fce20d2101f3e5439923e9283c489c2cad4420c3
                Found module libxcb-xinerama.so.0 with build-id: b328103ce7502d94fd3a4e2e8773978a9aa84adc
                Found module libxcb-xfixes.so.0 with build-id: a6b197ace5b9b59f913f5969eb419a88d1194f47
                Found module libxcb-sync.so.1 with build-id: dda14591103b01b13

strace

Steps to reproduce

Not sure how to or what change it might have been, it was working last week. I'm getting my second hand ThinkPad P50 set up and have made various changes in the last few weeks but only noticed the tray icon was no longer appearing yesterday.

Environment

  • OS: Arch
  • Desktop environment: AwesomeWM
  • Optimus Manager version: 1.4-2
  • Optimus Manager Qt version: 1.6.4.r5.g233c2e6-1
@mxmilkiib mxmilkiib added the bug Something isn't working label Sep 20, 2021
@Shatur
Copy link
Owner

Shatur commented Sep 20, 2021

Unable to read current mode from Optimus Manager state file

It looks like the application is unable to read Optimus Manager daemon file. Could you provide your /var/lib/optimus-manager/tmp/state.json?

@mxmilkiib
Copy link
Author

{"type": "pending_post_xorg_start", "switch_id": "20210920T204723", "requested_mode": "integrated"}

@Shatur
Copy link
Owner

Shatur commented Sep 20, 2021

That's weird, you missing current_mode field. Something wrong with Optimus manager daemon. Here is how the file looks on my machine:

{"type": "done", "switch_id": "20210920T191444", "current_mode": "hybrid"}

In my case type is done, but in your case it's pending_post_xorg_start.

Could you show me the output of optimus-manager --print-mode?

@mxmilkiib
Copy link
Author

% optimus-manager --print-mode
ERROR: a GPU setup was initiated but Xorg post-start hook did not run.
Log at /var/log/optimus-manager/switch/switch-20210920T204723.log
If your login manager is GDM, make sure to follow those instructions:
https://github.com/Askannz/optimus-manager#important--gnome-and-gdm-users
If your display manager is neither GDM, SDDM nor LightDM, or if you don't use one, read the wiki:
https://github.com/Askannz/optimus-manager/wiki/FAQ,-common-issues,-troubleshooting
Cannot execute command because of previous errors.

One of the things I have changed is that I'm not using a DE anymore, just .xinitrc and startx.

/var/log/optimus-manager/daemon % cat daemon-20210920T204722.log
[29] INFO: # Daemon pre-start hook
[29] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
[30] INFO: Copying /etc/optimus-manager/optimus-manager.conf to /var/lib/optimus-manager/tmp/config_copy.conf
[33] INFO: Startup mode is: auto
[34] INFO: Effective startup mode is: integrated
[34] INFO: Writing state {'type': 'pending_pre_xorg_start', 'requested_mode': 'integrated', 'current_mode': None}
[34] INFO: Daemon pre-start hook completed successfully.
[34] INFO: Calling Xorg pre-start hook.
[1] INFO: # Commands daemon
[1] INFO: Opening UNIX socket
[1] INFO: Awaiting commands

Ah, so it's related to Askannz/optimus-manager#356

I added prime-offload my .xinitrc and that seems to have resolved my problem. Anything worth doing, or just closing?

@Shatur
Copy link
Owner

Shatur commented Sep 21, 2021

Glad to hear the issue has been resolved! Yes, I think the issue can be closed.

@Shatur Shatur closed this as completed Sep 21, 2021
@Shatur Shatur added invalid This doesn't seem right and removed bug Something isn't working labels Oct 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants