Project

General

Profile

FastCGI: incomplete headers (0 bytes) received from server

Added by Smitty . over 14 years ago

Sorry for posting so many different threads, but I just want to post each problem as I face it instead of waiting until each is solved.

Right now I am trying to use WTabWidget and WTable, but it seems like I'm using them incorrectly.

Here is my init code:

m_paramTabs = new Wt::WTabWidget(root());
m_paramTabs->setInternalPathEnabled();
m_paramTabs->setInternalBasePath("/params");

m_ruptureParamsTable = new Wt::WTable(root());
m_outcomeParamsTable = new Wt::WTable(root());
m_mortalityParamsTable = new Wt::WTable(root());
m_lifeExpParamsTable = new Wt::WTable(root());

m_paramTabs->addTab(m_ruptureParamsTable, "Aneurysm Rupture Model");
m_paramTabs->addTab(m_outcomeParamsTable, "Poor Outcome Probabilities");
m_paramTabs->addTab(m_mortalityParamsTable, "Annual Relative Risk Of Mortality");
m_paramTabs->addTab(m_lifeExpParamsTable, "Non IA-related Life Expectancy Model");

root()->addWidget(m_paramTabs);

When I try to browse to the app, I either get a blank page and the incomplete headers error, or it times out. Any idea what is going on? Thanks~


Replies (6)

RE: FastCGI: incomplete headers (0 bytes) received from server - Added by Smitty . over 14 years ago

It seems like it has something to do with what I am putting in each tab. If I put just WText into each tab then everything works fine, but when I try adding a WGroupBox or WTable, it starts having these problems...

RE: FastCGI: incomplete headers (0 bytes) received from server - Added by Wim Dumon over 14 years ago

Does your Wt application crash? This is usually mentioned in the apache server logs.

Wim.

RE: FastCGI: incomplete headers (0 bytes) received from server - Added by Smitty . over 14 years ago

Hmm... I think it hangs actually. Here are the relevant logs:

[Mon Oct 25 12:39:06 2010] [error] [client 128.151.107.78] FastCGI: comm with (dynamic) server "/srv/apache/domain/cgi-bin/calc/calc.wt" aborted: (first read) idle timeout (30 sec), referer: http://domain/cgi-bin/calc/calc.wt
[Mon Oct 25 12:39:06 2010] [error] [client 128.151.107.78] FastCGI: incomplete headers (0 bytes) received from server "/srv/apache/domain/cgi-bin/calc/calc.wt", referer: http://domain/cgi-bin/calc/calc.wt

Also, another thing I noticed was when I added the WTabWidget, my event signals stopped working. I had some callbacks connected to two WPushButtons, but when I clicked them "Loading..." was displayed and sometimes it just refreshed the page, and sometimes it timed out.

RE: FastCGI: incomplete headers (0 bytes) received from server - Added by Smitty . over 14 years ago

Okay, I discovered another strange problem. I added a member variable into my WApplication class. It's another class that is used to do some calculations for this program. The problem is when I add that class, the program stops working and that incomplete headers error is logged. I really don't see how those to things are connected at all.

RE: FastCGI: incomplete headers (0 bytes) received from server - Added by Smitty . over 14 years ago

I'm just going to link my entire program here so you can see the whole thing at once. Maybe I'm doing something really stupid, heh.

[[[http://pastie.org/private/yetanoxxhf30lurs4fynvw]]]

RE: FastCGI: incomplete headers (0 bytes) received from server - Added by Smitty . over 14 years ago

Okay it seems like this problem has been fixed for now... although the only thing I did was "make clean" and then "make" to rebuild everything. I guess something wasn't build correctly the first time? I haven't got a clue, but everything is working how it should be right now.

    (1-6/6)