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

Aura crash when setting device mode #29

Closed
arduano opened this issue Aug 16, 2018 · 3 comments
Closed

Aura crash when setting device mode #29

arduano opened this issue Aug 16, 2018 · 3 comments

Comments

@arduano
Copy link

arduano commented Aug 16, 2018

Line:
surface.LoadDevices(AsusDeviceProvider.Instance);
Error:
System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'
Trace:

   at RGB.NET.Devices.Asus.AsusDeviceProvider.Initialize(RGBDeviceType loadFilter, Boolean exclusiveAccessIfPossible, Boolean throwExceptions)
   at RGB.NET.Core.RGBSurface.LoadDevices(IRGBDeviceProvider deviceProvider, RGBDeviceType loadFilter, Boolean exclusiveAccessIfPossible, Boolean throwExceptions)
   at RGB_Unity.MainWindow.Window_Loaded(Object sender, RoutedEventArgs e) in G:\Personal\2018\Asus Aura\RGB Unity\MainWindow.xaml.cs:line 37
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   at MS.Internal.LoadedOrUnloadedOperation.DoWork()
   at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
   at System.Windows.Interop.HwndTarget.OnResize()
   at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

My motherboard is ASUS ROG Strix x399-E.
When I run the official demo program for the SDK (the one that comes inside the asus aura sdk zip file), it also crashes when I select "motherboard". The GPU demo works just fine though. I don't have an aura mouse/keyboard. But I do have Trident Z RGB ram, which also works with aura.

Is this just me?

@arduano arduano changed the title Aura crash when setting MB mode Aura crash when setting device mode Aug 16, 2018
@arduano
Copy link
Author

arduano commented Aug 16, 2018

Changed the line to
surface.LoadDevices(AsusDeviceProvider.Instance, RGBDeviceType.GraphicsCard);
The error stays the same but in the trace it's at RGB.NET.Devices.Asus.Native._AsusSDK.SetGPUMode(IntPtr handle, Int32 mode)

so it's not just my mobo's issue

@DarthAffe
Copy link
Owner

DarthAffe commented Aug 16, 2018

https://rog.asus.com/forum/showthread.php?97754-Access-Violation-Wrong-EnumerateMB-Result

That's a known issue but I haven't found a solution so far.

@arduano
Copy link
Author

arduano commented Aug 16, 2018

Just in case, here's my full RGB specs:
mobo: ASUS ROG Strix x399-E
GPU: ASUS ROG Strix 1080ti (the actual GPU chipset doesn't matter I think though)
RAM: G.Skill Trident Z RGB 3200Mhz Memory AMD (seems like it's not picked up when filtering by RGBDeviceType.DRAM, even though aura is supposed to support it, but that's probably a different issue)

EDIT: I also have 3 corsair peripherals, but they work just fine.

DarthAffe added a commit that referenced this issue May 12, 2019
…ed by the aura-sdk.

This addresses #29 but needs to be revisited if the SDK is ever fixed.
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