poeskat / audioswitch

Automatically exported from code.google.com/p/audioswitch
0 stars 0 forks source link

Crash on start, error log attached #63

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Starting AudioSwitch
2. ....
3. That's it.

What is the expected output? What do you see instead?
An unexpected error has occurred (You misspelled "occurred" in the error 
message btw)
Program doesn't start, just crashes.

What version of the product are you using? On what operating system?
2.0 RC6
Windows 8 (not 8.1)

Please provide any additional information below.

Log Entry: 2015-05-20 15:42:32

System.InvalidOperationException: Det finns ett fel i XML-dokumentet (0, 0). 
---> System.Xml.XmlException: Rotelementet saknas.
   vid System.Xml.XmlTextReaderImpl.Throw(Exception e)
   vid System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   vid System.Xml.XmlTextReaderImpl.Read()
   vid System.Xml.XmlTextReader.Read()
   vid System.Xml.XmlReader.MoveToContent()
   vid Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSettings.Read12_Settings()
   --- Slut på stackspårning för interna undantag ---
   vid System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   vid System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
   vid AudioSwitch.Classes.Settings.Load()
   vid AudioSwitch.Classes.Program.Main(String[] args)
-------------------------------

My English translation of the Swedish parts:

Log Entry: 2015-05-20 15:42:32

System.InvalidOperationException: There is an error in the XML-document(0, 0). 
---> System.Xml.XmlException: The root element is missing.
   vid System.Xml.XmlTextReaderImpl.Throw(Exception e)
   vid System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   vid System.Xml.XmlTextReaderImpl.Read()
   vid System.Xml.XmlTextReader.Read()
   vid System.Xml.XmlReader.MoveToContent()
   vid Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSettings.Read12_Settings()
   --- End of stack trace for internal exceptions ---
   vid System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   vid System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
   vid AudioSwitch.Classes.Settings.Load()
   vid AudioSwitch.Classes.Program.Main(String[] args)
-------------------------------

Original issue reported on code.google.com by Shasi...@gmail.com on 20 May 2015 at 5:55

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

I had the exact same problem (your translation was on point by the way, just 
added some well placed "the" that aren't in the English version), and 
uninstalling/reinstalling wouldn't work, but I noticed uninstalling *and* 
deleting the former installation folder (which still contains a Settings.xml 
file, seems highly relevant), then reinstalling (I went for RC7 btw, dunno if 
it changes something but why not...), and right now it works like a charm.
You might want to try it and tell us if it changes something for you.

According to what I've read (on GitHub in particular), Settings.xml-related 
issues are quite common and the dev's havin a hard time solving those.

Original comment by Nor...@gmail.com on 27 May 2015 at 6:50

GoogleCodeExporter commented 9 years ago
indeed, in the latest RC7 I actually put the settings saving function in a loop 
where it loops the save function until the settings.xml file is bigger than 20 
bytes, which should remove the chance of having an empty settings file.

Original comment by tanelte...@gmail.com on 27 May 2015 at 7:58

GoogleCodeExporter commented 9 years ago
Great :D

I'll try that as soon as I get back home to my computer and hopefully report 
back with great results.

Idk if RC7 just got released or I just somehow installed an old version but 
I'll update before doing this fix to see if that fixes the problem.

Thanks for the help, both of you! 

Original comment by Shasi...@gmail.com on 27 May 2015 at 9:45

GoogleCodeExporter commented 9 years ago
Okay, couldn't wait^^ Connected with teamviewer and tried it.

It works!
Not just with updating though, I needed to uninstall, remove the folder in 
AppData and then reinstall as #1 said.

Not really a place to put this but there needs to be a way of turning off some 
of the hotkeys. Cause right now they just become red when you set them to none. 
Not fun.

Thanks again for the help!

Original comment by Shasi...@gmail.com on 27 May 2015 at 9:56