manoja328 / avr-project-ide

Automatically exported from code.google.com/p/avr-project-ide
1 stars 1 forks source link

AVRProjectIDE has stopped working (Immedietly after clicking to start ide) #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start AVRProjectIDE

Using latest build on x64 Windows 7.

It seems to be a NullReferenceException.

Original issue reported on code.google.com by mayhemsm on 14 Jun 2010 at 8:41

GoogleCodeExporter commented 9 years ago
Here's the stack trace: 
  at AVRProjectIDE.ErrorReportWindow..ctor(Exception ex, String msg)
   at AVRProjectIDE.Program.Main(String[] args)

Original comment by mayhemsm on 14 Jun 2010 at 8:44

GoogleCodeExporter commented 9 years ago
Found the problem. I didn't have AVR Studio installed on this PC. Looks good 
now, but you might still want to add some error handling to make sure AVR 
Studio is installed or warn if it isnt.

Original comment by mayhemsm on 14 Jun 2010 at 9:25

GoogleCodeExporter commented 9 years ago
That's odd, the error report window failed, I guess one of the properties it 
tried to display may have been null and I didn't know it could be null... I'll 
add stuff to fix that so you can tell what the REAL problem is and report back

None of this IDE has anything to do with AVR Studio, the fact that installing 
AVR Studio fixed this problem is even weirder

The IDE should work without WinAVR or AVR Studio, it just can't compile 
anything without avr binary utilities

Can you reproduce this problem? What if you uninstalled AVR Studio?

Original comment by frank.zhao.main@gmail.com on 14 Jun 2010 at 4:53

GoogleCodeExporter commented 9 years ago
Ok, it took a bit of digging, but you're right it wasn't AVR Studio. 

I tried uninstalling AVR Studio and the IDE reinstalling it all worked fine no 
mater what I did. So I opened up Sysinternals Process Monitor to see what files 
it was accessing immediately after start up, what I found really strange is I 
saw it accessing "C:\Program Files\TortoiseSVN\bin" coincidentally I had just 
installed Tortoise and downloaded / tried to compile the code my self before 
installing AVR Studio but ran into dependency issues.

After uninstalling Tortoise the error is reproduced same as before error report 
window fails and I get generic windows message.

Thanks for you're quick reply

Original comment by mayhemsm on 14 Jun 2010 at 7:45

GoogleCodeExporter commented 9 years ago
made a change to error report window hoping that it would display the actual 
cause of what is wrong, see update 89

Original comment by frank.zhao.main@gmail.com on 15 Jun 2010 at 1:22

GoogleCodeExporter commented 9 years ago
Error window looks good and is working now. Still here's a copy of the output, 
it seems to have nothing to do with TortoiseSVN but as long Tortoise is 
installed it runs fine, without it I get the following:

Initialization Error

Modified code files should have been backed up occasionally automatically, go 
look for them if the editor crashes.
If this is an issue or bug, please report this to 
http://code.google.com/p/avr-project-ide/issues/list

Version: AVRProjectIDE_89

Date: June 14 2010

OS: Microsoft Windows NT 6.1.7600.0

Environment Version: 2.0.50727.4927

Message: %1 is not a valid Win32 application

Target Site: System.Windows.Forms.CreateParams get_CreateParams()

Stack Trace:    at ScintillaNet.Scintilla.get_CreateParams()
   at System.Windows.Forms.Control..ctor(Boolean autoInstallSyncContext)
   at ScintillaNet.Scintilla..ctor()
   at AVRProjectIDE.SettingsManagement.Load()
   at AVRProjectIDE.Program.Main(String[] args)

Source: ScintillaNet

Original comment by mayhemsm on 15 Jun 2010 at 2:50

GoogleCodeExporter commented 9 years ago
Actualy there was a 2nd error after I closed the first. Hope it helps.

Main IDE Error

Modified code files should have been backed up occasionally automatically, go 
look for them if the editor crashes.
If this is an issue or bug, please report this to 
http://code.google.com/p/avr-project-ide/issues/list

Version: AVRProjectIDE_89

Date: June 14 2010

OS: Microsoft Windows NT 6.1.7600.0

Environment Version: 2.0.50727.4927

Message: %1 is not a valid Win32 application

Target Site: System.Windows.Forms.CreateParams get_CreateParams()

Stack Trace:    at ScintillaNet.Scintilla.get_CreateParams()
   at System.Windows.Forms.Control..ctor(Boolean autoInstallSyncContext)
   at ScintillaNet.Scintilla..ctor()
   at AVRProjectIDE.DisassemblyViewer.InitializeComponent()
   at AVRProjectIDE.DisassemblyViewer..ctor()
   at AVRProjectIDE.IDEWindow..ctor(AVRProject project)
   at AVRProjectIDE.Program.Main(String[] args)

Source: ScintillaNet

Original comment by mayhemsm on 15 Jun 2010 at 2:52

GoogleCodeExporter commented 9 years ago
something went wrong with the ScintillaNet DLL
ok I can reproduce the error on my end, we are running the same OS and I just 
uninstalled tortoise myself

will work on it

Original comment by frank.zhao.main@gmail.com on 15 Jun 2010 at 4:59

GoogleCodeExporter commented 9 years ago
rebuilt and tested with settings for x86, error goes away, if i target all 
platforms, then there is an error, i took a look at the ScintillaNet source 
code and it is also compiled for all platforms, so it looks like the best 
course of action is to keep ScintillaNet the way it is and change my settings 
to x86, will be done in update 90

Original comment by frank.zhao.main@gmail.com on 15 Jun 2010 at 5:04