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

Element not found. (Exception from HRESULT: 0x80070490) #290

Closed
jwallet opened this issue Dec 27, 2020 · 2 comments · Fixed by #292
Closed

Element not found. (Exception from HRESULT: 0x80070490) #290

jwallet opened this issue Dec 27, 2020 · 2 comments · Fixed by #292
Labels
bug 🐞 Exception Report Bot 🤖 Exception log from the app naudio 🔊 Related to WASAPI and audio sessions
Milestone

Comments

@jwallet
Copy link
Owner

jwallet commented Dec 27, 2020

Exception Report

Application: Spytify
Version: 1.8.0.0
Region:
Date: 12/27/2020
Time: 7:45 AM

Error Message: Element not found. (Exception from HRESULT: 0x80070490)

Stack Traces

Top-level Exception
Type:    System.Runtime.InteropServices.COMException
Message: Element not found. (Exception from HRESULT: 0x80070490)
Source:  mscorlib
Stack Trace: at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at NAudio.CoreAudioApi.MMDeviceEnumerator.GetDefaultAudioEndpoint(DataFlow dataFlow, Role role)
   at EspionSpotify.AudioSessions.AudioMMDevicesManager..ctor(MMDeviceEnumerator audioMMDevices, String audioEndpointDeviceID)
   at EspionSpotify.AudioSessions.MainAudioSession..ctor(String audioEndPointDeviceID, IProcessManager processManager)
   at EspionSpotify.FrmEspionSpotify..ctor()
   at EspionSpotify.Program.Main()
 

Assembly References

  • ExceptionReporter.NET, Version=4.0.2.0
  • MetroFramework, Version=1.4.0.0
  • mscorlib, Version=4.0.0.0
  • NAudio, Version=1.9.0.0
  • NAudio.Lame, Version=1.0.9.26885
  • Newtonsoft.Json, Version=12.0.0.0
  • PCLWebUtility, Version=1.0.0.0
  • SpotifyAPI.Web, Version=1.0.0.0
  • SpotifyAPI.Web.Auth, Version=1.0.0.0
  • Spytify, Version=1.8.0.0
  • System, Version=4.0.0.0
  • System.Core, Version=4.0.0.0
  • System.Drawing, Version=4.0.0.0
  • System.IO.Abstractions, Version=7.0.0.0
  • System.Net.Http, Version=4.2.0.0
  • System.ValueTuple, Version=4.0.2.0
  • System.Windows.Forms, Version=4.0.0.0
  • System.Xml, Version=4.0.0.0
  • TagLibSharp, Version=2.2.0.0

System Info

Operating System
-Microsoft Windows Server 2016 Standard
--CodeSet = 1252
--CSDVersion = 
--CurrentTimeZone = -480
--FreePhysicalMemory = 1161500
--OSArchitecture = 64-bit
--OSLanguage = 1033
--ServicePackMajorVersion = 0
--ServicePackMinorVersion = 0
--Version = 10.0.14393

Machine
-WIN-VUA6POUV5UP
--Manufacturer = LENOVO
--Model = LENOVO
--TotalPhysicalMemory = 2147065856


@jwallet jwallet changed the title Bug report Bot: Element not found. (Exception from HRESULT: 0x80070490) Element not found. (Exception from HRESULT: 0x80070490) Dec 27, 2020
@jwallet jwallet added the Exception Report Bot 🤖 Exception log from the app label Dec 27, 2020
@jwallet
Copy link
Owner Author

jwallet commented Dec 27, 2020

might be related to that issue StreamWhatYouHear/SWYH#10

@jwallet
Copy link
Owner Author

jwallet commented Dec 27, 2020

indeed it happens when all devices are disabled or more probably the user has a bluetooth audio device that did not connect yet when starting spytify
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Exception Report Bot 🤖 Exception log from the app naudio 🔊 Related to WASAPI and audio sessions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant