-
Notifications
You must be signed in to change notification settings - Fork 58
Reference counting assertion m_p failed #21
Comments
Hi, I have not been able to replicate this issue at all. I have tried on the following platforms:
At this point, I need a stack trace atleast. Right now, my only hunch is that the demos are trying to open a font from a file, and the path it had selected is not correct for Manjaro. However, a number of demos do not try to open a font (for example gradient-test and image-test). Do those two demos also die the same way? |
Gradient-test work fine but image-test open black window and doesn't draw anything. |
Hi, At this point, I need the following data: What is the behavior of each demo on debug, this includes the following:
Lastly, I need to know what is the GL hardware and driver used in your device. The requirements for the hardware are stated in the readme. One more thing: make sure that the demos are using the .so's that they were built with, i.e. use ldd to check. I've had a situation where a user installed FastUIDraw to their system (typically to /usr/local) and a new version of FastUIDraw as not ABI compatible and the demos used the older .so's when run but where compiled with a new version. There is a make uninstall target, but it requires to know the path (by setting INSTALL_LOCATION) to know where to remove the files. |
One more thing, the default for image-test is to use a very, very small image. Run image-test as follows to have it draw large (and ugly) programmer art: ./image-test-GL-debug add_image demo_data/images/1024x1024.png One can also substitute other images as one sees fit. Also, make sure your system has SDL2_image in such a way that it can read most image formats (usually this means just making sure that libpeg, libpng are installed as well). |
Hi, ./image-test-GL-debug add_image demo_data/images/1024x1024.png command wok without error. For example I run " ./painter-cells-GL-debug" and application crash and it write below strings to terminal.
I can't find bad_shader.glsl.X or bad_program.glsl.X files in directories. How can i get stacktrace ? GL Hardware : ATI Radeon 4000
I'm sure, demos using correct .so libraries.
SDL is fully installed on my OS. |
To get a stack trace, just launch the program from gdb: gdb ./painter-cells-GL-debug Before checking out painter-cells, it is prudent try out simpler demos. The demos to try in increasing order of complexity are:
One should view the results of 1, 2, 3, 4 as orthogonal (they test different things). The painter-test does not draw anything to the screen, it merely tries to compile the shaders for the fastuidraw painter. Can you output the output of glxinfo please? ATI Radeon 4000 is quite ancient card (at 9 years old since release). If the GL version is 3.3 it should work, but I have not had the opportunity to use older ATI/AMD GPU's. |
I run samples in your order. 1 , 2 work great but when running 3, reference counting assertion occur. and glxinfo output. painter-cells other examples work fine. |
Hi, The issue is that demos are making a bad guess where fonts are located (or for that matter a good default font). However, each of the demos has an option to specify a font file; those that do font selection from a "font description" also have an option to set the path. The options are as follows:
As always, use "-help" on any demo to see more details. I should add error checking for font loading though so that rather than asserting out, the demo would simple not try to draw letters. |
I've push a pair of commits that should stop the crashes. The commits to:
Thank you for the bug report (though it would have been nicer if the start of the bug was more precise in naming what demos crashed). Please let me know if these stop your crashes. Maybe later, I will try to add to the demos to query the system where the fonts are located rather than relying on the values in Ubuntu based distros. |
Please let me know if the issue is solved so that the issue can be closed. |
By the way, according to the glxInfo.txt, the GPU in use is NOT an AMD Radeon 4000, but your integrated Sandy Bridge GPU. |
Hi, |
Excellent, issue now closed. |
Hi,
I build fastuidraw in Linux (Manjaro) and all build processes finished successful but when running demos, all of them failed and write below message to terminal output.
The text was updated successfully, but these errors were encountered: