kivy / kivy-ios

Toolchain for compiling Python / Kivy / other libraries for iOS
https://kivy.org/docs/guide/packaging-ios.html
MIT License
781 stars 240 forks source link

Application quit abnormally! RuntimeError #104

Closed maximereinhart closed 9 years ago

maximereinhart commented 9 years ago

Hi I try to make iOS app. First I'm testing with pong game from kivy tuto. I can build it but when I try to run it, the app quit suddenly. Thx for help.

In console :

File "kivy/_event.pxd", line 1, in init kivy.properties (kivy/properties.c:24779) File "", line 29, in load_module File "kivy/properties.pxd", line 3, in init kivy._event (kivy/_event.c:6585) File "", line 19, in find_module File "/Users/me/kivy-ios/build/python/lib/python2.7/posixpath.py", line 68, in join RuntimeError: maximum recursion depth exceeded in cmp 2014-11-04 13:45:28.228 pong[322:30918] Application quit abnormally! 2014-11-04 13:45:28.259 pong[322:30918] Leaving

ghost commented 9 years ago

Possibly related: http://trac.cython.org/ticket/708

Which cython version did you use, @maximereinhart ?

maximereinhart commented 9 years ago

Cython version 0.21.1 Cython/Build/Dependencies.py looks good. dir = os.path.dirname(os.path.abspath(str(filename))) if dir != filename and path_exists(join_path(dir, 'init.py')):

schemacs commented 9 years ago

Same problem here with cython version 0.21.1(this app runs fine on android when build with buildozer):

File "kivy/properties.pxd", line 3, in init kivy._event (kivy/_event.c:6585)
   File "<string>", line 19, in find_module
   File "/Users/lele/code/p4a/.buildozer/ios/platform/kivy-ios/build/python/lib/python2.7/posixpath.py", line 68, in join
RuntimeError: maximum recursion depth exceeded in cmp
ghost commented 9 years ago

I think 1.8.0/stable (default) is not compatible with cython 0.21, but not sure if this is the problem here.

Maybe try to downgrade (i'm currently using 0.20.1 for ios builds), or alternatively try KIVY_BRANCH=master (which has fixed the cython incompatability)

schemacs commented 9 years ago

no luck after downgrade cython to 0.20.1.

ghost commented 9 years ago

I just tested building the pong app here, works as expected.

@schemacs are you also trying to build pong, or something else? Did you remove the compiled kivy and run build-kivy (or build-all) after the downgrade?

maximereinhart commented 9 years ago

Ok I did: $ pip uninstall cython $ pip install cython==0.20.1.

I built again kivy iOS: $ tools/build-all.sh

And pong app: $ tools/create-xcode-project.sh pong /path/to/your/appdir

And It works on my Ipad. Tthx for help !

schemacs commented 9 years ago

Yes, after I rebuild everything with cython==0.20.1, this run on my iPad.

juliomalegria commented 9 years ago

Had the exact same issue and this solved it. Thanks!

coling-git commented 2 years ago

Having this same problem in 2022.

Currently using Cython==0.29.28.

Tried downgrading to Cython==0.20.1 but no luck.