PDA

View Full Version : [FIXED] [V0.5.3] Crash in 0.53 - Viewport Page - Can't Render Design View



ColdSun
Jun 25, 2008, 9:27 PM
I've put a viewport on my page and made some changes to it. Now when I try to render in design view, VWD 2008 crashes and restarts. If I create a new page without changing any viewport code, it works. I'm guessing I have something wrong here, but it might be a bug.



<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>


<%@ Register assembly="Coolite.Ext.Web" namespace="Coolite.Ext.Web" tagprefix="ext" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">

<ext:ViewPort ID="ViewPort1" runat="server">
<Content>
<ext:BorderLayout runat="server">
<South Collapsible="true" Split="true" Margins-Bottom="5" Margins-Right="5" Margins-Left="5" CMargins-Left="5" CMargins-Right="5" CMargins-Bottom="5" CMargins-Top="5">
<ext:Panel runat="server" Height="100" Title="User Information" />
</South>
<West Collapsible="true" Split="true" Margins-Left="5" Margins-Top="77" CMargins-Left="5" CMargins-Top="77" CMargins-Right="5" Margins-Right="0">
<ext:Panel runat="server" Title="Help" Width="175">
<Content>
<ext:Accordion runat="server" Animate="true">
<ext:Panel runat="server" Border="false" Icon="FolderGo"
Title="LMS Basics" />
<ext:Panel runat="server" Border="false" Collapsed="true" Icon="FolderGo"
Title="Administrator Help" />
<ext:Panel runat="server" Border="false" Collapsed="true" Icon="FolderGo"
Title="Manager/Scheduling Help" />
</ext:Accordion>
</Content>
</ext:Panel>
</West>
<Center Margins-Right="5" Margins-Top="77">
<ext:Panel runat="server" Title="Center" Header="False">
<Content>
<ext:FitLayout runat="server">
<ext:TabPanel runat="server" ActiveTab="0" Border="false" Title="Center">
<Tabs>
<ext:Tab runat="server" Title="Welcome to Academus" />
<ext:Tab runat="server" Closable="true" Title="Important News" />
</Tabs>
</ext:TabPanel>
</ext:FitLayout>
</Content>
</ext:Panel>
</Center>
</ext:BorderLayout>
</Content>
</ext:ViewPort>



<ext:ScriptManager ID="ScriptManager1" runat="server" />
</form>
</body>
</html>

geoffrey.mcgill
Jun 25, 2008, 10:00 PM
Hi Heath,

Hmm. We were having some problems with the Icon properties crashing VS/VWD in 0.5.2, although I was sure we fixed the bug in 0.5.3.

Can you try removing the Icon properties from each tag, and then reopen in Design, then start adding the Icon properties back until it crashes. Let me know if you find the property which bombs.

I just opened your sample in VWD 2008 and could not get it crash. I'll keep testing.

geoffrey.mcgill
Jun 25, 2008, 10:07 PM
Tip: Instead of defining the Margins and CMargins properties individually, they can be set using the MarginsSummary and CMarginsSummary properties.

For example, the following code sample demonstrates setting each Margins property individually.

Example


Margins-Top="5" Margins-Right="0" Margins-Bottom="0" Margins-Left="5"

Or, you can do the same thing with the MarginsSummary property.

Example


MarginsSummary="5 0 0 5"

The pattern is Top-Right-Bottom-Left.

Same thing for the CMarginsSummary.

Hope this helps.

ColdSun
Jun 25, 2008, 10:20 PM
Geoffrey,

I removed each icon property one at a time, each time getting the crash when trying to go to design view. If I create a new page with the viewport on it, I can get into design view.

Thanks for the tips! I'm new at this extjs stuff so they will come in very handy. :)

Do you think somehow my VWD 2008 Beta 1 install is corrupt? Should I step down to the VWD 2008 normal (not beta) version? How do I get rid of the registry settings if I do that (in case something in the registry is causing it)?

ColdSun
Jun 25, 2008, 11:02 PM
OK I was wrong. The new page that has no changes except an added scriptmanager and added viewport crashes when I try to switch to design mode. I haven't changed anything after dropping them on my pages - no attributes even. I saved it and shut down VWD 2008 and came back later and it crashed upon going to design view.

geoffrey.mcgill
Jun 26, 2008, 12:11 AM
yeesh. I'm trying to reproduce locally.

What happens if you create a new Page, then add a ScriptManager, the add a window. Then in the Window, drag in a BorderLayout control.

As well, with the ViewPort, try removing the AccordionLayout control which should be in the <East> region.

Any help narrowing down exactly what part of the ViewPort which is causing the crash would really help.

geoffrey.mcgill
Jun 26, 2008, 12:37 AM
Ok. I've reproduced the crash.

Now just trying to find the root cause. I'll keep this thread updated.

geoffrey.mcgill
Jun 26, 2008, 12:55 AM
I can consistently reproduce the crash under the following two scenarios
If any other <ext:> control which contains a nested <ext:> control is set on the Page before the <ext:ScriptManager> If there is no <ext:ScriptManager> on the Page.
I know exactly where this is failing in the source and working on the fix.

ColdSun
Jun 26, 2008, 1:15 AM
You guys are awesome.

I've moved the scriptmanager to the top, right below the form tag and I can now use the design view. I prefer it to be at the bottom but that's not a big deal. I should have thought to try this!

geoffrey.mcgill
Jun 26, 2008, 1:58 AM
I've fixed the bug. This is a critical enough bug/fix that I'll update v0.5.3 and release new installers and manual installation packages tomorrow.

geoffrey.mcgill
Jul 07, 2008, 11:32 AM
This bug has been fixed, although it's very difficult to say that's 100% guaranteed.

The fix is included with version 0.5.4 and both updated Community and Professional Editions are available to download (http://www.ext.net/download/).

Please give the new v0.5.4 build a try and let us know if you run into any problems.

If you experience a crash with 0.5.4 (or newer), please do your best to let us know what steps lead up to (or caused) the crash.