GameFoundry/bsf

linux : crash with bsfnullrenderapi.so

XMatrixXiang opened this issue · 2 comments

i build bsf with this command:
cmake ../ -D RENDERER_MODULE=Null -D RENDER_API_MODULE=Null -D CMAKE_BUILD_TYPE=Debug -D AUDIO_MODULE=Null -D PHYSICS_MODULE=Null

i made a simple sample. when run ,it crashed. this is the crash log:

A fatal error occurred and the program has to terminate!

  • Error: InternalErrorException
  • Description: Could not load dynamic library libbsfNullRenderAPI.so. System Error: libbsfNullRenderAPI.so: undefined symbol: _ZTIN2bs2ct13RenderTextureE
  • In function: void bs::DynLib::load()

was this on linux? can you provide an example case to replicate?

@pgruenbacher yes it was crashed on linux! By this way you can reproduce this bug!

`
#include "BsApplication.h"
namespace bs
{
UINT32 windowResWidth = 1280;
UINT32 windowResHeight = 720;
}

/** Main entry point into the application. */
#if BS_PLATFORM == BS_PLATFORM_WIN32

int CALLBACK WinMain(
In HINSTANCE hInstance,
In HINSTANCE hPrevInstance,
In LPSTR lpCmdLine,
In int nCmdShow
)
#else
int main()
#endif
{
using namespace bs;

// Initializes the application and creates a window with the specified properties
VideoMode videoMode(windowResWidth, windowResHeight);
Application::startUp(videoMode, "DebugWindow", false);


// Runs the main loop that does most of the work. This method will exit when user closes the main
// window or exits in some other way.
Application::instance().runMainLoop();

// When done, clean up
Application::shutDown();

return 0;

}
`