T-Troll / alienfx-tools

Alienware systems lights, fans, and power control tools and apps
MIT License
458 stars 39 forks source link

Alienware 17 R1 (Windows 11): AlienFX Control crashing when trying to open it (Please set lights first, Faulting module name: KERNELBASE.dll) #325

Closed mickael28 closed 1 year ago

mickael28 commented 1 year ago

Describe the bug

To Reproduce

Expected behavior

Screenshots image

image

System (please complete the following information):

Additional context

[-](https://github.com/T-Troll/alienfx-tools/issues/new?assignees=&labels=&template=bug_report.md&title=#) <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
[-](https://github.com/T-Troll/alienfx-tools/issues/new?assignees=&labels=&template=bug_report.md&title=#) <System>
  <Provider Name="Application Error" Guid="{a0e9b465-b939-57d7-b27d-95d8e925ff57}" /> 
  <EventID>1000</EventID> 
  <Version>0</Version> 
  <Level>2</Level> 
  <Task>100</Task> 
  <Opcode>0</Opcode> 
  <Keywords>0x8000000000000000</Keywords> 
  <TimeCreated SystemTime="2023-03-25T18:25:17.9024881Z" /> 
  <EventRecordID>2394</EventRecordID> 
  <Correlation /> 
  <Execution ProcessID="5640" ThreadID="4416" /> 
  <Channel>Application</Channel> 
  <Computer>DESKTOP-4</Computer> 
  <Security UserID="S-1-5-21-721532812-1001" /> 
  </System>
[-](https://github.com/T-Troll/alienfx-tools/issues/new?assignees=&labels=&template=bug_report.md&title=#) <EventData>
  <Data Name="AppName">alienfx-gui.exe</Data> 
  <Data Name="AppVersion">8.2.6.0</Data> 
  <Data Name="AppTimeStamp">641e6485</Data> 
  <Data Name="ModuleName">KERNELBASE.dll</Data> 
  <Data Name="ModuleVersion">10.0.22621.1413</Data> 
  <Data Name="ModuleTimeStamp">5129184b</Data> 
  <Data Name="ExceptionCode">c000041d</Data> 
  <Data Name="FaultingOffset">000000000002bd6d</Data> 
  <Data Name="ProcessId">0x2334</Data> 
  <Data Name="ProcessCreationTime">0x1d95f472249dd9f</Data> 
  <Data Name="AppPath">C:\Program Files\AlienFX Tools\alienfx-gui.exe</Data> 
  <Data Name="ModulePath">C:\WINDOWS\System32\KERNELBASE.dll</Data> 
  <Data Name="IntegratorReportId">52809847-d5d0-4513-ae58-6c5e09ddc983</Data> 
  <Data Name="PackageFullName" /> 
  <Data Name="PackageRelativeAppId" /> 
  </EventData>
  </Event>
T-Troll commented 1 year ago

Interesting.

I tried to reproduce it at my 15R1 (same hardware), but it starts with clean configuration without any issue. According to these details, seems like it Windows 11 related (i use Windows 10), i'll check what it can be.

T-Troll commented 1 year ago

Ok, i need some data from your system.

Can you, please:

mickael28 commented 1 year ago

Thanks for the guidance. I'm getting this:

# alienfan-cli rpm
AlienFan-CLI v8.2.6
Hardware not compatible.
# alienfx-cli probe
alienfx-cli v8.2.6
Dell API ready, 1 devices found.
===== Device VID_187c, PID_0524 =====
+++++ Detected as: Alienware M17x, APIv2 +++++
Do you want to set devices and lights names?n
Done.

Reg files for alienfx-config backup:

  1. afx-fans.reg
    
    Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Alienfan] "StartAtBoot"=dword:00000000 "StartMinimized"=dword:00000000 "LastPowerStage"=dword:00000000 "UpdateCheck"=dword:00000001 "DisableAWCC"=dword:00000000 "KeyboardShortcut"=dword:00000001 "KeepSystemMode"=dword:00000001 "DPTF"=dword:00000000

[HKEY_CURRENT_USER\Software\Alienfan\Powers] "Power-0"="Manual"

[HKEY_CURRENT_USER\Software\Alienfan\Sensors]


2. afx-gui.reg

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Alienfxgui]

[HKEY_CURRENT_USER\Software\Alienfxgui\Profiles]

[HKEY_CURRENT_USER\Software\Alienfxgui\Zones]


3. afx-lights.reg

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Alienfx_SDK]


4. afx-mon.reg

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Alienfxmon] "AutoStart"=dword:00000000 "Minimized"=dword:00000000 "UpdateCheck"=dword:00000001 "wSensors"=dword:00000001 "eSensors"=dword:00000000 "bSensors"=dword:00000000 "Refresh"=dword:000001f4

[HKEY_CURRENT_USER\Software\Alienfxmon\Sensors]

T-Troll commented 1 year ago

Oh, so you have old M17xR1, not modern m17R1 (it's from here - +++++ Detected as: Alienware M17x, APIv2 +++++). and install W11 into it...

Bad news - fan control will not work for your system. Fan V2 will never do, Fan V1 can, but me and you need some effort for this. Good news - light control is supported.

So... First, try today's release - i do something can potentially solve your issue. I also check EXACT configuration tomorrow (using mine M13 with same light chip), and return with update - did it work for me or not.

mickael28 commented 1 year ago

Thanks, today's release, 8.2.6.1, failed for me with the same issue (crash in event viewer and 'please set lights first' message when trying to launch it)

But I think the alienfx-cli probe didn't detect my model correctly? I don't think it's the old model 17xR1, it's reported on my BIOS and system information as Alienware 17 and it's got the look of the more recent models, not the older, thicker version:

image

It's similar to this design from 2014, which when I checked a while ago I thought it was an Alienware 17 R1:

At the bottom of my laptop it mentions:

T-Troll commented 1 year ago

probe report what light chip have into its hardware. So yes, your model can be 17RX, but the chip is from M17x.

Thanks for info, seems like i lost a way in fan controls - i check this today. Now you can try this:

Update: No, it's not this. Now check if something wrong with APIv2 lights...

T-Troll commented 1 year ago

So, here is debug version - alienfx-gui.zip I alter some APIv2 processing, this can help.

Please check it, in case it crashed - download and run DbgView utility (from Microsoft website), then run this again - it will provide debug info of what happened, please share DbgView output.

mickael28 commented 1 year ago

Same crash and message with the attached alienfx-gui.zip.

A couple of dbgview logs:

DESKTOP-4R3D570-2nd.LOG DESKTOP-4R3D570-1st.LOG

Just in case, I tried with the manually created FanControl = 0 entry and same crashed too (with latest alienfx-gui or with the original one from 8.26.1)

Thanks so much for the ideas trying to help with the problem!

All the attempts get captured in the event viewer with the initial error: image

T-Troll commented 1 year ago

Aha! We catch it finally! Crash happened into USB light device driver, then i try to check light with ID#0. Can be incorrect command or something wrong with ID. Let me check.

T-Troll commented 1 year ago

Can you please try this debug version - alienfx-gui.zip?

I change something, and also have more debug info, so DbgView log will be useful.

mickael28 commented 1 year ago

Windows defender deletes the file detecting it as a virus, do you think is it ok in that debug version? (I didn't run it yet to see what you think)

image

T-Troll commented 1 year ago

Defender and SmartScreen is a crap working to block what M$ don't like, but not protect from real threat. Check this (or do yourself) -https://www.virustotal.com/gui/file/b4e5d07145fd475c51dd53133bf78fecef8f2ef95f17eb3f89017471c5fcddc7?nocache=1

mickael28 commented 1 year ago

Finally defender allowed me to run it after adding a few allowed exceptions.

Same error/crash and DgbView output is quite similar to previous one. Not sure if you'll be able to find out there something useful. Attaching it.

DESKTOP-4R3D570-3rd.LOG

T-Troll commented 1 year ago

No, it's not the same and important! Thank you!

T-Troll commented 1 year ago

Check this version - alienfx-gui.zip

Seems like i found the reason (yes, it was into your V2 interface), hope i not broke it, so check, please:

mickael28 commented 1 year ago

Hey man, it seems you got it! I've not followed what the issue was on my laptop but on the latest GUI it launched. Will that change be included in future updates too?

Not sure what's supported yet on my laptop. I need to experiment after reading the beginners guide but I'm going to be away on holidays soon for a few weeks so it might take a while.

One doubt though with the brief testing I could do today. I saw the Grids tab was recognising lights in different parts of the hardware as blocks (eg, the 4 different parts of the keyboard, like 4 different areas in a grid), but it didn't recognize any key individually.

Do you know if that means that on the 1st tab for Lights, I can just change the colour for those 4 areas of the keyboard in my grid but I won't be able to assign lights to individual keys on this specific laptop?

T-Troll commented 1 year ago

Glad to hear it! Of course, it will be part of the next release and so on.

Grids are optional, you may not use it for your hardware - it's for per-key RGB keyboards mostly. But you CAN use it for basic spatial effects and gauges.

For quick check, use buttons on top of lights list, not the grid - it's a way to check is this light connected (it will change color) or not. And yes, read Beginner's guide for details, please!

Device tab is for telling the app what lights you have in general. Other tabs about how to control it. So first set lights at Devices, then assign it to color in Colors/Monitoring/etc.

mickael28 commented 1 year ago

Thanks, working on the latest 8.2.6.2 too.

One last thing before marking it as closed pls. When you mention:

"For quick check, use buttons on top of lights list, not the grid - it's a way to check is this light connected (it will change color) or not. " Which are those buttons on top of the lights list? Not sure if it's anything in the GUI on the Lights tab, in the zones section? https://github.com/T-Troll/alienfx-tools/wiki/How-to-start-%28Beginner%27s-guide%29#create-zone-and-assign-colors

PS: at the moment I've just got the internal laptops keyboard, which I think it's the 4 zones one (not per-key RGB), so I think I won't be able to assign specific colors to individual keys on my setup with this current hardware.

And as said, thanks so much for the help with this!

T-Troll commented 1 year ago

I mean this ones: image

PS: No, you can't, i'm not a wizard of THIS size. But you can use all 4 zones for gauges and spatial effects.

mickael28 commented 1 year ago

Got it, thank for all the help troubleshooting what was going on. It was good you were able to catch the issue :)

T-Troll commented 1 year ago

Yes, it affects most of old devices (v2/v3). I rarely use my old 13R2, so didn't catch it. So thank you for point me this!