My favorites | Sign in
Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 146: ZScreen crashes at start
1 person starred this issue and may be notified of changes. Back to list
Status:  Started
Owner:  mcored
Cc:  flexy123, rgrthat, Hades32
Type-Defect
Priority-Critical


Sign in to add a comment
 
Reported by xodaehS, Oct 04, 2009
What steps will reproduce the problem?
1. Downloaded and installed ZScreen-3.12.3.0-setup.exe
2. Setup Dialog appears, clicking "Ok"
3. results in windows "program crashed" info dialog

What is the expected output? What do you see instead?
I expected Zscreen to start :-) Instead I see a crash info

What version of the product are you using? On what operating system?
3.12.3.0, using on Windows 7 RC 64bit, previous versions worked(some worse
than others..)

zscreen setup.png
50.9 KB   View   Download
zscree crash.png
47.2 KB   View   Download
Comment 1 by mcored, Oct 05, 2009
xodaeh, 

Unfortunately, from the given information, you are not going to like what I am
suggesting, but... 

If you wish to co-operate and help everybody out, the most efficient way to figure
out where the problem is, by [RunningFromSource]

A couple of downloads will you have to do from
http://code.google.com/p/zscreen/wiki/RunningFromSource and it will tell you exactly
where it fails. 

Please let me know if this is something possible you can do. 

Status: Accepted
Owner: mcored
Comment 2 by xodaehS, Oct 05, 2009
mcored,

I installed VS, checked out and startet debug, what informations do you need exactly?
Maybe this screenshot is already helpful (unfortunately there were two german Strings
in the english VS version...)

Yours faithfully
xodaehs
zscreen debug screen.png
113 KB   View   Download
Comment 3 by mcored, Oct 05, 2009
xodaehs, that's a great start, thanks. 

