Unhandled exception: Arithmetic overflow (OverflowError) #23

Open
opened 2024-03-30 13:10:56 +01:00 by Sceptique · 0 comments
Owner

Quand on selectionne vessel après s'être beaaaaucoup éloigné de 0:0

SF::Event::MouseLeft(@_type=SF::Event::EventType::MouseLeft)
SF::Event::MouseEntered(@_type=SF::Event::EventType::MouseEntered)
"MouseButtonEvent SF::Event::MouseButtonPressed(@_type=SF::Event::EventType::MouseButtonPressed, @button=SF::Mouse::Button::Left, @x=400, @y=400)"
Unhandled exception: Arithmetic overflow (OverflowError)
  from /usr/lib/crystal/int.cr:306:9 in '**'
  from src/engine/vector.cr:173:42 in 'magnitude'
  from src/tests/physics_sandbox.cr:181:25 in 'handle_events'
  from src/tests/physics_sandbox.cr:242:9 in 'execute_loop'
  from src/tests/physics_sandbox.cr:337:1 in '__crystal_main'
  from /usr/lib/crystal/crystal/main.cr:129:5 in 'main_user_code'
  from /usr/lib/crystal/crystal/main.cr:115:7 in 'main'
  from /usr/lib/crystal/crystal/main.cr:141:3 in 'main'
  from /usr/lib/libc.so.6 in '??'
  from /usr/lib/libc.so.6 in '__libc_start_main'
  from /home/sceptique/.cache/crystal/crystal-run-physics_sandbox.tmp in '_start'
  from ???
Execute:                           00:01:48.316050137 ( 250.24MB)

Quand on selectionne vessel après s'être beaaaaucoup éloigné de 0:0 ``` SF::Event::MouseLeft(@_type=SF::Event::EventType::MouseLeft) SF::Event::MouseEntered(@_type=SF::Event::EventType::MouseEntered) "MouseButtonEvent SF::Event::MouseButtonPressed(@_type=SF::Event::EventType::MouseButtonPressed, @button=SF::Mouse::Button::Left, @x=400, @y=400)" Unhandled exception: Arithmetic overflow (OverflowError) from /usr/lib/crystal/int.cr:306:9 in '**' from src/engine/vector.cr:173:42 in 'magnitude' from src/tests/physics_sandbox.cr:181:25 in 'handle_events' from src/tests/physics_sandbox.cr:242:9 in 'execute_loop' from src/tests/physics_sandbox.cr:337:1 in '__crystal_main' from /usr/lib/crystal/crystal/main.cr:129:5 in 'main_user_code' from /usr/lib/crystal/crystal/main.cr:115:7 in 'main' from /usr/lib/crystal/crystal/main.cr:141:3 in 'main' from /usr/lib/libc.so.6 in '??' from /usr/lib/libc.so.6 in '__libc_start_main' from /home/sceptique/.cache/crystal/crystal-run-physics_sandbox.tmp in '_start' from ??? Execute: 00:01:48.316050137 ( 250.24MB) ```
Sceptique added the
engine
label 2024-03-30 13:10:56 +01:00
Sceptique self-assigned this 2024-03-30 13:10:57 +01:00
Sceptique added this to the Road to sandbox 1 project 2024-03-30 13:10:57 +01:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Sceptique/ZeroEpsilon#23
No description provided.