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

libpng library isn't working with my xcode project #810

Open
Neutron-Jimmy opened this issue May 22, 2023 · 0 comments
Open

libpng library isn't working with my xcode project #810

Neutron-Jimmy opened this issue May 22, 2023 · 0 comments

Comments

@Neutron-Jimmy
Copy link

Versions

  • Python : 3.10.11
  • MacOS version : 13.3.1
  • XCode Version : 14.3
  • Cython version : 0.29.34

Describe the bug
The libpng recipe isn't working. I built my toolchain recipes in a clean environment and everything appears to have installed correctly, and the app runs as intended on iOS, however it crashes when loading a .png file. It's giving me the same error that I get when loading .png files without libpng installed, so I don't think it is installing correctly.

To Reproduce
toolchain build python3 kivy pillow libpng

Expected behavior
A feature of my app allows the user to load images from file, and it works correctly with jpeg, but gives the error listed below when loading a .png file.

Logs
The relevant information is listed at the bottom of thee log, but I'm including the full log to be thorough:

2023-05-21 03:30:02.686638-0400 Project1[11742:2934152] Available orientation: KIVY_ORIENTATION=LandscapeLeft LandscapeRight Portrait PortraitUpsideDown
2023-05-21 03:30:02.686686-0400 Project1[11742:2934152] Initializing python
2023-05-21 03:30:02.785993-0400 Project1[11742:2934152] Running main.py: /private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/YourApp/main.pyc
[INFO   ] [Logger      ] Record log in /private/var/mobile/Containers/Data/Application/4BC9571C-16E9-41FA-A45E-CFC9F34C00AC/Documents/.kivy/logs/kivy_23-05-21_2.txt
[INFO   ] [Kivy        ] v2.2.0.dev0
[INFO   ] [Kivy        ] Installed at "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/__init__.py"
[INFO   ] [Python      ] v3.9.9 (main, May 21 2023, 01:29:23) 
[Clang 14.0.3 (clang-1403.0.22.14.1)]
[INFO   ] [Python      ] Interpreter at "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/Project1"
[INFO   ] [Logger      ] Purge log fired. Processing...
[INFO   ] [Logger      ] Purge finished!
[INFO   ] [Factory     ] 189 symbols loaded
[INFO   ] [Image       ] Providers: img_imageio, img_tex, img_sdl2 (img_dds, img_ffpyplayer, img_pil ignored)
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [Window      ] Provider: sdl2
2023-05-21 03:30:03.861005-0400 Project1[11742:2934152] You need UIApplicationSupportsIndirectInputEvents in your Info.plist for mouse support
2023-05-21 03:30:04.060006-0400 Project1[11742:2934152] Metal GPU Frame Capture Enabled
2023-05-21 03:30:04.062332-0400 Project1[11742:2934152] Metal API Validation Enabled
[INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system
[INFO   ] [GL          ] Backend used <sdl2>
[INFO   ] [GL          ] OpenGL version <b'OpenGL ES 2.0 Metal - 99'>
[INFO   ] [GL          ] OpenGL vendor <b'Apple Inc.'>
[INFO   ] [GL          ] OpenGL renderer <b'Apple A12 GPU'>
[INFO   ] [GL          ] OpenGL parsed version: 2, 0
[INFO   ] [GL          ] Shading version <b'OpenGL ES GLSL ES 1.00'>
[INFO   ] [GL          ] Texture max size <4096>
[INFO   ] [GL          ] Texture max units <8>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
Got dlopen error on Foundation: dlopen(/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation, 0x0001): tried: '/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file), '/private/preboot/Cryptexes/OS/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file), '/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file, not in dyld cache)
Got fallback dlopen error on Foundation: dlopen(/Groups/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation, 0x0001): tried: '/Groups/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file), '/private/preboot/Cryptexes/OS/Groups/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file), '/Groups/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file), '/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation' (no such file, not in dyld cache)
[INFO   ] [GL          ] NPOT texture support is available
[INFO   ] [Base        ] Start application main loop
2023-05-21 03:30:04.756874-0400 Project1[11742:2934152] Unbalanced calls to begin/end appearance transitions for <SDL_uikitviewcontroller: 0x10c345b20>.
2023-05-21 03:30:04.757073-0400 Project1[11742:2934152] Unbalanced calls to begin/end appearance transitions for <SDL_uikitviewcontroller: 0x10c345b20>.
[INFO   ] [Base        ] Leaving application in progress...
 Traceback (most recent call last):
   File "/Users/Jimmy/Desktop/MyApp/Project1-ios/YourApp/main.py", line 536, in <module>
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/app.py", line 955, in run
     runTouchApp()
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/base.py", line 574, in runTouchApp
     EventLoop.mainloop()
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/base.py", line 339, in mainloop
     self.idle()
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/base.py", line 383, in idle
     self.dispatch_input()
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/base.py", line 334, in dispatch_input
     post_dispatch_input(*pop(0))
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/base.py", line 263, in post_dispatch_input
     listener.dispatch('on_motion', etype, me)
   File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/core/window/__init__.py", line 1664, in on_motion
     self.dispatch('on_touch_up', me)
   File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/core/window/__init__.py", line 1701, in on_touch_up
     if w.dispatch('on_touch_up', touch):
   File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/uix/modalview.py", line 281, in on_touch_up
     super().on_touch_up(touch)
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/uix/widget.py", line 611, in on_touch_up
     if child.dispatch('on_touch_up', touch):
   File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/uix/widget.py", line 611, in on_touch_up
     if child.dispatch('on_touch_up', touch):
   File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/uix/widget.py", line 611, in on_touch_up
     if child.dispatch('on_touch_up', touch):
   File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/uix/filechooser.py", line 563, in on_touch_up
     return super(FileChooserController, self).on_touch_up(touch)
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/uix/relativelayout.py", line 322, in on_touch_up
     ret = super(RelativeLayout, self).on_touch_up(touch)
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/uix/widget.py", line 611, in on_touch_up
     if child.dispatch('on_touch_up', touch):
   File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/uix/widget.py", line 611, in on_touch_up
     if child.dispatch('on_touch_up', touch):
   File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/uix/widget.py", line 611, in on_touch_up
     if child.dispatch('on_touch_up', touch):
   File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/uix/scrollview.py", line 968, in on_touch_up
     if self.dispatch('on_scroll_stop', touch):
   File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/uix/scrollview.py", line 1005, in on_scroll_stop
     self.simulate_touch_down(touch)
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/uix/scrollview.py", line 668, in simulate_touch_down
     ret = super(ScrollView, self).on_touch_down(touch)
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/uix/widget.py", line 589, in on_touch_down
     if child.dispatch('on_touch_down', touch):
   File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/uix/scatter.py", line 535, in on_touch_down
     if super(Scatter, self).on_touch_down(touch):
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/uix/widget.py", line 589, in on_touch_down
     if child.dispatch('on_touch_down', touch):
   File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/uix/treeview.py", line 517, in on_touch_down
     node.dispatch('on_touch_down', touch)
   File "kivy/_event.pyx", line 727, in kivy._event.EventDispatcher.dispatch
   File "kivy/_event.pyx", line 1307, in kivy._event.EventObservers.dispatch
   File "kivy/_event.pyx", line 1191, in kivy._event.EventObservers._dispatch
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/lang/builder.py", line 55, in custom_callback
     exec(__kvlang__.co_value, idmap)
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/data/style.kv", line 344, in <module>
     on_touch_down: self.collide_point(*args[1].pos) and ctx.controller().entry_touched(self, args[1])
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/kivy/uix/filechooser.py", line 627, in entry_touched
     self.selection = [abspath(join(self.path, entry.path)), ]
   File "kivy/properties.pyx", line 520, in kivy.properties.Property.__set__
   File "kivy/properties.pyx", line 939, in kivy.properties.ListProperty.set
   File "kivy/properties.pyx", line 567, in kivy.properties.Property.set
   File "kivy/properties.pyx", line 606, in kivy.properties.Property._dispatch
   File "kivy/_event.pyx", line 1307, in kivy._event.EventObservers.dispatch
   File "kivy/_event.pyx", line 1213, in kivy._event.EventObservers._dispatch
   File "/Users/Jimmy/Desktop/MyApp/Project1-ios/YourApp/main.py", line 373, in on_selection
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/PIL/Image.py", line 904, in convert
     self.load()
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/PIL/ImageFile.py", line 274, in load
     raise_oserror(err_code)
   File "/private/var/containers/Bundle/Application/4115TYB0-0F63-4226-8B69-39531D5DF109/Project1.app/lib/python3.9/site-packages/PIL/ImageFile.py", line 67, in raise_oserror
     raise OSError(message + " when reading image file")
 OSError: codec configuration error when reading image file
2023-05-21 03:30:10.751984-0400 Project1[11742:2934152] Application quit abnormally!
2023-05-21 03:30:10.810767-0400 Project1[11742:2934152] Leaving
2023-05-21 03:30:10.812748-0400 Project1[11742:2934461] [client] No error handler for XPC error: Connection invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant