question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kivy crashes when making fullscreen on OSX Sierra

See original GitHub issue

I have a basic Kivy application (see below) that launches, but when I fullscreen it Python crashes with a Segmentation Fault.

Steps to reproduce:

  1. Start a basic Kivy app
  2. Click the ‘fullscreen’ button on the OSX window controls
  3. The application crashes, and OSX offers to report the bug to the Python authors

Crash log:

(env)➜  visualizer python3 visualizer.py
[INFO   ] [Logger      ] Record log in /Users/chrisfosterelli/.kivy/logs/kivy_16-10-25_21.txt
[INFO   ] [Kivy        ] v1.9.1
[INFO   ] [Python      ] v3.5.1 (v3.5.1:37a07cee5969, Dec  5 2015, 21:12:44) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
[INFO   ] [Factory     ] 179 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_imageio, img_dds, img_gif, img_pygame (img_pil, img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: pygame
[INFO   ] [Window      ] Provider: pygame
[INFO   ] [GL          ] OpenGL version <b'2.1 INTEL-10.18.65'>
[INFO   ] [GL          ] OpenGL vendor <b'Intel Inc.'>
[INFO   ] [GL          ] OpenGL renderer <b'Intel Iris OpenGL Engine'>
[INFO   ] [GL          ] OpenGL parsed version: 2, 1
[INFO   ] [GL          ] Shading version <b'1.20'>
[INFO   ] [GL          ] Texture max size <16384>
[INFO   ] [GL          ] Texture max units <16>
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [OSC         ] using <multiprocessing> for socket
[INFO   ] [Base        ] Start application main loop
[INFO   ] [GL          ] NPOT texture support is available
[INFO   ] [Context     ] Reloading graphics data...
[INFO   ] [Context     ] Reloading done in 0.0570s
Fatal Python error: (pygame parachute) Segmentation Fault

Current thread 0x00007ffff18913c0 (most recent call first):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/kivy/core/window/window_pygame.py", line 292 in _mainloop
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/kivy/core/window/window_pygame.py", line 403 in mainloop
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/kivy/base.py", line 487 in runTouchApp
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/kivy/app.py", line 828 in run
  File "visualizer.py", line 18 in <module>
[1]    29607 abort      python3 visualizer.py
(env)➜  visualizer 

The data mentioned in the log file (~/.kivy/logs/kivy_16-10-25_21.txt) is the following:

[INFO              ] Logger: Record log in /Users/chrisfosterelli/.kivy/logs/kivy_16-10-25_21.txt
[INFO              ] Kivy: v1.9.1
[INFO              ] Python: v3.5.1 (v3.5.1:37a07cee5969, Dec  5 2015, 21:12:44) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
[INFO              ] Factory: 179 symbols loaded
[INFO              ] Image: Providers: img_tex, img_imageio, img_dds, img_gif, img_pygame (img_pil, img_ffpyplayer ignored)
[INFO              ] Text: Provider: pygame
[INFO              ] Window: Provider: pygame
[INFO              ] GL: OpenGL version <b'2.1 INTEL-10.18.65'>
[INFO              ] GL: OpenGL vendor <b'Intel Inc.'>
[INFO              ] GL: OpenGL renderer <b'Intel Iris OpenGL Engine'>
[INFO              ] GL: OpenGL parsed version: 2, 1
[INFO              ] GL: Shading version <b'1.20'>
[INFO              ] GL: Texture max size <16384>
[INFO              ] GL: Texture max units <16>
[INFO              ] Window: virtual keyboard not allowed, single mode, not docked
[INFO              ] OSC: using <multiprocessing> for socket
[INFO              ] Base: Start application main loop
[INFO              ] GL: NPOT texture support is available
[INFO              ] Context: Reloading graphics data...
[INFO              ] Context: Reloading done in 0.0570s

Code:

#!/usr/bin/env python3

from kivy.app import App
from kivy.uix.label import Label

class Visualizer(App):

    def build(self):
        self.label = Label(text='Please wait...', font_size='50sp')
        return self.label

Visualizer().run()

Let me know if I can provide anything else useful!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Zen-CODEcommented, Aug 16, 2017

Great. Thanks for posting back 😃

0reactions
RufusVScommented, Aug 15, 2017

My kivy was using pygame. When I installed the latest kivy, it used sdl2 which solved the problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't close Kivy app or avoid fullscreen - Stack Overflow
Whenever I create and run an app, it displays as a full-screen that I am unable to close without disconnecting the power (which...
Read more >
Fullscreen not working after upgrade; OSX… - Apple Community
Immediately after upgrading latest El Capitan to Sierra, fullscreen ... OSX just crashes and shows login screen like it hasn't booted.
Read more >
macOS Sierra crashing when watching fullscreen videos
It's a problem with Chrome. Go to settings, then scroll down to advanced settings and then turn off hardware acceleration. This will fix...
Read more >
Kivy 1.10.0 released - Google Groups
Kivy is a full featured framework for creating novel and performant ... [#5152] Fixed crash on python3, due to items not being subscriptable....
Read more >
kivy Changelog - pyup.io
Full screen apps have significantly degraded performance ... Kivy crashes on Android: ImportError: dlopen failed. ... OSX: Python 2.7, 3.6, 3.7 and 3.8...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found