Forum archive 2000-2006

Brett Hendricks - Hardcopy failing to generate Correct Answers

Brett Hendricks - Hardcopy failing to generate Correct Answers

by Arnold Pizer -
Number of replies: 0
inactiveTopicHardcopy failing to generate Correct Answers topic started 9/13/2005; 4:39:22 PM
last post 1/3/2006; 2:23:32 PM
userBrett Hendricks - Hardcopy failing to generate Correct Answers  blueArrow
9/13/2005; 4:39:22 PM (reads: 877, responses: 6)
We're currently running WW 2.1.3 on RedHat Enterprise AS 4u1

Our Hardcopy Generator fails when generating "Correct Answers" (Hints and Solutions generate fine) on both open and closed homework sets, for both admin and non-admin users, and in both pdf and tex formats.

The only error message is HASH(0xHHHHHH) (where "H" is a hex digit) and the call stack ends with

in WeBWorK::ContentGenerator::go called at line 293 of /opt/webwork2/lib/WeBWorK.pm

The debug output for generating "Correct Answers" is

[Tue Sep 13 12:58:59 2005] WeBWorK::dispatch: Ok, looks like you're allowed to become admin. Whoopie!

[Tue Sep 13 12:58:59 2005] WeBWorK::dispatch: ---


[Tue Sep 13 12:58:59 2005] WeBWorK::dispatch: Finally, we'll load the display module...

[Tue Sep 13 12:58:59 2005] WeBWorK::dispatch: ...instantiate it...

[Tue Sep 13 12:58:59 2005] WeBWorK::dispatch: ...and call it:

[Tue Sep 13 12:58:59 2005] WeBWorK::dispatch: -------------------- call to WeBWorK::ContentGenerator::Hardcopy::go

[Tue Sep 13 12:58:59 2005] WeBWorK::dispatch: -------------------- call to WeBWorK::ContentGenerator::Hardcopy::go

[Tue Sep 13 12:58:59 2005] WeBWorK::dispatch: returning result: 0

[Tue Sep 13 12:59:03 2005] WeBWorK::dispatch:

===> Begin WeBWorK::dispatch() <===

 

The debug output for generating "Hints" is

[Tue Sep 13 13:37:11 2005] WeBWorK::dispatch: Ok, looks like you're allowed to become admin. Whoopie!

[Tue Sep 13 13:37:11 2005] WeBWorK::dispatch: -


[Tue Sep 13 13:37:11 2005] WeBWorK::dispatch: Finally, we'll load the display module...

[Tue Sep 13 13:37:11 2005] WeBWorK::dispatch: ...instantiate it...

[Tue Sep 13 13:37:11 2005] WeBWorK::dispatch: ...and call it:

[Tue Sep 13 13:37:11 2005] WeBWorK::dispatch: -------------------- call to WeBWorK::ContentGenerator::Hardcopy::go

[Tue Sep 13 13:37:13 2005] WeBWorK::dispatch: -------------------- call to WeBWorK::ContentGenerator::Hardcopy::go

[Tue Sep 13 13:37:13 2005] WeBWorK::dispatch: returning result: 302

[Tue Sep 13 13:37:33 2005] WeBWorK::CourseEnvironment::new: WeBWorK::CourseEnvironment: deprecated four-argument form of new() used.

[Tue Sep 13 13:37:33 2005] WeBWorK::CourseEnvironment::new: WeBWorK::CourseEnvironment: deprecated four-argument form of new() used.

[Tue Sep 13 13:37:33 2005] WeBWorK::CourseEnvironment::new: WeBWorK::CourseEnvironment: deprecated four-argument form of new() used.

Any ideas about how to track down the offending code or configuration? Thanks.

<| Post or View Comments |>


userBob Byerly - Re: Hardcopy failing to generate Correct Answers  blueArrow
9/14/2005; 11:18:00 AM (reads: 1003, responses: 0)
Don't know where the problem is, but in our setup, this problem went away when we explicitly set $siteDefaults{timezone} in our global configuration file (in our case, to "America/Chicago") rather than using the default. This might help in tracking down the offending code.

<| Post or View Comments |>


userJeff Denny - Re: Hardcopy failing to generate Correct Answers  blueArrow
9/14/2005; 7:33:47 PM (reads: 973, responses: 0)
Brett,

We had the same problem here with the correct answers. Bob's suggestion on the time zone fixed our troubles with the correct answers.

Jeff

<| Post or View Comments |>


userBrett Hendricks - Re: Hardcopy failing to generate Correct Answers  blueArrow
9/14/2005; 8:04:23 PM (reads: 985, responses: 0)
Bob and Jeff,

Thank you so much for your quick responses. Setting the default timezone solved the problem.

Brett

<| Post or View Comments |>


userMichael Gage - Re: Hardcopy failing to generate Correct Answers  blueArrow
9/15/2005; 5:08:23 PM (reads: 972, responses: 0)
Hi Brett The only error message is HASH(0xHHHHHH) (where "H" is a hex digit) and the call stack ends with

in WeBWorK::ContentGenerator::go called at line 293 of /opt/webwork2/lib/WeBWorK.pm

Can you post the error messages at the top part of this call stack -- in particular a line number in the file Hardcopy.pm would be helpful. It would be nice to track down where this error is generated and provide a better error message.

The fix that you and Bob and others have found is rather strange. It might have something to do with the installation of the module DateTime.pm on your machine. The DateTime.pm is actually supposed to determine the timezone from the clock on your local server. The override value in global.conf was mainly there to be overridden in individual courses in the case where the server is in one time zone and the users of the course were in another. It looks like the DateTime module is failing to determine the time zone from the local system, but this failure only causes problems in the Hardcopy script -- it's rather a puzzle.

Unfortunately I haven't been able to duplicate the problem here.

Thanks for any further evidence to use in tracking down this bug.

-- Mike

<| Post or View Comments |>


userBrett Hendricks - Re: Hardcopy failing to generate Correct Answers  blueArrow
12/31/2005; 2:43:16 AM (reads: 810, responses: 0)
Sorry for the delay in getting back to this. I didn't want to undo the fix during the semester, and then I just discovered that I had the original error page cached via google desktop.

Here's the Call stack

The information below can help locate the source of the problem.

* in DateTime::TimeZone::OffsetOnly::new called at line 60 of /usr/lib/perl5/site_perl/5.8.5/DateTime/TimeZone.pm * in DateTime::TimeZone::new called at line 71 of /usr/lib/perl5/site_perl/5.8.5/DateTime/TimeZone/Local.pm * in (eval) called at line 71 of /usr/lib/perl5/site_perl/5.8.5/DateTime/TimeZone/Local.pm * in DateTime::TimeZone::Local::_from_etc_localtime called at line 20 of /usr/lib/perl5/site_perl/5.8.5/DateTime/TimeZone/Local.pm * in DateTime::TimeZone::Local::local_time_zone called at line 50 of /usr/lib/perl5/site_perl/5.8.5/DateTime/TimeZone.pm * in DateTime::TimeZone::new called at line 1538 of /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/DateTime.pm * in DateTime::set_time_zone called at line 451 of /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/DateTime.pm * in DateTime::from_epoch called at line 508 of /opt/webwork2/lib/WeBWorK/Utils.pm * in WeBWorK::Utils::formatDateTime called at line 101 of /opt/webwork2/lib/WeBWorK/PG.pm * in WeBWorK::PG::defineProblemEnvir called at line 116 of /opt/webwork2/lib/WeBWorK/PG/Local.pm * in WeBWorK::PG::Local::new_helper called at line 59 of /opt/webwork2/lib/WeBWorK/PG/Local.pm * in (eval) called at line 59 of /opt/webwork2/lib/WeBWorK/PG/Local.pm * in WeBWorK::PG::Local::new called at line 50 of /opt/webwork2/lib/WeBWorK/PG.pm * in WeBWorK::PG::new called at line 791 of /opt/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm * in WeBWorK::ContentGenerator::Hardcopy::getProblemTeX called at line 699 of /opt/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm * in WeBWorK::ContentGenerator::Hardcopy::getSetTeX called at line 644 of /opt/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm * in WeBWorK::ContentGenerator::Hardcopy::getMultiSetTeX called at line 419 of /opt/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm * in WeBWorK::ContentGenerator::Hardcopy::generateHardcopy called at line 131 of /opt/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm * in (eval) called at line 131 of /opt/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm * in WeBWorK::ContentGenerator::Hardcopy::pre_header_initialize called at line 146 of /opt/webwork2/lib/WeBWorK/ContentGenerator.pm * in WeBWorK::ContentGenerator::go called at line 293 of /opt/webwork2/lib/WeBWorK.pm

Cheers, Brett

<| Post or View Comments |>


userSam Hathaway - Re: Hardcopy failing to generate Correct Answers  blueArrow
1/3/2006; 2:23:32 PM (reads: 803, responses: 0)
Hi Brett,

Thanks for the stack trace. You say you have the error page cached, can you post the whole page? I'm interested in how the "HASH(0xHHHHHH)" appears on the page.

Here's the bug I just opened on this issue:
http://bugs.webwork.rochester.edu/show_bug.cgi?id=934

Thanks for your help.
-sam

<| Post or View Comments |>