vmatare / thinkfan

The minimalist fan control program
GNU General Public License v3.0
534 stars 61 forks source link

ERROR: Unhandled std::bad_optional_access: bad optional access. #236

Open hoebbelsB opened 8 months ago

hoebbelsB commented 8 months ago

Hey, this happened to me today on my thinkpad P14s Gen4 AMD. The processor i'm using is AMD Ryzen 7 pro 7840u.

I'm running Pop!_OS 22.04 LTS

Just restarted the service and it works fine for now.

ERROR: Unhandled std::bad_optional_access: bad optional access.
errno = No such file or directory.
Backtrace: /usr/local/sbin/thinkfan(+0x4dd54) [0x614dd10c9d54]
                                         /usr/local/sbin/thinkfan(+0x28374) [0x614dd10a4374]
                                         /lib/x86_64-linux-gnu/libstdc++.so.6(+0xae20c) [0x7aa512cae20c]
                                         /lib/x86_64-linux-gnu/libstdc++.so.6(+0xae277) [0x7aa512cae277]
                                         /lib/x86_64-linux-gnu/libstdc++.so.6(+0xae4d8) [0x7aa512cae4d8]
                                         /usr/local/sbin/thinkfan(+0x265a1) [0x614dd10a25a1]
                                         /usr/local/sbin/thinkfan(+0x2570a) [0x614dd10a170a]
                                         /usr/local/sbin/thinkfan(+0x3daf9) [0x614dd10b9af9]
                                         /usr/local/sbin/thinkfan(thinkfan::Driver::robust_op(std::function<void ()>, std::function<void (thinkfan::ExpectedError con>
                                         /usr/local/sbin/thinkfan(thinkfan::Driver::try_init()+0x7b) [0x614dd10b9f9b]
                                         /usr/local/sbin/thinkfan(thinkfan::Config::try_init_driver(thinkfan::Driver&) const+0x2f) [0x614dd10ab84f]
                                         /usr/local/sbin/thinkfan(thinkfan::Config::init(thinkfan::TemperatureState&) const+0x47) [0x614dd10acfa7]
                                         /usr/local/sbin/thinkfan(main+0x21f) [0x614dd10a773f]
                                         /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7aa512829d90]
                                         /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7aa512829e40]
                                         /usr/local/sbin/thinkfan(_start+0x25) [0x614dd10a83f5]
This is probably a bug. Please consider reporting this at https://github.com/vmatare/thinkfan/issues. Thanks.
thinkfan.service: Control process exited, code=killed, status=6/ABRT
thinkfan.service: Failed with result 'signal'.
Failed to start thinkfan 2.0.0.