petorious / power8

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

Problem with launching Delphi after the last update #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
A strange problem appeared after the last update (1.4.5.666) on Windows 8.0.

I cannot launch the following soft from the main menu of Power 8 any more:
- Embarcadero RAD Studio 2009
- Embarcadero RAD Studio 2010
- Embarcadero RAD Studio XE
They start but report errors presumably related to .NET

But if I right click on the menu item and open a folder with shortcuts in 
Explorer, I can run these applications without problems
(it took a lot of time to find that this problem is related to launching from 
Power8)

Original issue reported on code.google.com by richv...@gmail.com on 4 Feb 2014 at 9:28

GoogleCodeExporter commented 8 years ago
Interesting, so it's RAD studio, not Power8 who reports errors? 
Could you please put couple of these errors here?
Also could you please send me the links (shortcuts) themselves?
When you're saying "main menu", do you refer to Start Manu or to Recent Items 
grid?
Can you try launching 1.4.4 again, e.g. from zip and check if it still can 
launch Delphi?

Original comment by agentmc@mail.ru on 4 Feb 2014 at 11:17

GoogleCodeExporter commented 8 years ago
Yes, it is reported by RAD Studio, but only when launched from power8's Start 
Menu. I just tried launching from the Recent Items - the same problem.
But if I right click to open folder (such as 
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Delphi\RAD Studio 2009) 
and launch a shortcut from this folder, no problem occurs.

I have almost all versions of Delphi installed, and this problem happens only 
with 2009, 2010 and XE - older and newer versions are ok. My guess it is 
because they use some specific .NET version.

Errors are different.
For example, for Delphi 2009, the text of error (in translation to English) is: 
"Value cannot be null. Parameter name: key", and the Detail button shows:
[21C7B652]{dotnetcoreide120.bpl} InteropApp.MSBuildRegisterTaskHost (Line 1350, 
"InteropApp.pas" + 2) + $40
[5000CE7D]{rtl120.bpl  } System.@CheckAutoResult (Line 21834, "System.pas" + 6) 
+ $0
[21C7B652]{dotnetcoreide120.bpl} InteropApp.MSBuildRegisterTaskHost (Line 1350, 
"InteropApp.pas" + 2) + $40
[21C78232]{dotnetcoreide120.bpl} 
InteropApp.TInteropHostAppManager.ResolveTempTaskHostStorage (Line 419, 
"InteropApp.pas" + 5) + $2B
[21C777CE]{dotnetcoreide120.bpl} InteropApp.TInteropHostAppManager.Create (Line 
268, "InteropApp.pas" + 48) + $3
[21CADCEF]{dotnetcoreide120.bpl} 
DotNetReg.TDotNetRegEvents.RegisterInteropHostApp (Line 71, "DotNetReg.pas" + 
0) + $7
[20AA6E71]{designide120.bpl} Events.TEvent.Send (Line 103, "Events.pas" + 2) + 
$11
[0041590D]{bds.exe     } EditorBindings.EditorBindings + $1
[501C565A]{vcl120.bpl  } Controls.TControl.WndProc (Line 6642, "Controls.pas" + 
91) + $6
[501C9CE7]{vcl120.bpl  } Controls.TWinControl.WndProc (Line 9336, 
"Controls.pas" + 136) + $6
[501E5A54]{vcl120.bpl  } Forms.TCustomForm.WndProc (Line 3901, "Forms.pas" + 
191) + $5
[501C9CE7]{vcl120.bpl  } Controls.TWinControl.WndProc (Line 9336, 
"Controls.pas" + 136) + $6
[501E5A54]{vcl120.bpl  } Forms.TCustomForm.WndProc (Line 3901, "Forms.pas" + 
191) + $5
[501C9400]{vcl120.bpl  } Controls.TWinControl.MainWndProc (Line 9065, 
"Controls.pas" + 3) + $6
[500591DC]{rtl120.bpl  } Classes.StdWndProc (Line 12703, "Classes.pas" + 8) + $0
[501C03E2]{vcl120.bpl  } Controls.FindControl (Line 2999, "Controls.pas" + 6) + 
$9
[501EEABD]{vcl120.bpl  } Forms.TApplication.ProcessMessage (Line 9660, 
"Forms.pas" + 30) + $1
[501EEAEA]{vcl120.bpl  } Forms.TApplication.ProcessMessages (Line 9682, 
"Forms.pas" + 1) + $4
[00416467]{bds.exe     } bds.bds (Line 198, "" + 8) + $A7C
[502220ED]{vcl120.bpl  } AppEvnts.TCustomApplicationEvents.DoActivate (Line 
200, "AppEvnts.pas" + 1) + $C
[50222739]{vcl120.bpl  } AppEvnts.TMultiCaster.DoActivate (Line 421, 
"AppEvnts.pas" + 5) + $C
[501EE053]{vcl120.bpl  } Forms.TApplication.WndProc (Line 9280, "Forms.pas" + 
115) + $C
[500591DC]{rtl120.bpl  } Classes.StdWndProc (Line 12703, "Classes.pas" + 8) + $0
[501EEABD]{vcl120.bpl  } Forms.TApplication.ProcessMessage (Line 9660, 
"Forms.pas" + 30) + $1
[501EEB02]{vcl120.bpl  } Forms.TApplication.HandleMessage (Line 9690, 
"Forms.pas" + 1) + $4
[501EEE2D]{vcl120.bpl  } Forms.TApplication.Run (Line 9827, "Forms.pas" + 26) + 
$3
[004259E6]{bds.exe     } bds.bds (Line 198, "" + 8) + $FFFB
Shortcut of Delphi 2009 is attached.

