Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux : crash with bsfnullrenderapi.so #345

Open
XMatrixXiang opened this issue Jun 9, 2019 · 2 comments
Open

linux : crash with bsfnullrenderapi.so #345

XMatrixXiang opened this issue Jun 9, 2019 · 2 comments
Labels
type: bug Something isn't working
Milestone

Comments

@XMatrixXiang
Copy link

XMatrixXiang commented Jun 9, 2019

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()
@BearishSun BearishSun added this to the v1.2 milestone Jun 9, 2019
@BearishSun BearishSun added the type: bug Something isn't working label Jun 9, 2019
@pgruenbacher
Copy link
Contributor

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

@XMatrixXiang
Copy link
Author

XMatrixXiang commented Jul 12, 2019

@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;

}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants