Kivy "вылетает" без сообщения об ошибке ["прервано (отключено)"] - PullRequest
0 голосов
/ 13 июля 2020

У меня есть многофайловая программа kivy, которая работает неправильно. Это мой большой проект, и пару недель назад он начался ... Вместо того, чтобы получать обычное сообщение об исключении, например:

builtins.TypeError: username_is_valid() missing 1 required positional argument: 'username'

(буквально может быть что угодно, TypeError - это просто пример)

Я просто получаю:

aborted (disconnected)

(см. фото)

'cr

I have been able to fix errors without the help of the regular messages until now. It is getting annoying now. Anyone know what could possibly cause this?

Happy to send code, it's just I have no clue what to send... there is a lot.

I can't remember what I changed in the program when it started :/

UPDATE! I didn't fix it... but I found the problem :)

I traced my versions back to when it started and found the difference between the problem happening and not when an exception was raised.

In my .kv file a text box has its password attribute set to True to hide the text with certain characters. You can choose what character is used with the password_mask attibute. I set password_mask to '•' because it looks nice.

(see photo)

enter image description here

When password_mask is '•' (or any other unconventional unicode character) it crashes with 'aborted (disconnected)'. Whereas I can make it (for example) '#', '*', ')', 'P', '~', etc... and it works fine.

Looking at this article https://en.wikipedia.org/wiki/List_of_Unicode_characters , я могу использовать первую таблицу, но не другие.

Есть какие-нибудь подсказки, почему это происходит и / или как я могу это исправить?

...