Skip to content

🧪 <AutoGrader> Infinite Loop on "Divide by Zero" Submission ♾️ #36045

@e6

Description

@e6

Description

The <AutoGrader /> component enters an unrecoverable infinite loop when a student submits a Python script containing a naked x / 0 operation. Instead of returning a RuntimeError, the grading engine attempts to "calculate the void," resulting in 100% CPU usage on the evaluation node.

🔍 Observed Issue

  • The Loop: The progress spinner spins so fast it creates a visual "strobe" effect before the browser tab freezes. 😵‍
  • Resource Leak: Memory consumption climbs steadily until the OS terminates the process. 📈
  • Feedback: The "Hints" panel suggests the student "Wait for the heat death of the universe" to see their results. 🌌

✨ Expected Behavior

  • Validation: The static analyzer should catch division by zero before execution.
  • Timeout: The sandbox should terminate any process exceeding 500ms. ⏱️
  • Graceful Failure: Display a "Division by zero is a crime against math" error message. 👮

🛠️ Reproduction Steps

  1. Navigate to the Grade 12 Physics portal.
  2. Upload gravity_calc.py with g = 9.8 / (1 - 1).
  3. Click "Submit" and listen to your laptop fans reach terminal velocity. 🚁

Subject: 🏹 NPC "Quest-Giver" Identity Crisis 🎭


Description

In the current build of the Medieval RPG Engine, NPCs (Non-Player Characters) are experiencing a data-sync issue where they swap dialogue trees mid-conversation. This leads to immersion-breaking scenarios where a "Village Elder" starts speaking like a "Level 50 Dragon."

🔍 Observed Issue

  • Dialogue Swap: The blacksmith is currently offering to "Devour your soul and burn the kingdom" instead of fixing a bronze sword. 🐉
  • Trade Logic: The "Shopkeeper" accepts 500 gold in exchange for "The secret of fire," but actually just gives the player a stale loaf of bread. 🍞
  • Animation Glitch: High-level bosses are performing the "Farmer's Hoeing" animation during combat sequences. 🧑‍🌾

✨ Expected Behavior

  • State Locking: NPC dialogue state must be locked to their entity_id upon interaction.
  • Asset Mapping: Ensure the Combat_Idle animation is not indexed next to Harvest_Wheat. 🌾

🛠️ Reproduction Steps

  1. Travel to the Shadow Realm waypoint.
  2. Talk to the Undead King.
  3. Observe as he asks you if you've "found his lost sheep" in a high-pitched voice. 🐑

Subject: ☕ Firmware: Coffee Temperature "Overflow" ♨️


Description

The <SmartMug /> IoT integration is reporting temperatures in Kelvin but treating the integers as Celsius. This causes the mobile app to believe the coffee is currently the surface temperature of the Sun.

🔍 Observed Issue

  • UI Alert: The app sends a push notification: "Warning: Coffee has reached Fusion Temperature. Please evacuate the kitchen." ☢️
  • Hardware Lock: The mug’s safety lid locks permanently to prevent "Plasma Leakage." 🔒
  • Graphing: The temperature chart has exited the top of the screen and is currently overlapping with the "Battery Level" icon.

✨ Expected Behavior

  • Unit Conversion: Check the Math.round() logic in the TempParser.swift file. 📐
  • Safety Clamp: Hard-cap the reported temperature at 100°C (unless the user is brewing in a vacuum). ☕

🛠️ Reproduction Steps

  1. Pour a standard cup of black coffee into the SmartMug.
  2. Open the MugControl app.
  3. Observe the "Current Temp" reading: 5,778 K. ☀️

Note: The "Quest-Giver" bug is funny, but the "SmartMug" issue is a genuine fire hazard.

Would you like me to draft a GitHub Issue for the AutoGrader loop or a Firmware Patch for the SmartMug?```

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UnconfirmedA potential issue that we haven't yet confirmed as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions