-
Notifications
You must be signed in to change notification settings - Fork 13
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
'make check' reports failure #68
Comments
It seems that the binaries you built crash right away :/ If you run this from your build dir:
this will enter gdb, type 'r' to run. Does it play a beep (for 1:20 sec) without crashing? If it crashes, please type 'bt' to get a backtrace. |
It plays a beep without crashing. (gbd-log.txt) p.s.: when I added |
Maybe don't activate '-Werror=misleading-indentation' if that causes build errors. This is apparently a new gcc warning and it is a bit silly. |
Dear gcc developers, this is 'C' and not python. Who had this clever idea of '-Werror=misleading-indentation'? See #68
I added a travis build for without --enable-debug and it passes: |
Yep, without Hey, I've finally got some crashes! The attached log crash-1.txt shows gdb > 'bt' without buzztrax software installed (complained about schema missing). On the other hand, in crash-2.txt, with buzztrax installed (ignored Please let me know if you need me to preserve symbol of any of buzztrax's dependencies. |
The new test runner seems to require this variable. See #68
Thanks for keeping testing. Crash should be prevented by the test setup (See https://github.com/Buzztrax/buzztrax/blob/master/Makefile.tests.am#L45). There is a strange design designing in gsetting, where one function in glib crashes is the setting schema is not installed. Now I wonder why this is not working in your case. The log crash-2.txt is actually working (not crashing, right?). If that is the case then I think some of the tests don't get the TESTS_ENVIRONMENT. I researched a bit and I think something changed in automake, where this variable has to be called AM_TESTS_ENVIRONMENT now. Testing and sending a change in a sec. Would be awesome, if you could try that one your side too. |
Indeed, crash-2 isn't a crash. Now it make sense: every time I ignored tests instructions and installed the package, tests wouldn't report fails. I patched your commit and it still crashes, now with a little bit different output. Please see: crash-3.txt |
The uninstalled tests should now work, running a test directly would need to be changed and set even more envvars:
|
Still crashes with what seems to be the same output. See crash-4.txt |
I installed 'check' and have got more details in test-suites.log. Hope It helps. |
Yes that is helpful:
This one is not happending for me, something related to your newer gtk/gdk What you could try here, so that I can check with the gtk-folks is to run:
and in gdb type 'r' and when it stops 'bt' to get a backtrace. |
GDB complains: |
Sorry, pushed the wrong file previously. |
Oh, ok. I thought you were planing what to fix, so I was waiting :) |
We had to rename the automake var, but forgot to rename our own uses. See #68
The backtraces would be nicer if you had debug symbols installed fro glib/gio. But the failure is this the missing schema (bt_settings_make). Unfortunately I missed a bit when renaming the env var in the Makefile for new automake version. Could you retry? |
I patched with your latest commit, but it didn't change the result. However, I enabled debug symbols for glib2 and have got more information which I hope to be useful. See gdb-output.txt |
We'd need debug symbols for glib and gtk+3. Once the debug symbols are actually picked up the backtraces:
should have file + line info like in
It seems that my last change helped though, since it does not crash in bt_settings_make() anymore (that was the issue with GSettings not working uninstalled and is fixed by using AM_TEST_ENVIRONMENT). The issue you are now seeing is something related to a newer version of gtk related to theme loading. Having gtk+3 debug symbols and knowing your gtk version would really help. Thanks for keep trying. |
Great to hear we are having results! Well, now I built with gtk+ having debug symbols enabled as well: gdb-output.txt. |
Found it, gtk-3.14 deprecated the two css attributes below.
I am using this in bt-edit.css. I'll have to come up with a way to handle version gtk dependent style-sheets :/ |
Apparantly gtk started to deprecate css properties already. This makes our tests fail on new gtk-versions. Unfortunately gtk omits to suggest how application authors should handle this case in a sensible way. For now we check the versions in configure and rewrite our css files this way. See #68
@josephgbr any better now? |
Sorry, I didn't see the commit before. I applied it and still get error, as you can see: gdb-output.txt and test-suite.log.txt |
Replace :prelight with :hover for gtk-3.19.6. Rewrite the Makefile code to handle multiple rewrites. See #68
This looks like another gtk+3 css deprecation :/ Seems to be |
Don't worry! However, it still fails. This time, running gdb resulted in the binary hanging (a GNOME dialog prompted to force close or cancel) and I wasn't able to get backtrace: gdb-output.txt and test-suite.log.txt |
This is progress again, the deprecation issues are fixed. You could not Ctrl-C in dgb? If you can Ctrl-C and get the gdb-prompt again, you could type 'bt' to get a backtrace. |
Dumb me. I just had to hit Alt+Tab to focus on Terminal instead of the tested interface. Here is the If you want to set a testing environment, feel free to use my testing srcpackage tarball: buzztrax-0.10.2-1.src.tar.gz. It is a slightly changed version of the one I published in AUR. For every test I edited added a patch and ran |
The UI tests take screenshots (to /tmp) of various dialogs. Something changed in cairo/gtk to cause this assertion. Can you retry with the cairo debug symbols as well? |
Sure! There you go: gdb.output.txt |
Hi there. Did my last gdb output help? |
Not really. One thing you could try is to run the test as BT_CHECK_NO_XVFB=1 BT_CHECKS=test_bt_edit_application_create G_DEBUG="fatal_warnings" make bt_edit.gdb The tests normally run with a hidden x-server. With BT_CHECK_NO_XVFB=1 the tests will pop up real windows, which is annoying. But if that works, it might help to pinpoint the issue further. Ultimately I need to setup an environment with newer versions of the libraries. The backtrace hints that something is not fully drawn when I am taking a screenshot of the window. But there is no api to check for this conditions :/ |
Here is the output log for the above command line: gdb-output.txt For the record notice no window popped up when running this command line, but it indeed happened during the |
For what it's worth, I don't have xvfb (provided by xorg-server-xvfb) installed in my system. |
Okay, then its not related to xvfb. You don't need to rerun the pkgbuild part when rerunning tests. |
After building successfully,
make -k check
reports failure intests/bt-cmd-info.sh
andtests/bt-cmd-info.sh
. I kindly ask to take a look in the logs and let me know if these messages are relevant.buzztrax-0.10.2-1-x86_64-check.log.txt
buzztrax-0.10.2-1-x86_64-build.log.txt
test-suite.log.txt
The text was updated successfully, but these errors were encountered: