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

Corsair strafe rgb not detected #333

Closed
anzabanza opened this issue Jan 8, 2017 · 32 comments
Closed

Corsair strafe rgb not detected #333

anzabanza opened this issue Jan 8, 2017 · 32 comments
Labels
Type: Bug This issue/PR is related to unexpected behaviour in the program.

Comments

@anzabanza
Copy link

anzabanza commented Jan 8, 2017

I tried reinstalling cue 2 and nothing works. Cue works ok by itself, but aurora says that there is no corsair device initialized:( Anybody have an idea what could be wrong? I did try with multiple versions of aurora

The log:
2017_08_01.txt

@antonpup
Copy link
Owner

antonpup commented Jan 8, 2017

It probably doesn't work with CUE 2 because the SDK hasn't been updated. It's not an issue with Aurora, if Corsair decides to break their own SDK.

Also, I don't need to know your username, but it does show up in the file paths for configs and what not. It's still visible, But neat edit nonetheless.

@anzabanza
Copy link
Author

anzabanza commented Jan 8, 2017

LOL, it was a joke. Anyway I had it working with cue 2 on my previous windows installation (with the exact same version).

@antonpup
Copy link
Owner

antonpup commented Jan 8, 2017

Enable SDK?

@anzabanza
Copy link
Author

It is enabled I checked everything, read a bit through the logs and couldn't find out why it doesn't work.

@brainbug89
Copy link
Contributor

Does other third party apps with SDK support work?

@antonpup
Copy link
Owner

antonpup commented Jan 9, 2017

I plugged in my Strafe RGB, using latest CUE 2. And everything is working properly. Even the "demo K95" was showing proper colors.

So.. I have no idea why it's not functioning. Reinstall CUE?

@anzabanza
Copy link
Author

anzabanza commented Jan 9, 2017

I did reinstall it 2 times. In aurora it just says "not initialized". I don't know any other software that uses cue sdk.

@brainbug89
Copy link
Contributor

You could try CEE

@antonpup antonpup added the Type: Bug This issue/PR is related to unexpected behaviour in the program. label Jan 10, 2017
@anzabanza
Copy link
Author

anzabanza commented Jan 11, 2017

I tried CEE and it works ok with the cue sdk. Although it does some funky things sometimes, like flash until you get a seizure and light up random key although it's set as reactive lightning, but that's a problem with the cee itself. Also are there any "hidden" registry settings or something for aurora as when I tried reinstalling it I only removed the files in "C:/Program Files (x86)/Aurora" where I placed it.

@anzabanza
Copy link
Author

I tried using Aurora with cue 1.16 but same result, "Corsair: Not initialized"

@anzabanza
Copy link
Author

anzabanza commented Jan 14, 2017

@antonpup Why is the returned value null?!

[ERROR] 14. 01. 2017 10:13:37: Corsair device, Exception! Message:System.TypeInitializationException: The type initializer for 'CUE.NET.Native._CUESDK' threw an exception. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: ptr
   at System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointer(IntPtr ptr, Type t)
   at CUE.NET.Native._CUESDK.LoadCUESDK()
   at CUE.NET.Native._CUESDK..cctor()
   --- End of inner exception stack trace ---
   at CUE.NET.Native._CUESDK.CorsairPerformProtocolHandshake()
   at CUE.NET.CueSDK.Initialize(Boolean exclusiveAccess)
   at Aurora.Devices.Corsair.CorsairDevice.Initialize() in D:\Repositories\Git\Aurora\Project-Aurora\Devices\Corsair\CorsairDevice.cs:line 67

@antonpup
Copy link
Owner

@DarthAffe
Copy link
Contributor

I'll join this conversation to prevent the long way :)
This seems like an installation-problem. CUE.NET isn't able to load the SDK-dll that's why the pointer is null. I don't know how aurora is distributed, but could you check if your aurora installation-folder (or the execution folder if you changed that) contains an x64 and x86 folder, both with an CUESDK_2015.dll inside?

@antonpup
Copy link
Owner

The files are included, you can verify this by downloading the latest release. I use the same zip for automatic updates as well. Is it possible that the dlls get blocked on some PCs?

@DarthAffe
Copy link
Contributor

Well I trust you that the installer itself is correct, it seems more like a problem with @anzabanza environment so it would be good if he could check that for his installation.
If they are missing we'd at least know why it doesn't work (and it's the only way I could reproduce this error).
I haven't heard that someone had problems with blocked SDK-dlls but I can not rule it out.

@anzabanza
Copy link
Author

I reinstalled aurora multiple times, verified the files and everything. I don't know why it would block the dll files as other cue.net programs work just fine.

@DarthAffe
Copy link
Contributor

I can't find any other reason for this error. Could you try to take the attached exe, copy it in the aurora execution directory and run it? If it works things get really weird, if the same error occurs there's definitely a installation issue.
CUE.NET_Test.exe.zip

@anzabanza
Copy link
Author

Yes this worked, finally, thank you so much :D

@antonpup
Copy link
Owner

@anzabanza Aurora now functions properly?

@anzabanza
Copy link
Author

Yes as it should. But now I can't get my headset and mouse from Logitech working with build 0.6.0, but it works with 0.5.1b. Probably because I can't figure out how to configure them. Will have to fiddle around with new version of Aurora bit more :)

@anzabanza
Copy link
Author

anzabanza commented Jan 15, 2017

Also, are you planning on adding a function that would allow you to also control led strips with help of arduino or raspberry pi through aurora, because that would be just extremely awesome!

@antonpup
Copy link
Owner

@anzabanza
Copy link
Author

Well I'm just dumb. Anyway thanks for this awesome software and for your help.

@Tenns
Copy link

Tenns commented Feb 14, 2017

I have the same problem that @anzabanza was having, it says "corsair: not initialized", I tried as @DarthAffe suggested to run the .exe that he gave in the aurora directory but it crashes every time I launch it even as an administrator. I also had problem installing visual c++ 2015 but it was because I had a newer version and don't know if it matters that much :/

@anzabanza
Copy link
Author

anzabanza commented Feb 15, 2017

@Tenns You need to put the file (CUE.NET_Test.exe) in the aurora directory then just run aurora as normal. This script doesn't do anything by itself. Also could you post the log? I'm not a C++ dev but I still know some stuff about it and might be able to help.

@Tenns
Copy link

Tenns commented Feb 15, 2017

@anzabanza Even after puting the .exe in, and launching aurora, it still says not initialized. Here is the log: http://pastebin.com/ULR9HN2B

@DarthAffe
Copy link
Contributor

what happens if you run the exe?

@Tenns
Copy link

Tenns commented Feb 15, 2017

@DarthAffe well it crashes but it says something http://imgur.com/a/g2Eu2 (sorry, it's in french)

@DarthAffe
Copy link
Contributor

Ah, the Version of CUE.NET is quite old - the test-exe is using features from a newer version :(
I linked a new one that should be compatible with that version (github doesn't accept it as attachement ...)
http://uploads.wyrez.org/CueNetTestOld.zip

@Tenns
Copy link

Tenns commented Feb 15, 2017

It's ok i found out why, CUE needs to be running whith a blank profile ...

@DarthAffe
Copy link
Contributor

Oo this sounds like a bug in CUE then - i can't see any reason why you'd need to use a blank profile to access the SDK.

@brainbug89
Copy link
Contributor

See #453 (comment) He didn't run CUE at all.

btw @Tenns you don't need a blank profile. Every profile works fine with SDK apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug This issue/PR is related to unexpected behaviour in the program.
Projects
None yet
Development

No branches or pull requests

5 participants