-
Notifications
You must be signed in to change notification settings - Fork 3
Fontconfig warnings + seg-fault. #20
Comments
Hey! Thanks for notifying me about this. I just tried running the latest version on my arch system and I'm getting the same error as you. I'm not entirely sure what the underlying error is, but I assume it has something to do with differences in font configurations across systems. The binaries provided are built on a Ubuntu system, so that might be why. In the meantime, you can clear your font cache to at least get it to start: sudo rm /var/cache/fontconfig/*
rm ~/.cache/fontconfig/* After clearing it will still show the Fontconfig warnings, but it no longer segfaults (at least on my system.) Please let me know if this worked for you. |
Can confirm, it no longer segfaults, and I notice that the final line of text does not display either;
Also, I didn't actually delete the contents of each directory - I backed them up first. I'm going to re-add the files 1 at a time (or several at a time if that proves too cumbersome), in hopes that maybe I can narrow down a specific file for you? Edit: |
That's interesting... I'm honestly kind of clueless how PyQt works with fonts on Linux, so I have no idea why that happens. I suspect this is an issue with the system the binaries are built on, because it works fine when building it on my own system. Perhaps it works fine out of the box when using it on Ubuntu, but I can't check that myself. I've been wanting to transfer the CI stuff to GitHub Actions anyway, so maybe that makes it more reliable on other Linux distros? It's possible that the fonts on AppVeyor's Ubuntu machine are out of date. So much guesswork here... Anyway, I probably won't get around to really mess with this until later next week. I'll run a quick strace now to see if I can find anything obvious, though. |
I couldn't help myself. Quick update: PyInstaller packages the
are caused by the system that the binary was built on running an older version of fontconfig. When you then run it on a newer system (such as arch, because it's bleeding edge), your system will use the older library to read newer config files because your system-wide fontconfig is on the latest version, and these config files are auto-generated by your newer fontconfig. The only real way to solve this is to build the program on a newer machine, or to upgrade fontconfig on an old machine (ew). I'll look into this when I switch over to GH Actions, hopefully that also solves the segfaults. |
I'd like to build it myself, but I've never compiled anything without a Makefile :) (I don't use/know python.). |
It should be pretty simple, yes. There's a build script in the root of the repo, so you can just clone it and run If you can't get it to work just let me know, but I'm heading off to sleep now so I'll respond in the morning. |
I had to change line 60 of After that it seemed to build fine (minus errors/warnings about some
I looked into it a bit, but kinda gave up. (I made sure I had everything in |
whoops, sorry for that. I just pushed a commit that fixes the I'll probably create a "bugfix" release soon where I fix all of the building shenanigans, I also realized it does not package the icons directory which means that backgrounding to the systray does not work properly. Probably gonna fully switch over to GH Actions while I'm at it as well. EDIT: Building has finished, use the binary here if you don't feel like rebuilding it yourself: BUILD-38772300 |
I just set up GitHub Actions and tried building some releases, and I'm no longer getting any warnings whatsoever on my arch system. There's still some issues related to the build system itself that I need to iron out, so I haven't completely dropped Appveyor yet. However, I'm expecting to be able to make the full switch soon. You can find the current prerelease builds here: https://github.com/DismissedGuy/wiimmfi-rpc/actions/runs/774676686#artifacts |
I still get the same runtime error about PyQt5.sip. EDIT - When I compile it, not when running the one from GitHub Actions. $ pacman -Ss qt5 | grep sip
extra/python-pyqt5-sip 12.8.1-3 [installed]
The sip module support for PyQt5 It doesn't matter too much, since I can still just run the pre-built from the release, but I am curious what's different about my environment. (Also if I were to throw out a gripe, having to unzip every time is a little annoying ;).) |
Considering the build from GitHub Actions runs the exact same script (as long as you've pulled the latest code from master), I'm afraid that's something on your end. You could try removing all pip packages, uninstalling The build script creates a zip file because it made it easier to just upload the zip as an artifact on AppVeyor so I could just re-upload them to a GH release. It appears that the current GH Actions setup is able to zip directories automatically (which is what created the weird structure in the first place, I think) so I can just have it move all the relevant files to a directory and remove all pyinstaller cache dirs, that should clean up the build environment by a lot. |
Running on Manjaro Linux x86_64.
The text was updated successfully, but these errors were encountered: