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

App exists immediately when importing kivy.core.window.Window #2167

Closed
snuq opened this issue May 2, 2020 · 2 comments · Fixed by #2180
Closed

App exists immediately when importing kivy.core.window.Window #2167

snuq opened this issue May 2, 2020 · 2 comments · Fixed by #2180
Labels

Comments

@snuq
Copy link
Contributor

snuq commented May 2, 2020

Versions

  • Python: 3.8.1
  • OS: Build: Xubuntu 18.04, Run: Android 6.0.1
  • Kivy: master branch
  • p4a: develop branch

Description

Might be related to: kivy/kivy#6400
App builds fine, no unexpected errors.

On android when running my kivy app, i get the notification in my log:
[INFO ] [WindowSDL ] No running App found, exit.
No errors or traceback happens.

this seems to happen as soon as i run:
from kivy.core.window import Window

If that line is removed, the app will not crash.

Files

Command:

buildozer android debug

Spec file:

[app]
title = Test App
package.name = TestApp
package.domain = com.snuq
source.dir = .
fullscreen = 0
version = 0.9
requirements = python3,kivy==master
android.arch = armeabi-v7a
p4a.branch = develop

python file:

from kivy.app import App
from kivy.uix.button import Button
from kivy.core.window import Window
class TestApp(App):
    def build(self):
        return Button()
if __name__ == '__main__':
    TestApp().run()

Logs

Kivy log:

[INFO   ] Logger: Record log in /data/user/0/com.snuq.testapp/files/app/.kivy/logs/kivy_20-05-02_0.txt
[WARNING] [Config      ] Upgrading configuration in progress.
[WARNING] [Config      ] Older configuration version detected (0 instead of 21)
[INFO   ] Kivy: v2.0.0rc2, git-Unknown, 20200502
[INFO   ] Kivy: Installed at "/data/user/0/com.snuq.testapp/files/app/_python_bundle/site-packages/kivy/__init__.pyc"
[INFO   ] Python: v3.8.1 (default, May  2 2020, 02:55:43) 
[Clang 8.0.2 (https://android.googlesource.com/toolchain/clang 40173bab62ec7462
[INFO   ] Python: Interpreter at ""
[INFO   ] Factory: 184 symbols loaded
[INFO   ] Image: Providers: img_tex, img_dds, img_sdl2 (img_pil, img_ffpyplayer, img_gif ignored)
[INFO   ] Text: Provider: sdl2
[INFO   ] Window: Provider: sdl2
[INFO   ] GL: Using the "OpenGL ES 2" graphics system
[INFO   ] GL: Backend used <sdl2>
[INFO   ] GL: OpenGL version <b'OpenGL ES 3.1 V@140.0 (GIT@Ifd751822f5)'>
[INFO   ] GL: OpenGL vendor <b'Qualcomm'>
[INFO   ] GL: OpenGL renderer <b'Adreno (TM) 420'>
[INFO   ] GL: OpenGL parsed version: 3, 1
[INFO   ] GL: Texture max size <16384>
[INFO   ] GL: Texture max units <16>
[INFO   ] WindowSDL: No running App found, exit.
[INFO   ] Window: auto add sdl2 input provider
[INFO   ] Window: virtual keyboard not allowed, single mode, not docked
[WARNING] Base: Unknown <android> provider
[INFO   ] Base: Start application main loop
[INFO   ] Base: Leaving application in progress...

I can post the build log and logcat if necessary too, just let me know.

@SomberNight
Copy link
Contributor

SomberNight commented May 3, 2020

Same for me but with kivy 1.11.1.
This broke with #2113
Works fine on 66f6a34

edit: oops, mentioned incorrect PR at first

@AndreMiras AndreMiras added the bug label May 3, 2020
@AndreMiras
Copy link
Member

Thanks for the report, indeed we saw that, it's a confirmed bug

AndreMiras added a commit to AndreMiras/python-for-android that referenced this issue May 8, 2020
Actually simply reverted few files:
```sh
git checkout master -- \
    pythonforandroid/recipes/sdl2/__init__.py \
    pythonforandroid/bootstraps/sdl2/build/src/patches/SDLActivity.java.patch \
    pythonforandroid/bootstraps/sdl2/build/src/main/java/org/kivy/android/PythonActivity.java
```
- fixes kivy#2167
- fixes kivy#2169
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants