About Store Forum Documentation Contact



Post Reply 
PhysX sometime crash my game
Author Message
tipforeveryone Offline
Bronze Supporter

Post: #1
PhysX sometime crash my game
What should I do to prevent PhysX from crashing my game ?

https://i.gyazo.com/69786a2a579f9696d021...76681b.png
07-25-2024 08:53 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: PhysX sometime crash my game
You'd have to contact PhysX for support
https://github.com/NVIDIAGameWorks/PhysX/issues

I've got some crashes too, however I did not get a reply:
https://github.com/NVIDIAGameWorks/PhysX/issues/480
07-26-2024 03:30 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: PhysX sometime crash my game
Alternatively, you can try using Bullet physics
Set "Engine Builder \ Options \ Physics Engine"
Then rebuild everything
07-26-2024 05:36 AM
Find all posts by this user Quote this message in a reply
tipforeveryone Offline
Bronze Supporter

Post: #4
RE: PhysX sometime crash my game
Thank you, I will try bullet physics
07-26-2024 10:35 AM
Find all posts by this user Quote this message in a reply
tipforeveryone Offline
Bronze Supporter

Post: #5
RE: PhysX sometime crash my game
I got this when building with Bullet physic
https://i.gyazo.com/ca48ee925c394875ae42...d34f02.png

(07-26-2024 03:30 AM)Esenthel Wrote:  You'd have to contact PhysX for support
https://github.com/NVIDIAGameWorks/PhysX/issues

I've got some crashes too, however I did not get a reply:
https://github.com/NVIDIAGameWorks/PhysX/issues/480

hmm your post was 3 years ago lol. I found that physX is now open source and free.
Can you upgrade current PhysX of engine ? I have less knowledge of doing this in the engine source third party lib, it is a real mess to me :(

Please help! grin At least about that build with Bullet Physic

Code:
D:\Titan Engine (Source Build)\EsenthelEngine\Engine\Source\Physics\Actor.cpp(601,4): error C2440: 'return': cannot convert from 'int' to 'EE::Box' [D:\Titan Engine (Source Build)\EsenthelEngine\Engine\Engine.vcxproj]
  (compiling source file '/Source/Physics/Actor.cpp')
  D:\Titan Engine (Source Build)\EsenthelEngine\Engine\Source\Physics\Actor.cpp(601,4):
  'EE::Box::Box': ambiguous call to overloaded function
      D:\Titan Engine (Source Build)\EsenthelEngine\Engine\H\Math\Shapes\Box.h(151,15):
      could be 'EE::Box::Box(const EE::Ball &)'
      D:\Titan Engine (Source Build)\EsenthelEngine\Engine\H\Math\Shapes\Box.h(150,15):
      or       'EE::Box::Box(const EE::Extent &)'
      D:\Titan Engine (Source Build)\EsenthelEngine\Engine\H\Math\Shapes\Box.h(143,15):
      or       'EE::Box::Box(const EE::Circle &)'
      D:\Titan Engine (Source Build)\EsenthelEngine\Engine\H\Math\Shapes\Box.h(139,15):
      or       'EE::Box::Box(const EE::Vec &)'
      D:\Titan Engine (Source Build)\EsenthelEngine\Engine\H\Math\Shapes\Box.h(138,15):
      or       'EE::Box::Box(const EE::VecSSN &)'
      D:\Titan Engine (Source Build)\EsenthelEngine\Engine\H\Math\Shapes\Box.h(137,15):
      or       'EE::Box::Box(const EE::VecH &)'
      D:\Titan Engine (Source Build)\EsenthelEngine\Engine\Source\Physics\Actor.cpp(601,4):
      while trying to match the argument list '(int)'
  
D:\Titan Engine (Source Build)\EsenthelEngine\Engine\Source\Physics\Actor.cpp(629,40): error C2661: 'EE::Matrix::inverse': no overloaded function takes 2 arguments [D:\Titan Engine (Source Build)\EsenthelEngine\Engine\Engine.vcxproj]
  (compiling source file '/Source/Physics/Actor.cpp')
  D:\Titan Engine (Source Build)\EsenthelEngine\Engine\Source\Physics\Actor.cpp(629,40):
  while trying to match the argument list '(EE::Matrix, bool)'
  
D:\Titan Engine (Source Build)\EsenthelEngine\Engine\Source\Physics\Actor.cpp(645,34): error C2661: 'EE::Matrix::inverse': no overloaded function takes 2 arguments [D:\Titan Engine (Source Build)\EsenthelEngine\Engine\Engine.vcxproj]
  (compiling source file '/Source/Physics/Actor.cpp')
  D:\Titan Engine (Source Build)\EsenthelEngine\Engine\Source\Physics\Actor.cpp(645,34):
  while trying to match the argument list '(EE::Matrix, bool)'
  
D:\Titan Engine (Source Build)\EsenthelEngine\Engine\Source\Physics\Actor.cpp(664,34): error C2661: 'EE::Matrix::inverse': no overloaded function takes 2 arguments [D:\Titan Engine (Source Build)\EsenthelEngine\Engine\Engine.vcxproj]
  (compiling source file '/Source/Physics/Actor.cpp')
  D:\Titan Engine (Source Build)\EsenthelEngine\Engine\Source\Physics\Actor.cpp(664,34):
  while trying to match the argument list '(EE::Matrix, bool)'
  
D:\Titan Engine (Source Build)\EsenthelEngine\Engine\Source\Physics\Actor.cpp(683,34): error C2661: 'EE::Matrix::inverse': no overloaded function takes 2 arguments [D:\Titan Engine (Source Build)\EsenthelEngine\Engine\Engine.vcxproj]
  (compiling source file '/Source/Physics/Actor.cpp')
  D:\Titan Engine (Source Build)\EsenthelEngine\Engine\Source\Physics\Actor.cpp(683,34):
  while trying to match the argument list '(EE::Matrix, bool)'
(This post was last modified: 07-26-2024 07:55 PM by tipforeveryone.)
07-26-2024 07:32 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: PhysX sometime crash my game
07-27-2024 12:37 PM
Find all posts by this user Quote this message in a reply
tipforeveryone Offline
Bronze Supporter

Post: #7
RE: PhysX sometime crash my game
Thanks for the quick fix, I can build engine with Bullet physic now, but the game gave me an error message. Does it mean I have to create new convex for all of assets if convert from PhysX to Bullet ?

Code:
---------------------------
Error
---------------------------
Can't create actor from PHYS_CONVEX physical body.
Physics Engine Used: Bullet
Universal Data Available: No
PhysX Data Available: No
Bullet Data Available: No
Bullet Mesh Available: No
PhysBody file: "qg#v5649qdx5uttvou30p6ft"
Please recreate the PhysBody file.
Current Call Stack:
EE::Exit
EE::Mems<EE::PhysPart>::operator[]
EE::Actor::create
EE::Game::Static::setUnsavedParams
CullingObjectClass::create
EE::Game::WorldManager::loadObj
EE::Game::WorldManager::areaLoad
EE::Game::WorldManager::areaUpdateState
EE::_Cell::funcCreate
EE::_Cell::funcCreate
EE::_Cell::funcCreate
EE::_Cell::funcCreate
EE::_Grid::funcCreate
EE::Game::WorldManager::areaUpdateState
EE::Game::WorldManager::update
EE::Game::WorldManager::update
MapDirectorClass::Setup_Map
BackgroundLoader::BackgroundLoad
EE::SetThreadName
thread_start<unsigned int (__cdecl*)(void *),1>
---------------------------
OK  
---------------------------
(This post was last modified: 07-27-2024 03:24 PM by tipforeveryone.)
07-27-2024 03:23 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #8
RE: PhysX sometime crash my game
Please update source from GitHub, hope it should be ok now.
07-28-2024 04:29 AM
Find all posts by this user Quote this message in a reply
Post Reply