community icon indicating copy to clipboard operation
community copied to clipboard

Fullscreen not working with the 2.1

Open olivier-boesch opened this issue 2 years ago • 7 comments

Software Versions

  • Python: 3.10.2+
  • OS: ubuntu mate 22.04
  • Kivy: 2.1
  • Kivy installation method: pip

Describe the bug

Only a black screen appears when I try to start the app in fullscrren mode ('auto' and 1 modes)

Expected behavior A clear and concise description of what you expected to happen.

An application in fullscreen

To Reproduce

Code and Logs and screenshots

from kivy.config import Config
Config.set("graphics", "fullscreen", "auto")
from kivy.app import App
from kivy.uix.label import Label


class TestApp(App):
    def build(self):
        return Label(text="Works ?")


app = TestApp()
app.run()

Context

These seems to works only with 2.1. with the 2.1rc1, I can get a fullscreen working window. EDIT: these appears either when the nvidia driver (510 on a RTX2060) or the amd driver are working.

olivier-boesch avatar Mar 13 '22 23:03 olivier-boesch

Historically this has happened for the wheels and the solution was to install kivy from source.

matham avatar Mar 14 '22 01:03 matham

That's what I did. I installed kivy from pip+git to get the master. It's strange that the wheel doesn't work.

Thanks.

Should I let this issue opened ?

olivier-boesch avatar Mar 15 '22 21:03 olivier-boesch

That's what I did. I installed kivy from pip+git to get the master. It's strange that the wheel doesn't work.

Probably need to compile SDL2 with some option to fix it. But I didn't see anything obvious there.

Should I let this issue opened ?

May as well, although I think there may be another issue open for this.

matham avatar Mar 15 '22 21:03 matham

@matham are you talking about https://github.com/kivy/kivy/issues/6651 ?

misl6 avatar Apr 06 '22 19:04 misl6

@matham are you talking about https://github.com/kivy/kivy/issues/6651 ?

yes!

matham avatar Apr 06 '22 20:04 matham

I have this issue as well, even installing kivy from source as in the instructions. Using Ubuntu 20.04. Solution for me was to install specifically kivy 2.0.0 from source via python -m pip install "kivy[base] @ https://github.com/kivy/kivy/archive/dedcb6bcabe3d8d6758dcee607e8c33b174d782b.zip" .

logdan avatar Apr 19 '22 17:04 logdan

Is there a permanent solution coming without building everything from source? I am getting tired of fixing this problem again and again. I believe Python's wheels have flat tires at the moment, always something 'ey

Reflex14 avatar Aug 01 '22 19:08 Reflex14

This is still an issue (experienced this week both developing on Mac M1, and deploying on Raspberry PI Bullseye aarch64). Thankfully source code install resolved the issue for me on both platforms, though it took me a while to find this ticket and therefore know what to try. Latest Kivy (2.1.0) was fine from source code install, but not from wheel.

e.g. notes on dependencies for PI: https://kivy.org/doc/stable/installation/installation-rpi.html

and then pip "--no-binary" install such as: python3 -m pip install kivy[base] kivy_examples --no-binary kivy

colin0brass avatar Apr 13 '23 09:04 colin0brass

am currently facing this issue with kivy 2.1.0, how did u resolve this bug

Noor-Kalibbala avatar May 10 '23 11:05 Noor-Kalibbala

Hi @Noor-Kalibbala,

For me, normal pip (binary) install gave either a black screen or sometimes a crash (on Mac vs Raspberry Pi ... I forget now which did what ...) in full screen mode (which I wanted to use for app deployment on Raspberry Pi touchscreen).

The above (in my previous comment) pip source code installation ('--no-binary') worked for me, though when I later did a clean re-install I found that it doesn't include the window manager (e.g. sdl2) that was included in the binary install. I assume that first time around the window manager had already been added during kivy binary installation, so was still there when I re-installed kivy from source. So I then re-did the binary install followed by source ('--no-binary') reinstall, and that gave me both working fullscreen and also the required window manager.

colin0brass avatar May 10 '23 17:05 colin0brass

Hi @colin0brass !

Can you please confirm that 2.2.0rc1 wheels are fixing this issue also for you?

To install the pre-release (2.2.0rc1) version: pip install --pre kivy

misl6 avatar May 11 '23 16:05 misl6

Thanks @misl6 , yes that worked. I did the following (on Raspberry Pi 4):

# uninstalled previous --no-binary install (2.1.0 source compile)
pip uninstall kivy

# tested with current standard binary to check it still failed
pip install --no-cache kivy
# Downloading Kivy-2.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (30.5 MB)
# sure enough my kivy app froze during start-up in fullscreen mode

# uninstalled that version
pip uninstall kivy

# installed --pre version
pip install --no-cache --pre kivy
# Downloading Kivy-2.2.0rc1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (19.1 MB)
# that worked! App successfully started and functioned correctly in fullscreen mode

colin0brass avatar May 11 '23 18:05 colin0brass

Thank you for confirming that!

Closing as fixed, @olivier-boesch feel free to confirm that or ping me and ask to re-open the issue.

misl6 avatar May 13 '23 07:05 misl6

Thanks @misl6 , yes that worked. I did the following (on Raspberry Pi 4):

# uninstalled previous --no-binary install (2.1.0 source compile)
pip uninstall kivy

# tested with current standard binary to check it still failed
pip install --no-cache kivy
# Downloading Kivy-2.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (30.5 MB)
# sure enough my kivy app froze during start-up in fullscreen mode

# uninstalled that version
pip uninstall kivy

# installed --pre version
pip install --no-cache --pre kivy
# Downloading Kivy-2.2.0rc1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (19.1 MB)
# that worked! App successfully started and functioned correctly in fullscreen mode

Was having the same black fullscreen problem on a Raspberry Pi 4, the rc1 fixed for me as well! Thanks!

Medeirox avatar May 18 '23 04:05 Medeirox