Issue
User: | Dev User (dev@example.com) |
---|---|
Student message: | Error creating question variant |
Instructor message: | CourseIssueError: /PrairieLearn/apps/prairielearn/elements/pl-multiple-choice/pl-multiple-choice.py: Error calling prepare(): Error: CodeCallerNative child process exited unexpectedly, code = 1, signal = null |
ID: | 169 |
Date: | 2024-08-10 10:27:45-05 (CDT) |
Console log:
Traceback (most recent call last): File "/PrairieLearn/apps/prairielearn/python/zygote.py", line 395, in <module> worker_loop() File "/PrairieLearn/apps/prairielearn/python/zygote.py", line 303, in worker_loop val = method(*args) File "/PrairieLearn/apps/prairielearn/elements/pl-multiple-choice/pl-multiple-choice.py", line 430, in prepare raise ValueError( ValueError: pl-multiple-choice element has duplicate choices: ['$t = 0\\rm\\ s$'] Traceback (most recent call last): File "/PrairieLearn/apps/prairielearn/python/zygote.py", line 437, in <module> raise Exception( Exception: worker process exited unexpectedly with status 256
Associated data:
{ "course": { "id": 1, "path": "/PrairieLearn/exampleCourse", "title": "Example Course", "branch": "master", "options": { "devModeFeatures": [], "useNewQuestionRenderer": true }, "created_at": "2024-07-23T18:37:20.684105+00:00", "deleted_at": null, "repository": null, "short_name": "XC 101", "commit_hash": null, "sync_errors": null, "sharing_name": null, "sharing_token": "ed2b3e6f-95df-417d-b7ae-f2c3611aaa08", "sync_warnings": "", "example_course": true, "institution_id": 1, "template_course": false, "display_timezone": "America/Chicago", "sync_job_sequence_id": null, "yearly_enrollment_limit": null, "course_instance_enrollment_limit": null }, "variant": { "id": "6023", "date": {}, "open": true, "broken": true, "number": 1, "params": { "d": 8, "h": 0, "m": 1.6, "v0": 24, "t_c": 0, "none": "true", "t_x1": 0, "t_x2": 0.333, "t_x3": 0.975, "t_x4": 0, "theta": 20 }, "options": {}, "user_id": "1", "duration": 0, "group_id": null, "broken_at": {}, "broken_by": null, "course_id": "1", "num_tries": 0, "question_id": "134", "true_answer": {}, "variant_seed": "f1hnop", "workspace_id": null, "authn_user_id": "1", "first_duration": null, "formatted_date": "2024-08-10 10:27:45 (CDT)", "course_instance_id": "1", "instance_question_id": null }, "question": { "id": "134", "qid": "gallery/multipleChoice/complex", "type": "Freeform", "uuid": "5c16523e-accc-41b7-9d38-41dc66a36b4f", "title": "Randomized multiple-choice question", "number": 241, "options": null, "topic_id": "6", "course_id": "1", "directory": "gallery/multipleChoice/complex", "deleted_at": null, "sync_errors": null, "client_files": [ "client.js", "question.html", "answer.html" ], "dependencies": {}, "sync_warnings": "", "grading_method": "Internal", "partial_credit": true, "single_variant": false, "workspace_args": null, "workspace_home": null, "workspace_port": null, "shared_publicly": false, "workspace_image": null, "template_directory": null, "show_correct_answer": true, "sync_job_sequence_id": null, "workspace_environment": {}, "workspace_url_rewrite": null, "external_grading_files": null, "external_grading_image": null, "workspace_graded_files": null, "external_grading_enabled": null, "external_grading_timeout": null, "external_grading_entrypoint": null, "shared_publicly_with_source": false, "workspace_enable_networking": null, "external_grading_environment": {}, "external_grading_enable_networking": null } }
System data:
{ "stack": "CourseIssueError: /PrairieLearn/apps/prairielearn/elements/pl-multiple-choice/pl-multiple-choice.py: Error calling prepare(): Error: CodeCallerNative child process exited unexpectedly, code = 1, signal = null\n at visitNode (file:///PrairieLearn/apps/prairielearn/dist/question-servers/freeform.js:519:23)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async visitNode (file:///PrairieLearn/apps/prairielearn/dist/question-servers/freeform.js:567:30)\n at async traverseQuestionAndExecuteFunctions (file:///PrairieLearn/apps/prairielearn/dist/question-servers/freeform.js:583:21)\n at async processQuestionHtml (file:///PrairieLearn/apps/prairielearn/dist/question-servers/freeform.js:736:102)\n at async file:///PrairieLearn/apps/prairielearn/dist/question-servers/freeform.js:843:93\n at async instrumentedWithMetrics (file:///PrairieLearn/packages/opentelemetry/dist/metrics.js:47:16)\n at async file:///PrairieLearn/apps/prairielearn/dist/question-servers/freeform.js:916:56\n at async withCodeCaller (file:///PrairieLearn/apps/prairielearn/dist/lib/code-caller/index.js:195:20)\n at async file:///PrairieLearn/apps/prairielearn/dist/question-servers/freeform.js:915:16\n at async file:///PrairieLearn/packages/opentelemetry/dist/tracing.js:7:28\n at async makeVariant (file:///PrairieLearn/apps/prairielearn/dist/lib/question-variant.js:62:61)\n at async makeAndInsertVariant (file:///PrairieLearn/apps/prairielearn/dist/lib/question-variant.js:140:52)\n at async ensureVariant (file:///PrairieLearn/apps/prairielearn/dist/lib/question-variant.js:235:12)\n at async getAndRenderVariant (file:///PrairieLearn/apps/prairielearn/dist/lib/question-render.js:289:26)\n at async file:///PrairieLearn/apps/prairielearn/dist/pages/instructorQuestionPreview/instructorQuestionPreview.js:45:5", "courseErrData": { "stack": "Error\n at CodeCallerNative._errorData (file:///PrairieLearn/apps/prairielearn/dist/lib/code-caller/code-caller-native.js:546:29)\n at CodeCallerNative._callCallback (file:///PrairieLearn/apps/prairielearn/dist/lib/code-caller/code-caller-native.js:470:29)\n at CodeCallerNative._handleChildExit (file:///PrairieLearn/apps/prairielearn/dist/lib/code-caller/code-caller-native.js:398:18)\n at ChildProcess.emit (node:events:519:28)\n at ChildProcess._handle.onexit (node:internal/child_process:294:12)\n at Process.callbackTrampoline (node:internal/async_hooks:130:17)", "outputBoth": "Traceback (most recent call last):\n File \"/PrairieLearn/apps/prairielearn/python/zygote.py\", line 395, in <module>\n worker_loop()\n File \"/PrairieLearn/apps/prairielearn/python/zygote.py\", line 303, in worker_loop\n val = method(*args)\n File \"/PrairieLearn/apps/prairielearn/elements/pl-multiple-choice/pl-multiple-choice.py\", line 430, in prepare\n raise ValueError(\nValueError: pl-multiple-choice element has duplicate choices: ['$t = 0\\\\rm\\\\ s$']\nTraceback (most recent call last):\n File \"/PrairieLearn/apps/prairielearn/python/zygote.py\", line 437, in <module>\n raise Exception(\nException: worker process exited unexpectedly with status 256\n", "outputData": "", "childIsNull": true, "lastCallData": { "cwd": "/PrairieLearn/apps/prairielearn/elements/pl-multiple-choice", "fcn": "prepare", "args": [ "<pl-multiple-choice answers-name=\"t\" none-of-the-above=\"true\">\n <pl-answer correct=\"true\">$t = 0\\rm\\ s$</pl-answer>\n <pl-answer correct=\"false\">$t = 0\\rm\\ s$</pl-answer>\n <pl-answer correct=\"false\">$t = 0.333\\rm\\ s$</pl-answer>\n <pl-answer correct=\"false\">$t = 0.975\\rm\\ s$</pl-answer>\n <pl-answer correct=\"false\">$t = 0\\rm\\ s$</pl-answer>\n</pl-multiple-choice>", { "params": { "d": 8, "h": 0, "m": 1.6, "v0": 24, "t_c": 0, "none": "true", "t_x1": 0, "t_x2": 0.333, "t_x3": 0.975, "t_x4": 0, "theta": 20 }, "options": { "question_path": "/PrairieLearn/exampleCourse/questions/gallery/multipleChoice/complex", "course_extensions_path": "/PrairieLearn/exampleCourse/elementExtensions", "client_files_course_path": "/PrairieLearn/exampleCourse/clientFilesCourse", "server_files_course_path": "/PrairieLearn/exampleCourse/serverFilesCourse", "client_files_question_path": "/PrairieLearn/exampleCourse/questions/gallery/multipleChoice/complex/clientFilesQuestion" }, "extensions": [], "variant_seed": 909496105, "answers_names": {}, "correct_answers": {} } ], "file": "pl-multiple-choice", "paths": [ "/PrairieLearn/apps/prairielearn/python" ], "forbidden_modules": [] }, "outputStderr": "Traceback (most recent call last):\n File \"/PrairieLearn/apps/prairielearn/python/zygote.py\", line 395, in <module>\n worker_loop()\n File \"/PrairieLearn/apps/prairielearn/python/zygote.py\", line 303, in worker_loop\n val = method(*args)\n File \"/PrairieLearn/apps/prairielearn/elements/pl-multiple-choice/pl-multiple-choice.py\", line 430, in prepare\n raise ValueError(\nValueError: pl-multiple-choice element has duplicate choices: ['$t = 0\\\\rm\\\\ s$']\nTraceback (most recent call last):\n File \"/PrairieLearn/apps/prairielearn/python/zygote.py\", line 437, in <module>\n raise Exception(\nException: worker process exited unexpectedly with status 256\n", "outputStdout": "", "callbackIsNull": false, "timeoutIDIsNull": true } }
Correct answer
Student view placeholder
In student views this area is used for assessment and score info.
Staff information
Staff user:
Dev User
dev@example.com
Question:
Title:
Randomized multiple-choice question
Started at:
2024-08-10 10:27:45 (CDT)
Duration:
0 s
Show/Hide answer
{}