i-nex / I-Nex

System information tool written in gambas3, python, bash
http://i-nex.linux.pl/
174 stars 24 forks source link

Crashes on libcpuid 0.6 #103

Open Photon89 opened 1 year ago

Photon89 commented 1 year ago

I get the following output on Manjaro Linux with libcpuid 0.6.2:

$ i-nex
[03/26/2023 11:46:30.246] [INFO] [MStart.Main.23] Starting log
[03/26/2023 11:46:30.247] [INFO] [MStart.Main.24] Checking if eeprom module is loaded
gb.gui: warning; Label.Transparent and TextLabel.Transparent are deprecated
gb.gui: warning; Label.Transparent and TextLabel.Transparent are deprecated
gb.gui: warning; Label.Transparent and TextLabel.Transparent are deprecated
gb.gui: warning; Label.Transparent and TextLabel.Transparent are deprecated
gb.gui: warning; Label.Transparent and TextLabel.Transparent are deprecated
MDecode_dimms._inits.47: #45: File or directory does not exist
MDecode_dimms._inits.47 Finfosys.ComboBox10_Click.1108 MDecode_dimms.List_EEPROM.30 MStart.Main.26 
[03/26/2023 11:46:32.721] [INFO] [MStart.Main.28] I found the eeprom module in the system
[03/26/2023 11:46:32.726] [INFO] [Finfosys.Form_Open.58] TabStrip1.Orientation Top
[03/26/2023 11:46:32.732] [INFO] [Finfosys.Form_Open.66] Call to MLibcpuid14
MLibcpuid14.Main.81: #60: Cannot find dynamic library 'libcpuid.so.15': libcpuid.so.15: cannot open shared object file: No such file or directory
MLibcpuid14.Main.81 Finfosys.Form_Open.67 MStart.Main.69
martinkg commented 1 year ago

you can solve the missing shared object file by this patch, but then the app crashes with a other error message.

diff --git a/I-Nex/i-nex/.src/CPU/MLibcpuid14.module b/I-Nex/i-nex/.src/CPU/MLibcpuid14.module
index 743b9d2..8df4621 100644
--- a/I-Nex/i-nex/.src/CPU/MLibcpuid14.module
+++ b/I-Nex/i-nex/.src/CPU/MLibcpuid14.module
@@ -2,7 +2,7 @@

 ' The module was written by vuott from http://www.gambas-it.org/
 ' http://www.gambas-it.org/smf/index.php?action=profile;u=402
-Library "libcpuid:14.0.1"
+Library "libcpuid:16"

 Public Struct cpu_raw_data_t
   basic_cpuid[32, 4] As Integer