Original comment by richv...@gmail.com on 5 Feb 2014 at 9:48

GoogleCodeExporter commented 8 years ago
I reverted to 1.4.4 - and the problems disappears

Original comment by richv...@gmail.com on 5 Feb 2014 at 9:52

GoogleCodeExporter commented 8 years ago
Sorry, it appeared that the whole exe is attached when I choose to upload a 
shortcut, so I deleted it

Original comment by richv...@gmail.com on 5 Feb 2014 at 11:38

GoogleCodeExporter commented 8 years ago
Please download these files.
1. Replace your current Power8 exe with one from "DbgNoEU".
2. Launch it and try starting the Delphi.
Expected is that Delphi starts correctly. *If it doesn't please report here and 
do not proceed.*
3. After Delphi was launched successfully, quit Power8 and Delphi
4. Replace your Power8 exe with one from "NormalDbg"
5. Run it, and try running Delphi.
Expected is that Delphi *fails* starting. If it starts successfully, *report 
here and do not proceed*.
Go to your %temp% folder. Locate p8log.txt there. Zip it and send me to 
agentmc-at-mail.ru or power8.dev.team-at-gmail.com
This log _may_ contain sensible data such as certain paths, installed software 
list, etc, you might want to review it before sending.

Original comment by agentmc@mail.ru on 5 Feb 2014 at 10:40

Attachments:

GoogleCodeExporter commented 8 years ago
Delphi starts successfully with both DbgNoEU.7z and NormalDbg.7z 

Original comment by richv...@gmail.com on 6 Feb 2014 at 7:49

GoogleCodeExporter commented 8 years ago
Could you please provide me with Delphi you use or at least exact versions of 
installation packages so I can reproduce it locally?

BTW, this should help: http://qc.embarcadero.com/wc/qcmain.aspx?d=112179

Original comment by agentmc@mail.ru on 6 Feb 2014 at 9:28

GoogleCodeExporter commented 8 years ago
For example, Delphi 2009 is installed from "registered user downloads", the item
"Delphi 2009 and C++Builder 2009 DVD ISO - June 2009 release 
Includes Updates 1-4 and Help Update 1."

The first thing I did when encountered this error is searchig web for similar 
problems. And yes, I found exactly the same errors, but no workaround worked.
The last update of Delphi already had that line in bds.exe.config.
Another solution I found - reverting 
c:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config to 
defaults. It did not help.

Then I reinstalled Delphi and .NET. - it did not help as well.

And only then I found that errors happen only when running from new version of 
power8.

This problem is not critical because I can always run Delphi from Explorer.

Original comment by richv...@gmail.com on 8 Feb 2014 at 7:56

GoogleCodeExporter commented 8 years ago
Hi there!

Thanks for finding the bug!
Turned out the issue was really critical and could influence other 
functionality of Power8 and/or other software. Funny thing is that it feels 
Embarcadero implemented some code similar to mine but with inside-out version 
of bug you discovered.

Please try the attached build. It should work normally. 
BTW, the build attached is release one, feel free to use it on daily basis if 
it works well.

Original comment by agentmc@mail.ru on 2 Mar 2014 at 11:29

Attachments: