Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.60 KB | None | 0 0
  1. $ valgrind ./ray ../Scenes/scene03.json
  2. ==24501== Memcheck, a memory error detector
  3. ==24501== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
  4. ==24501== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
  5. ==24501== Command: ./ray ../Scenes/scene03.json
  6. ==24501==
  7. Introduction to Computer Graphics - Raytracer
  8.  
  9. Unknown object type: "_sphere".
  10. Parsed 8 objects.
  11. Tracing...
  12. terminate called after throwing an instance of 'std::bad_weak_ptr'
  13.  what():  bad_weak_ptr
  14. ==24501==
  15. ==24501== Process terminating with default action of signal 6 (SIGABRT): dumping core
  16. ==24501==    at 0x4C5ED7F: raise (in /usr/lib/libc-2.28.so)
  17. ==24501==    by 0x4C49671: abort (in /usr/lib/libc-2.28.so)
  18. ==24501==    by 0x492F58D: __gnu_cxx::__verbose_terminate_handler() [clone .cold.1] (vterminate.cc:95)
  19. ==24501==    by 0x4935DF9: __cxxabiv1::__terminate(void (*)()) (eh_terminate.cc:47)
  20. ==24501==    by 0x4935E56: std::terminate() (eh_terminate.cc:57)
  21. ==24501==    by 0x49360AB: __cxa_throw (eh_throw.cc:95)
  22. ==24501==    by 0x13FEAD: std::__throw_bad_weak_ptr() (shared_ptr_base.h:84)
  23. ==24501==    by 0x14BEAB: _M_add_ref_lock (shared_ptr_base.h:247)
  24. ==24501==    by 0x14BEAB: __shared_count (shared_ptr_base.h:876)
  25. ==24501==    by 0x14BEAB: __shared_ptr<Object> (shared_ptr_base.h:1171)
  26. ==24501==    by 0x14BEAB: shared_ptr<Object> (shared_ptr.h:276)
  27. ==24501==    by 0x14BEAB: shared_from_this (shared_ptr.h:656)
  28. ==24501==    by 0x14BEAB: toPrimitives (object.h:28)
  29. ==24501==    by 0x14BEAB: Mesh::toPrimitives(std::vector<std::shared_ptr<Object>, std::allocator<std::shared_ptr<Object> > >&) (mesh.cpp:64)
  30. ==24501==    by 0x14AD5F: Scene::render(Image&) (scene.cpp:103)
  31. ==24501==    by 0x13D715: Raytracer::renderToFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (raytracer.cpp:129)
  32. ==24501==    by 0x1184B8: main (main.cpp:35)
  33. ==24501==
  34. ==24501== HEAP SUMMARY:
  35. ==24501==     in use at exit: 1,410,903 bytes in 18 blocks
  36. ==24501==   total heap usage: 94,564 allocs, 94,546 frees, 14,347,978 bytes allocated
  37. ==24501==
  38. ==24501== LEAK SUMMARY:
  39. ==24501==    definitely lost: 0 bytes in 0 blocks
  40. ==24501==    indirectly lost: 0 bytes in 0 blocks
  41. ==24501==      possibly lost: 136 bytes in 1 blocks
  42. ==24501==    still reachable: 1,410,767 bytes in 17 blocks
  43. ==24501==         suppressed: 0 bytes in 0 blocks
  44. ==24501== Rerun with --leak-check=full to see details of leaked memory
  45. ==24501==
  46. ==24501== For counts of detected and suppressed errors, rerun with: -v
  47. ==24501== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
  48. Aborted (core dumped)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement