1 Feb 08

Dreamweaver CS3 crashes and won’t start up again

The world famous 8,192kb bug that crashed a million Dreamweavers. Probably.

Hey kids, this is definitely one of the weirdest bugs I have ever clapped eyes on.

Not for the first time, I was happily authoring CSS and Dreamweaver CS3 crashed. Turns out, it doesn’t have to be specifically CSS, but that was my situation anyway.

The crash

It’s all too familiar: this is DW after all, and those of us who have used it from the start will know the pedigree. But I try to restart the program anyway: it’s 1am and I don’t need this. Nope, fail. Dreamweaver CS3 won’t start on Windows XP. In these times of quad processors and 32-bit colour, has the long-exorcised ghost of DW’s buggy past returned to haunt us?

The following options were available:

  • Abuse someone at Adobe
  • Reinstall Dreamweaver
  • Try to clean out the config files so that Dreamweaver has to create new ones on restart (an old and occasionally successful solution)

And the answer? None of the above.

The fix turned out to be simple, though somewhat obscure. I shall elaborate in a moment, but first I must attribute my source. In August 2007, Adobe Community Expert and author David Powers sussed out this profoundly ugly problem in the Macromedia.Dreamweaver Google Group. At the time, it was undocumented elsewhere and not particularly easy to find with bland keywords in search engines.

The cause of the crash

Apparently, an install of Dreamweaver CS3 (mine is currently v9.0 Build 3481) crashes if you edit a file to exactly a multiple of 8,192 bytes. Not a byte more, not a byte less. The chances of this happening are probably fairly small: to edit a file to the exact size at the same moment that DW does some processing and gets upset.

Don’t believe me? I wouldn’t have either in your position. But here’s what happened: I’m editing a document of any supported format, I’m just about to change a particular value and suddenly it crashes. So I checked out David’s comment above and, lo and behold:

Dreamweaver CS3 crashes and won't restart

So now what?

If you have this bug, from here it’s quick and easy to escape. Don’t bother trying to do anything with Dreamweaver CS3 because as long as your file is a multiple of 8,192 bytes, you ain’t going nowhere.

Step 1. If you were working within a Site, you can test if this bug was behind the crash

If you were editing your file within a defined Site, read on. Otherwise, you can skip to 2.

In Windows Explorer, temporarily rename the folder that contains your Site, so that Dreamweaver CS3 starts successfully, asking you to Manage Sites… because of course it can’t find your original folder.

If you were to point Manage Sites… to the new folder name, Dreamweaver CS3 would crash again, so just exit the app for now. You can now be pretty sure you’ve encountered this filesize bug.

If DW doesn’t start properly after this step, then you have some other problem and I’m sorry your visit here didn’t help.

Step 2. Edit the file that caused the crash outside of Dreamweaver CS3

Next, in a different text editor such as Notepad, increase the filesize of the file that you were editing when DW crashed – just by adding a bit of whitespace, for example – and then resave it. You could also decrease the file size by deleting whitespace, but of course you risk repeating the bug when you work on the file again later or indeed, you might not have anything to safely delete, so I’d recommend increasing instead.

Now, having altered the file, be sure to check that your filesize is indeed no longer a multiple of 8,192kb.

If you were working within a Site as described in Step 1, you can now rename the folder of your Site back to its original name in Windows Explorer.

Restart Dreamweaver CS3 and you should be back in action. I hope it worked for you too!

Afterthought

As you can probably see, there are quite a few satisfied customers in the Responses below, from Denmark to Chile. So why not let me know if you had this problem too and if your situation was a little different, please add to the knowledge.

And finally, this incident jogged my memory of another oddball software behaviour I encountered once in the early days of Office 2007 for Windows, because it too was about processing bytes and coming out with the wrong result. Check out this anomaly with Excel 2007: if you multiply 850 by 77.1 you get 100,000. The real answer? 65,535 of course, a juicy, meaningful number for aficionados of binary computing! [15 April 2008: I tested this again recently and it appears to have been patched - Mike]

Tags:

433 comments

  1. Gravatar martin says:

    This is the THIRD time this has happened to me.

    The first time took about 30 mins of digging around until I found this. Checked my file and indeed it was 8192. “Wow”, I thought, “lucky find, glad I didn’t try a reinstall” but never commented.

    The second time I couldn’t believe it was the same issue again, but it only took 15 minutes of messing around before I searched out this page to check the figure… lo and behold it was 16384. Was in a rush, so didn’t comment.

    Well this time took me 5 minutes and the file size is 24576 and I am commenting.

    Thanks for the fix!

  2. Gravatar Jeremy says:

    Wow – what a bug. Just ran into it for the first time. At first I was reading your article and thought to myself – no F#$%ing way that is it. Then I looked at the file size of my latest css file and it was 8k and change. So I edited in notepad and bingo – Dreamweaver started started back up. Woohooo. Google is god for leading my to this thread.

  3. What an absolutely ridiculous bug.

    How has this never been patched.

    Shame on you Adobe.

    Thanks for the OP, works like a charm.

  4. Gravatar Astroboy says:

    Worked like a charm. Thanks so much Mike. I would have never in a million years figured this out without reading this post.

  5. Gravatar Francesco says:

    Great!!! Thanx a lot!!!

  6. Gravatar jose says:

    I encountered the same problem and solution 1 – renaming the folder worked a treat. Thank you very much

  7. Gravatar Nicole says:

    Thank you so much!! Just sad I found this AFTER I uninstalled and reinstalled my whole CS3. My file was 16,383 bytes. 16,384 is the exact multiple, but when I did the test, it confirmed that it was my problem. Edited in notepad and it opened perfectly :)

  8. Gravatar Jacob Thomas says:

    Amazing! Thanks so much.

  9. Gravatar fourretoutjl says:

    Damn, i didn’t believe this until i checked the weight of my last saved file : 8192 bytes. Incredible, who could guess something like that. You rock dude. Thanx a lot.

  10. Gravatar Ricker says:

    Amazing! I never comment on things like this but this is just too wierd my last file was exactly 8192kb. I can’t believe someone could actually figure this out. Wow, good job and from the time this problem occurred until solved was less than 10 minutes. Thank You so much!

  11. Gravatar TalkingRock says:

    2013 and this bug still exists, and it was the css file. Doing Restore Points in Vista (usually only works in Safe Mode – another bug) would not have solved the problem, because Restore Points don’t touch files. Wow, thanks for publishing the fix.

Speak your brains

Your email address will not be published. Required fields are marked *


(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>