Forum: Ruby on Rails White Screen of Death

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Nuno (Guest)
on 2006-05-17 17:25
Hello, I've heard these words to describe a RoR application returning an
empty page.

This happen from time to time even here, in the forum.

That is the cause of this misbehaviour ? Is it related with something
external to RoR itself ?

What is the solution to avoid the WSOD ?
Alder G. (Guest)
on 2006-05-17 17:46
(Received via mailing list)
On 5/17/06, Nuno <removed_email_address@domain.invalid> wrote:
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> removed_email_address@domain.invalid
> http://lists.rubyonrails.org/mailman/listinfo/rails
>

The software running rubyforums.com is RForum by Andreas S.. If
you're experiencing some sort of recurring problem, here is where you
file a bug:

http://rforum.andreas-s.net/trac/newticket
Jón B. (Guest)
on 2006-05-17 18:02
(Received via mailing list)
He is not describing a problem. He is just wondering what makes this
come up and how to avoid it.

On 5/17/06, Alder G. <removed_email_address@domain.invalid> wrote:
> >
> file a bug:
>
> http://rforum.andreas-s.net/trac/newticket
>
> --
> -Alder
> _______________________________________________
> Rails mailing list
> removed_email_address@domain.invalid
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


--
Bakki K. (Guest)
on 2006-05-17 18:16
(Received via mailing list)
On 5/17/06, Nuno <removed_email_address@domain.invalid> wrote:
> Hello, I've heard these words to describe a RoR application returning an
> empty page.
>
> This happen from time to time even here, in the forum.
>
> That is the cause of this misbehaviour ? Is it related with something
> external to RoR itself ?

I've had this sort of a problem when there has been a Ruby syntax
error. A good solution is to try the Ruby code in irb first to make
sure its syntax is clean.

> What is the solution to avoid the WSOD ?
>

I think core developers use the console a lot to try new snippets. So
getting into that habit may be good. (I don't use it quite as much as
I probably should)

-bakki
Alder G. (Guest)
on 2006-05-17 18:22
(Received via mailing list)
On 5/17/06, Jon Gretar B. <removed_email_address@domain.invalid> wrote:
> > > That is the cause of this misbehaviour ? Is it related with something
> > >
> > Rails mailing list
> Rails mailing list
> removed_email_address@domain.invalid
> http://lists.rubyonrails.org/mailman/listinfo/rails
>

Well, mabye. But saying "I'm seeing a white screen" doesn't help much.
At the very least, check the source of the page (if any) you're
getting. Getting a blank page might be caused by a huge range of
causes, from a non-terminated <style> tag to the webserver failing to
complete responses. It also depends on local factors, like the client
browser.

Just asking about "a white screen" is too little information.
Derrick S. (Guest)
on 2006-05-17 18:56
(Received via mailing list)
On May 17, 2006, at 9:25 AM, Nuno wrote:

> Hello, I've heard these words to describe a RoR application
> returning an
> empty page.
>
> This happen from time to time even here, in the forum.
>
> That is the cause of this misbehaviour ? Is it related with something
> external to RoR itself ?
>
> What is the solution to avoid the WSOD ?

The notorious WSOD you speak of refers to issues with session
management, etc, that existed in Rails 1.0.  Avoiding the WSOD is as
simple as switching to Rails 1.1  :)

Of course, there are ways to create a blank page within your own
code.  If you're on 1.1 and still seeing "a" WSOD (as opposed to
"the" WSOD) you'll have to debug further.

-Derrick S.
Martin G. (Guest)
on 2006-05-17 21:28
(Received via mailing list)
Hiall,

Maybe this is not so helpful as you most probably ruled it out as a
reason already. I saw such a WSOD yesterday in my app, only to find
out that a before_filter returned false! development.log was my friend
at that time :)

cheers
Martin
This topic is locked and can not be replied to.