Can you please do the following: (with reference to this screenshot:
http://i36.tinypic.com/25qaull.png)

 * Right click at the line: Engine.TurnOn(new ZScreenLib.Engine.EngineOptions {
KeyboardHook = true, ShowConfigWizard = true });
 * Insert Breakpoint: i35.tinypic.com/30ttcvd.png
 * Press F5 to debug
 * Using Debug > Step Into (http://i37.tinypic.com/11v3zhk.png) please debug to the
line where it fails 

Once you determine which line, or the process is over and you get the screen similar
to the one you shows, can you click "Copy exception detail to the clipboard"?

Thanks,
McoreD
Cc: flexy123 rgrthat
Comment 4 by xodaehS, Oct 06, 2009
mcored,

first I want to ask whether these messages (see attachment) are normal when opening
the ZScreen.sln using http://www.microsoft.com/express/vcsharp/#webInstall ? Libary
folders aren't that unimportant usually :)

The error happens at line 256 in ...\ZScreen\trunk\ZScreenLib\Helpers\XMLSettings.cs
"public XmlFont WatermarkFont = SerializeFont(new Font("Arial", 8));"
After this line it jumps into catch

Ex detail:
System.ArgumentException was caught
  Message="Die Schriftart Arial unterstützt den Schnitt Regular nicht."
  Source="System.Drawing"
  StackTrace:
       bei System.Drawing.Font.CreateNativeFont()
       bei System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle
style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
       bei System.Drawing.Font..ctor(String familyName, Single emSize)
       bei ZScreenLib.XMLSettings..ctor() in C:\Users\Sheadox\Documents\Visual Studio
2008\Projects\ZScreen\trunk\ZScreenLib\Helpers\XMLSettings.cs:Zeile 256.
       bei ZScreenLib.XMLSettings.Read(String filePath) in
C:\Users\Sheadox\Documents\Visual Studio
2008\Projects\ZScreen\trunk\ZScreenLib\Helpers\XMLSettings.cs:Zeile 729.
       bei ZScreenLib.XMLSettings.Read() in C:\Users\Sheadox\Documents\Visual Studio
2008\Projects\ZScreen\trunk\ZScreenLib\Helpers\XMLSettings.cs:Zeile 690.
       bei ZScreenLib.Engine.LoadSettings(String fp) in
C:\Users\Sheadox\Documents\Visual Studio
2008\Projects\ZScreen\trunk\ZScreenLib\Engine.cs:Zeile 218.
       bei ZScreenLib.Engine.LoadSettings() in C:\Users\Sheadox\Documents\Visual
Studio 2008\Projects\ZScreen\trunk\ZScreenLib\Engine.cs:Zeile 188.
       bei ZScreenGUI.Loader.RunZScreen() in C:\Users\Sheadox\Documents\Visual Studio
2008\Projects\ZScreen\trunk\ZScreen\Loader.cs:Zeile 57.
  InnerException: 

Greetz,
xodaehs
c# error.png
26.4 KB   View   Download
c# error 2.png
25.8 KB   View   Download
Comment 5 by mcored, Oct 06, 2009
I thank you for dealing with this issue in a professional manner. The error as you
identified is in: 

The error happens at line 256 in ...\ZScreen\trunk\ZScreenLib\Helpers\XMLSettings.cs
"public XmlFont WatermarkFont = SerializeFont(new Font("Arial", 8));"
After this line it jumps into catch

We will be looking into this and provide an updated build. 

The solution folders are a premium feature it seems, limited to Visual Studio. I am
glad you are still able to run the solution. 


Status: Started
Comment 6 by mcored, Oct 06, 2009
Here are some possible workarounds for the time being:
http://www.google.com/search?q=Die+Schriftart+Arial+unterst%C3%BCtzt+den+Schnitt+Regular+nicht&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

I need to google translate them to understand, and I will. :)
Labels: -Priority-Medium Priority-High
Comment 7 by mcored, Oct 06, 2009
Hi, can you please update source as: http://j.mp/d7ODm
and retry debugging ZScreen please?
Comment 8 by xodaehS, Oct 07, 2009
Now, there is no Exception any more. The config dialog appeared once and the app
closed immediately. When debugging again, splash screen appears shortly and app closes.
Comment 9 by mcored, Oct 13, 2009
xodaehS, sorry for the delayed reply. Unfortunately, all I can suggest for now is try
to put a Break Point here http://j.mp/TNXQU and Step In to the line and go line by
line to see where it fails. Would be great to know where the problem is. Thanks. 
Comment 10 by mcored, Oct 13, 2009
xodaehS, if you update source (ZScreen folder) from SVN now, you can easily be able
to track the line of failure. Thanks. 
Comment 11 by xodaehS, Nov 11, 2009
Sorry, have been busy...
Still getting exception:

System.ArgumentException was unhandled
  Message="Der Wert 0 ist für emSize ungültig. emSize muss größer als 0 und kleiner
und kleiner als oder gleich System.Single.MaxValue sein.\r\nParametername: emSize"
  Source="System.Drawing"
  ParamName="emSize"
  StackTrace:
       bei System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle
style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
       bei System.Drawing.Font..ctor(String familyName, Single emSize, FontStyle
style, GraphicsUnit unit)
       bei ZScreenLib.XMLSettings.XmlFont.ToFont() in
C:\Users\Sheadox\Documents\Visual Studio
2008\Projects\ZScreen\trunk\ZScreenLib\Helpers\XMLSettings.cs:Zeile 653.
       bei ZScreenLib.XMLSettings.DeserializeFont(XmlFont font) in
C:\Users\Sheadox\Documents\Visual Studio
2008\Projects\ZScreen\trunk\ZScreenLib\Helpers\XMLSettings.cs:Zeile 633.
       bei ZScreenGUI.ZScreen.FontToString() in C:\Users\Sheadox\Documents\Visual
Studio 2008\Projects\ZScreen\trunk\ZScreen\Forms\ZScreen.cs:Zeile 2556.
       bei ZScreenGUI.ZScreen.ZScreen_ConfigGUI() in
C:\Users\Sheadox\Documents\Visual Studio
2008\Projects\ZScreen\trunk\ZScreen\Forms\ZScreen.cs:Zeile 537.
       bei ZScreenGUI.ZScreen..ctor() in C:\Users\Sheadox\Documents\Visual Studio
2008\Projects\ZScreen\trunk\ZScreen\Forms\ZScreen.cs:Zeile 77.
       bei ZScreenGUI.Loader.RunZScreenBeta() in C:\Users\Sheadox\Documents\Visual
Studio 2008\Projects\ZScreen\trunk\ZScreen\Loader.cs:Zeile 80.
       bei ZScreenGUI.Loader.Main() in C:\Users\Sheadox\Documents\Visual Studio
2008\Projects\ZScreen\trunk\ZScreen\Loader.cs:Zeile 48.
       bei System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       bei
System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext
activationContext, String[] activationCustomData)
       bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
       bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state)
       bei System.Threading.ThreadHelper.ThreadStart()
  InnerException: 
------------------------
Translation of the german "Der Wert 0 ist für emSize ungültig. emSize muss größer als
0 und kleiner und kleiner als oder gleich System.Single.MaxValue sein."

"The value 0 is not valid for emSize. It must be bigger than 0 and smaller than or
equal System.Single.MaxValue"
Comment 12 by mcored, Nov 11, 2009
xodaehS, thanks for getting back to us. We are looking into this issue at critical 
priority. This is one of those issues where reproducing is nearly impossible, but 
please stay tuned. 
Cc: Hades32
Labels: -Priority-High Priority-Critical
Comment 13 by xodaehS, Nov 11, 2009
Thanks for your efforts.
I can also offer you the possibility to watch this issue live on my pc via teamviewer
if you would like to
Sign in to add a comment

Hosted by Google Code