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

App launch crash #3

Closed
mikaisfake opened this issue Nov 17, 2022 · 5 comments
Closed

App launch crash #3

mikaisfake opened this issue Nov 17, 2022 · 5 comments

Comments

@mikaisfake
Copy link

mikaisfake commented Nov 17, 2022

Issue: App launches and crashes. a window pops up with home ui and crashes/auto closes after a few seconds, app in taskbar menu also closes instantly.

device: Lenovo Flex 5 (ryzen) 14ALC05
system: windows 11 22H2
notes: all requirements are installed, along with the specified powerbattery.dll shared in another issue, fresh windows install.
2zDeESH2BG

@reagcz
Copy link
Owner

reagcz commented Nov 17, 2022

Hi, can you please try with the version linked below? It should now produce a log file

IdeapadToolkit.zip

@mikaisfake
Copy link
Author

mikaisfake commented Nov 18, 2022

Hi, I ran the tool, it started its process and didn't crash unlike the Oct 5 version although this log was outputted
i do have powerbattery.dll in the same folder

2022-11-18 08:20:14.613 +05:30 [ERR] Error while getting Always on usb setting System.DllNotFoundException: Unable to load DLL 'PowerBattery.dll' or one of its dependencies: The specified module could not be found. (0x8007007E) at IdeapadToolkit.Services.LenovoPowerSettingsService.CUSBCharger(CUSBCharger& var1) at IdeapadToolkit.Services.LenovoPowerSettingsService.IsAlwaysOnUsbEnabled() at IdeapadToolkit.ViewModels.LenovoSettingsViewModel.get_IsAlwaysOnUsbEnabled() 2022-11-18 08:20:14.638 +05:30 [ERR] Error while getting Always on usb setting System.DllNotFoundException: Unable to load DLL 'PowerBattery.dll' or one of its dependencies: The specified module could not be found. (0x8007007E) at IdeapadToolkit.Services.LenovoPowerSettingsService.CUSBCharger(CUSBCharger& var1) at IdeapadToolkit.Services.LenovoPowerSettingsService.IsAlwaysOnUsbEnabled() at IdeapadToolkit.ViewModels.LenovoSettingsViewModel.get_IsAlwaysOnUsbEnabled() 2022-11-18 08:20:14.641 +05:30 [ERR] Error while getting Always on usb battery setting System.DllNotFoundException: Unable to load DLL 'PowerBattery.dll' or one of its dependencies: The specified module could not be found. (0x8007007E) at IdeapadToolkit.Services.LenovoPowerSettingsService.CUSBBatteryCharger(CUSBBatteryCharger& var1) at IdeapadToolkit.Services.LenovoPowerSettingsService.IsAlwaysOnUsbBatteryEnabled() at IdeapadToolkit.ViewModels.LenovoSettingsViewModel.get_IsAlwaysOnUsbBatteryEnabled() 2022-11-18 08:20:14.658 +05:30 [ERR] Error while getting Always on usb setting System.DllNotFoundException: Unable to load DLL 'PowerBattery.dll' or one of its dependencies: The specified module could not be found. (0x8007007E) at IdeapadToolkit.Services.LenovoPowerSettingsService.CUSBCharger(CUSBCharger& var1) at IdeapadToolkit.Services.LenovoPowerSettingsService.IsAlwaysOnUsbEnabled() at IdeapadToolkit.ViewModels.LenovoSettingsViewModel.get_IsAlwaysOnUsbEnabled() 2022-11-18 08:20:14.662 +05:30 [ERR] Error while getting Always on usb setting System.DllNotFoundException: Unable to load DLL 'PowerBattery.dll' or one of its dependencies: The specified module could not be found. (0x8007007E) at IdeapadToolkit.Services.LenovoPowerSettingsService.CUSBCharger(CUSBCharger& var1) at IdeapadToolkit.Services.LenovoPowerSettingsService.IsAlwaysOnUsbEnabled() at IdeapadToolkit.ViewModels.LenovoSettingsViewModel.get_IsAlwaysOnUsbEnabled() 2022-11-18 08:20:14.664 +05:30 [ERR] Error while getting Always on usb battery setting System.DllNotFoundException: Unable to load DLL 'PowerBattery.dll' or one of its dependencies: The specified module could not be found. (0x8007007E) at IdeapadToolkit.Services.LenovoPowerSettingsService.CUSBBatteryCharger(CUSBBatteryCharger& var1) at IdeapadToolkit.Services.LenovoPowerSettingsService.IsAlwaysOnUsbBatteryEnabled() at IdeapadToolkit.ViewModels.LenovoSettingsViewModel.get_IsAlwaysOnUsbBatteryEnabled() 2022-11-18 08:20:15.171 +05:30 [ERR] Exception while fetching current settings System.DllNotFoundException: Unable to load DLL 'PowerBattery.dll' or one of its dependencies: The specified module could not be found. (0x8007007E) at IdeapadToolkit.Services.LenovoPowerSettingsService.CIntelligentCooling(CIntelligentCooling& var1) at IdeapadToolkit.Services.LenovoPowerSettingsService.GetPowerPlan() at IdeapadToolkit.ViewModels.LenovoSettingsViewModel.Refresh() 2022-11-18 08:21:45.450 +05:30 [ERR] Exception while fetching current settings System.DllNotFoundException: Unable to load DLL 'PowerBattery.dll' or one of its dependencies: The specified module could not be found. (0x8007007E) at IdeapadToolkit.Services.LenovoPowerSettingsService.CIntelligentCooling(CIntelligentCooling& var1) at IdeapadToolkit.Services.LenovoPowerSettingsService.GetPowerPlan() at IdeapadToolkit.ViewModels.LenovoSettingsViewModel.Refresh() 2022-11-18 08:21:48.061 +05:30 [ERR] Error while getting Always on usb setting System.DllNotFoundException: Unable to load DLL 'PowerBattery.dll' or one of its dependencies: The specified module could not be found. (0x8007007E) at IdeapadToolkit.Services.LenovoPowerSettingsService.CUSBCharger(CUSBCharger& var1) at IdeapadToolkit.Services.LenovoPowerSettingsService.IsAlwaysOnUsbEnabled() at IdeapadToolkit.ViewModels.LenovoSettingsViewModel.get_IsAlwaysOnUsbEnabled() 2022-11-18 08:21:48.064 +05:30 [ERR] Error while getting Always on usb setting System.DllNotFoundException: Unable to load DLL 'PowerBattery.dll' or one of its dependencies: The specified module could not be found. (0x8007007E) at IdeapadToolkit.Services.LenovoPowerSettingsService.CUSBCharger(CUSBCharger& var1) at IdeapadToolkit.Services.LenovoPowerSettingsService.IsAlwaysOnUsbEnabled() at IdeapadToolkit.ViewModels.LenovoSettingsViewModel.get_IsAlwaysOnUsbEnabled() 2022-11-18 08:21:48.067 +05:30 [ERR] Error while getting Always on usb battery setting System.DllNotFoundException: Unable to load DLL 'PowerBattery.dll' or one of its dependencies: The specified module could not be found. (0x8007007E) at IdeapadToolkit.Services.LenovoPowerSettingsService.CUSBBatteryCharger(CUSBBatteryCharger& var1) at IdeapadToolkit.Services.LenovoPowerSettingsService.IsAlwaysOnUsbBatteryEnabled() at IdeapadToolkit.ViewModels.LenovoSettingsViewModel.get_IsAlwaysOnUsbBatteryEnabled() 2022-11-18 08:21:48.243 +05:30 [ERR] Exception while fetching current settings System.DllNotFoundException: Unable to load DLL 'PowerBattery.dll' or one of its dependencies: The specified module could not be found. (0x8007007E) at IdeapadToolkit.Services.LenovoPowerSettingsService.CIntelligentCooling(CIntelligentCooling& var1) at IdeapadToolkit.Services.LenovoPowerSettingsService.GetPowerPlan() at IdeapadToolkit.ViewModels.LenovoSettingsViewModel.Refresh()

@reagcz
Copy link
Owner

reagcz commented Nov 18, 2022

You mentioned you have a fresh windows install. Please try installing the x86 and x64 Visual C++ redistributables from here https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170. The correct version should be in the table below "Visual Studio 2015, 2017, 2019, and 2022"

@mikaisfake
Copy link
Author

Thank you, that seems to have fixed it, works flawlessly now.

@reagcz
Copy link
Owner

reagcz commented Nov 18, 2022

No problem, I'll add this to the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants