1.10.1 on macOS issues

65 views
Skip to first unread message

John Green

unread,
Jul 17, 2018, 4:06:49 PM7/17/18
to Kivy users support
I upgraded  to latest ivy and now when trying to run my app it just freezes my Mac.

I have since set up a new venv and the same issue is happening.

kivy log doesn't get past this

"/Users/John/Library/Mobile Documents/com~apple~CloudDocs/Development/venv/bin/python3.6" /Users/John/Documents/Documents_OptimusMACBOOK/Git/ogleavetracker/optileave/main.py

[INFO   ] [Logger      ] Record log in /Users/John/.kivy/logs/kivy_18-07-17_43.txt

[INFO   ] [Kivy        ] v1.10.1

[INFO   ] [Python      ] v3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 03:03:55) 

[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]

[INFO   ] [Factory     ] 194 symbols loaded

[INFO   ] [Image       ] Providers: img_tex, img_imageio, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)

[INFO   ] [Window      ] Provider: sdl2

[INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system

[INFO   ] [GL          ] Backend used <gl>

[INFO   ] [GL          ] OpenGL version <b'2.1 INTEL-10.36.19'>

[INFO   ] [GL          ] OpenGL vendor <b'Intel Inc.'>

[INFO   ] [GL          ] OpenGL renderer <b'Intel HD Graphics 4000 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      ] auto add sdl2 input provider

[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked

[INFO   ] [KivyMD      ] KivyMD version: 0.1.2

[INFO   ] [Text        ] Provider: sdl2



Any help would be great.


John Green

unread,
Jul 19, 2018, 7:25:41 AM7/19/18
to Kivy users support
Ok so here's what I've found so far.

New venv with python 3 and kivy 1.10.0 and my app opens no problem. Upgrade to kivy 1.10.1 and I get that freezing like in the OP. I have to force quit python or Mac becomes unresponsive. If I downgrade back to 1.10.0 the problem persists making me think it's a dependency or something that is also upgrading with 1.10.1?

I also tested this in Ubuntu last night and I had the same issues.

Anyone have any ideas?

James Moore

unread,
Jul 19, 2018, 12:00:38 PM7/19/18
to kivy-...@googlegroups.com
If you let it run for awhile does it exit with a stack overflow? If the whole system is slowing down then I would guess it’s forcing your machine to run out of memory and swap. Is there anywhere you’re creating a lot of objects in a loop or using tail recursion?

You can try to see if its a recursion problem by setting sys.setrecursionlimit to something lower than the default of 1000.

FWIW I’m doing development on macOS with 1.10.1 and I’m not seeing any problems. 

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To post to this group, send email to kivy-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kivy-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/c8bd8277-7c7d-48d7-945e-ea738132cbc5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

qua non

unread,
Jul 20, 2018, 4:09:57 AM7/20/18
to kivy-...@googlegroups.com
it's difficult to trace any issues without a log to indicate what is going on.

Could you please run with log_level set to trace

python main.py -c "kivy:log_level:trace"


John Green

unread,
Jul 20, 2018, 3:46:30 PM7/20/18
to Kivy users support
Hi,

Yeah it just runs out of memory and freezes the computer, it won't exit itself. I've checked my loops and theres nothing major there. 
I tried the set recursion and still had the same issue unfortuneately.

Heres the trace, it just hangs at that last one but I don't see anything in that code from kivymd that should be an issue.

Last login: Fri Jul 20 19:30:01 on ttys000
Johns-MBP:optileave john$ source /Users/john/Development/VirtualEnv/OptiLEAVE_venv/(((((((((((((((((((((((((((((O((((((((((O((((((OptiLEAVE_venv) Johns-MBP:optileave john$ python main.py -c "kivy:log_level:trace"
[INFO   ] [Logger      ] Record log in /Users/john/.kivy/logs/kivy_18-07-20_40.txt
[INFO   ] [Kivy        ] v1.10.1
[INFO   ] [Python      ] v3.7.0 (default, Jun 29 2018, 20:13:13) 
[Clang 9.1.0 (clang-902.0.39.2)]
[INFO   ] [Factory     ] 194 symbols loaded
[DEBUG  ] [Cache       ] register <kv.lang> with limit=None, timeout=None
[TRACE  ] [Lang        ] load file /Users/john/Development/VirtualEnv/OptiLEAVE_venv/lib/python3.7/site-packages/kivy/data/style.kv
[TRACE  ] [Parser      ] parsing 1291 lines
[TRACE  ] [Parser      ] got directive <kivy 1.0>
[TRACE  ] [Builder     ] build rule for <Label>
[TRACE  ] [Builder     ] build rule for <-Button,-ToggleButton>
[TRACE  ] [Builder     ] build rule for <BubbleContent>
[TRACE  ] [Builder     ] build rule for <BubbleButton>
[TRACE  ] [Builder     ] build rule for <Slider>
[TRACE  ] [Builder     ] build rule for <ProgressBar>
[TRACE  ] [Builder     ] build rule for <SplitterStrip>
[TRACE  ] [Builder     ] build rule for <Scatter>
[TRACE  ] [Builder     ] build rule for <RelativeLayout>
[TRACE  ] [Builder     ] build rule for <Image,AsyncImage>
[TRACE  ] [Builder     ] build rule for <EffectWidget>
[TRACE  ] [Builder     ] build rule for <TabbedPanelContent>
[TRACE  ] [Builder     ] build rule for <TabbedPanelStrip>
[TRACE  ] [Builder     ] build rule for <StripLayout>
[TRACE  ] [Builder     ] build rule for <TabbedPanelHeader>
[TRACE  ] [Builder     ] build rule for <Selector>
[TRACE  ] [Builder     ] build rule for <TextInput>
[TRACE  ] [Builder     ] build rule for <TextInputCutCopyPaste>
[TRACE  ] [Builder     ] build rule for <CodeInput>
[TRACE  ] [Builder     ] build rule for <TreeViewNode>
[TRACE  ] [Builder     ] build rule for <TreeViewLabel>
[TRACE  ] [Builder     ] build rule for <StencilView>
[TRACE  ] [Builder     ] build rule for <FileChooserListLayout>
[TRACE  ] [Builder     ] build rule for <FileChooserListView>
[TRACE  ] [Builder     ] build template for [FileListEntry@FloatLayout+TreeViewNode]
[TRACE  ] [Builder     ] build rule for <FileChooserIconLayout>
[TRACE  ] [Builder     ] build rule for <FileChooserIconView>
[TRACE  ] [Builder     ] build template for [FileIconEntry@Widget]
[TRACE  ] [Builder     ] build rule for <FileChooserProgress>
[TRACE  ] [Builder     ] build rule for <Switch>
[TRACE  ] [Builder     ] build rule for <ModalView>
[TRACE  ] [Builder     ] build rule for <Popup>
[TRACE  ] [Builder     ] build rule for <SpinnerOption>
[TRACE  ] [Builder     ] build rule for <Spinner>
[TRACE  ] [Builder     ] build rule for <ActionBar>
[TRACE  ] [Builder     ] build rule for <ActionView>
[TRACE  ] [Builder     ] build rule for <ActionSeparator>
[TRACE  ] [Builder     ] build rule for <ActionButton,ActionToggleButton>
[TRACE  ] [Builder     ] build rule for <ActionLabel>
[TRACE  ] [Builder     ] build rule for <ActionGroup>
[TRACE  ] [Builder     ] build rule for <ActionCheck>
[TRACE  ] [Builder     ] build rule for <ActionPreviousImage@Image>
[TRACE  ] [Builder     ] build rule for <ActionPreviousButton@Button>
[TRACE  ] [Builder     ] build rule for <ActionPrevious>
[TRACE  ] [Builder     ] build rule for <ActionGroup>
[TRACE  ] [Builder     ] build rule for <ActionOverflow>
[TRACE  ] [Builder     ] build rule for <ActionDropDown>
[TRACE  ] [Builder     ] build template for [AccordionItemTitle@Label]
[TRACE  ] [Builder     ] build rule for <AccordionItem>
[TRACE  ] [Builder     ] build rule for <SettingSpacer>
[TRACE  ] [Builder     ] build rule for <SettingItem>
[TRACE  ] [Builder     ] build rule for <SettingBoolean>
[TRACE  ] [Builder     ] build rule for <SettingString>
[TRACE  ] [Builder     ] build rule for <SettingPath>
[TRACE  ] [Builder     ] build rule for <SettingOptions>
[TRACE  ] [Builder     ] build rule for <SettingTitle>
[TRACE  ] [Builder     ] build rule for <SettingSidebarLabel>
[TRACE  ] [Builder     ] build rule for <SettingsPanel>
[TRACE  ] [Builder     ] build rule for <Settings>
[TRACE  ] [Builder     ] build rule for <InterfaceWithSidebar>
[TRACE  ] [Builder     ] build rule for <InterfaceWithSpinner>
[TRACE  ] [Builder     ] build rule for <MenuSpinner>
[TRACE  ] [Builder     ] build rule for <MenuSidebar>
[TRACE  ] [Builder     ] build rule for <ContentPanel>
[TRACE  ] [Builder     ] build rule for <InterfaceWithTabbedPanel>
[TRACE  ] [Builder     ] build rule for <ScrollView>
[TRACE  ] [Builder     ] build rule for <VideoPlayerPreview>
[TRACE  ] [Builder     ] build rule for <VideoPlayerAnnotation>
[TRACE  ] [Builder     ] build rule for <VideoPlayer>
[TRACE  ] [Builder     ] build rule for <CheckBox>
[TRACE  ] [Builder     ] build rule for <ScreenManager>
[TRACE  ] [Builder     ] build rule for <ColorPicker_Input@TextInput>
[TRACE  ] [Builder     ] build rule for <ColorPicker_Label@Label>
[TRACE  ] [Builder     ] build rule for <ColorPicker_Selector@BoxLayout>
[TRACE  ] [Builder     ] build rule for <ColorWheel>
[TRACE  ] [Builder     ] build rule for <ColorPicker>
[DEBUG  ] [Cache       ] register <kv.image> with limit=None, timeout=60
[DEBUG  ] [Cache       ] register <kv.atlas> with limit=None, timeout=None
[TRACE  ] [Image       ] Unable to use <gif> as loader!
[TRACE  ] 
Traceback (most recent call last):
  File "/Users/john/Development/VirtualEnv/OptiLEAVE_venv/lib/python3.7/site-packages/kivy/core/image/img_pil.py", line 8, in <module>
    import Image as PILImage
ModuleNotFoundError: No module named 'Image'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/john/Development/VirtualEnv/OptiLEAVE_venv/lib/python3.7/site-packages/kivy/core/__init__.py", line 129, in core_register_libs
    level=0)
  File "/Users/john/Development/VirtualEnv/OptiLEAVE_venv/lib/python3.7/site-packages/kivy/core/image/img_pil.py", line 11, in <module>
    from PIL import Image as PILImage
ModuleNotFoundError: No module named 'PIL'
[TRACE  ] [Image       ] Unable to use <gif> as loader!
[TRACE  ] 
Traceback (most recent call last):
  File "/Users/john/Development/VirtualEnv/OptiLEAVE_venv/lib/python3.7/site-packages/kivy/core/__init__.py", line 129, in core_register_libs
    level=0)
  File "/Users/john/Development/VirtualEnv/OptiLEAVE_venv/lib/python3.7/site-packages/kivy/core/image/img_ffpyplayer.py", line 7, in <module>
    import ffpyplayer
ModuleNotFoundError: No module named 'ffpyplayer'
[INFO   ] [Image       ] Providers: img_tex, img_imageio, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
[DEBUG  ] [Cache       ] register <kv.texture> with limit=1000, timeout=60
[DEBUG  ] [Cache       ] register <kv.shader> with limit=1000, timeout=3600
[TRACE  ] [Parser      ] parsing 19 lines
[TRACE  ] [Builder     ] build rule for <-CoverBehavior>
[INFO   ] [Window      ] Provider: sdl2
[INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system
[DEBUG  ] [GL          ] glShaderBinary is not available
[INFO   ] [GL          ] Backend used <gl>
[INFO   ] [GL          ] OpenGL version <b'2.1 INTEL-10.36.19'>
[INFO   ] [GL          ] OpenGL vendor <b'Intel Inc.'>
[INFO   ] [GL          ] OpenGL renderer <b'Intel HD Graphics 4000 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>
[DEBUG  ] [Shader      ] Fragment compiled successfully
[DEBUG  ] [Shader      ] Vertex compiled successfully
[DEBUG  ] [ImageImageIO] Load </Users/john/Development/VirtualEnv/OptiLEAVE_venv/lib/python3.7/site-packages/kivy/data/glsl/default.png>
[TRACE  ] [Image       ] '/Users/john/Development/VirtualEnv/OptiLEAVE_venv/lib/python3.7/site-packages/kivy/data/glsl/default.png', populate to textures (1)
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [KivyMD      ] KivyMD version: 0.1.2
[INFO   ] [Text        ] Provider: sdl2
[TRACE  ] [Parser      ] parsing 34 lines
[TRACE  ] [Builder     ] build rule for <RectangularElevationBehavior>
[TRACE  ] [Builder     ] build rule for <CircularElevationBehavior>
[TRACE  ] [Parser      ] parsing 4 lines
[TRACE  ] [Builder     ] build rule for <MDLabel>
[TRACE  ] [Parser      ] parsing 109 lines
[TRACE  ] [Parser      ] got directive <import m_res modules.md.material_resources>
[TRACE  ] [Builder     ] build rule for <MDList>
[TRACE  ] [Builder     ] build rule for <BaseListItem>
[TRACE  ] [Builder     ] build rule for <OneLineAvatarListItem>
[TRACE  ] [Builder     ] build rule for <ThreeLineAvatarListItem>
[TRACE  ] [Builder     ] build rule for <OneLineIconListItem>
[TRACE  ] [Builder     ] build rule for <ThreeLineIconListItem>
[TRACE  ] [Builder     ] build rule for <OneLineRightIconListItem>
[TRACE  ] [Builder     ] build rule for <ThreeLineRightIconListItem>
[TRACE  ] [Builder     ] build rule for <OneLineAvatarIconListItem>
[TRACE  ] [Builder     ] build rule for <TwoLineAvatarIconListItem>
[TRACE  ] [Builder     ] build rule for <ThreeLineAvatarIconListItem>
[TRACE  ] [Parser      ] parsing 8 lines
[TRACE  ] [Builder     ] build rule for <BackgroundColorBehavior>
[TRACE  ] [Parser      ] parsing 76 lines
[TRACE  ] [Parser      ] got directive <import md_icons modules.md.icon_definitions.md_icons>
[TRACE  ] [Parser      ] got directive <import colors modules.md.color_definitions.colors>
[TRACE  ] [Parser      ] got directive <import MDLabel modules.md.label.MDLabel>
[TRACE  ] [Builder     ] build rule for <BaseButton>
[TRACE  ] [Builder     ] build rule for <BaseFlatButton>
[TRACE  ] [Builder     ] build rule for <BaseRaisedButton>
[TRACE  ] [Builder     ] build rule for <BaseRoundButton>
[TRACE  ] [Builder     ] build rule for <BaseRectangularButton>
[TRACE  ] [Builder     ] build rule for <MDRaisedButton>
[TRACE  ] [Builder     ] build rule for <MDFloatingActionButton>
[TRACE  ] [Parser      ] parsing 28 lines
[TRACE  ] [Parser      ] got directive <import m_res modules.md.material_resources>
[TRACE  ] [Builder     ] build rule for <Toolbar>
[TRACE  ] [Parser      ] parsing 86 lines
[TRACE  ] [Builder     ] build rule for <NavigationDrawer>
[TRACE  ] [Parser      ] parsing 73 lines
[TRACE  ] [Parser      ] got directive <import Toolbar modules.md.toolbar.Toolbar>
[TRACE  ] [Parser      ] got directive <import MDList modules.md.list.MDList>
[TRACE  ] [Parser      ] got directive <import OneLineIconListItem modules.md.list.OneLineIconListItem>
[TRACE  ] [Parser      ] got directive <import colors modules.md.color_definitions.colors>
[TRACE  ] [Parser      ] got directive <import get_color_from_hex kivy.utils.get_color_from_hex>
[TRACE  ] [Parser      ] got directive <import ScrollView kivy.uix.scrollview.ScrollView>
[TRACE  ] [Parser      ] got directive <import Window kivy.core.window.Window>
[TRACE  ] [Builder     ] build rule for <NavigationDrawerToolbar>
[TRACE  ] [Builder     ] build rule for <NavigationLayout>
[TRACE  ] [Builder     ] build rule for <MDNavigationDrawer>
[TRACE  ] [Builder     ] build rule for <NavigationDrawerIconButton>
[TRACE  ] [Builder     ] build rule for <NavigationDrawerDivider>
Killed: 9
(OptiLEAVE_venv) Johns-MBP:optileave john$ 



John Green

unread,
Jul 21, 2018, 5:07:52 PM7/21/18
to Kivy users support
OK so turns out to be a rogue bit of code I had added twice by accident.

I just went way back in my git and kept moving forward until it broke.

I must have done it and updated kivy at the same time.

lesson learned .

Reply all
Reply to author
Forward
0 new messages