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.

Yoke crash on startup

See original GitHub issue

I am using Fedora 32. After running yoke-enable-uinput I run yoke and get the following error and the app crashes:

Starting service... Press Ctrl+C to exit.
Shutting down...
Exception in thread zeroconf-Engine-32239:
Traceback (most recent call last):
  File "/usr/lib64/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/home/pmolodyk/.local/lib/python3.8/site-packages/zeroconf/__init__.py", line 1314, in run
    reader.handle_read(socket_)
  File "/home/pmolodyk/.local/lib/python3.8/site-packages/zeroconf/__init__.py", line 1396, in handle_read
    self.zc.handle_query(msg, None, _MDNS_PORT)
  File "/home/pmolodyk/.local/lib/python3.8/site-packages/zeroconf/__init__.py", line 2716, in handle_query
    DNSText(
  File "/home/pmolodyk/.local/lib/python3.8/site-packages/zeroconf/__init__.py", line 618, in __init__
    assert isinstance(text, (bytes, type(None)))
AssertionError
Traceback (most recent call last):
  File "./yoke", line 85, in <module>
    service.run()
  File "/home/pmolodyk/.local/lib/python3.8/site-packages/yoke/service.py", line 162, in run
    zeroconf.register_service(self.info, ttl=10)
  File "/home/pmolodyk/.local/lib/python3.8/site-packages/zeroconf/__init__.py", line 2419, in register_service
    self._broadcast_service(info)
  File "/home/pmolodyk/.local/lib/python3.8/site-packages/zeroconf/__init__.py", line 2459, in _broadcast_service
    DNSText(info.name, _TYPE_TXT, _CLASS_IN | _CLASS_UNIQUE, info.other_ttl, info.text), 0
  File "/home/pmolodyk/.local/lib/python3.8/site-packages/zeroconf/__init__.py", line 618, in __init__
    assert isinstance(text, (bytes, type(None)))
AssertionError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./yoke", line 90, in <module>
    service.close()
  File "/home/pmolodyk/.local/lib/python3.8/site-packages/yoke/service.py", line 213, in close
    zeroconf.unregister_service(self.info)
  File "/home/pmolodyk/.local/lib/python3.8/site-packages/zeroconf/__init__.py", line 2503, in unregister_service
    out.add_answer_at_time(DNSText(info.name, _TYPE_TXT, _CLASS_IN | _CLASS_UNIQUE, 0, info.text), 0)
  File "/home/pmolodyk/.local/lib/python3.8/site-packages/zeroconf/__init__.py", line 618, in __init__
    assert isinstance(text, (bytes, type(None)))
AssertionError

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

2reactions
pzmarzlycommented, Aug 2, 2020

We changed not just the Python backend, but also the Android app, so the message format is different. That’s probably why it isn’t working for you. The latest version can be found in devel/app-debug.apk (for Android <= 8), or in this comment (should work for all Android versions but I haven’t got any feedback).

Yes, the version split has been a mess for past 2 years or so, we should probably finally get rid of all v0.1 things. @rmst

BTW this project could use more maintainers (I’m not even on Android anymore).

1reaction
pmolodykcommented, Aug 1, 2020

So it seems the version of yoke in pip3 conflicts with the latest commit, I replaced the yoke dir from ~/.local/lib/python3.8/site-packages/yoke with the one from the commit and now I can start it up but when I connect from the phone I get

Traceback (most recent call last):
  File "/home/pmolodyk/.local/lib/python3.8/site-packages/yoke/service.py", line 364, in run
    v = self.preprocess(m, len(self.dev.events))
  File "/home/pmolodyk/.local/lib/python3.8/site-packages/yoke/service.py", line 288, in preprocess
    v = tuple([int(m) for m in v])
  File "/home/pmolodyk/.local/lib/python3.8/site-packages/yoke/service.py", line 288, in <listcomp>
    v = tuple([int(m) for m in v])
ValueError: invalid literal for int() with base 10: b' 9.548422 -0.41191998 2.197351 0.0 0.0 0.0 0.0'
Read more comments on GitHub >

github_iconTop Results From Across the Web

Logitech yoke crash to desktop - Hardware
Hi everyone! I'm on the Microsoft Store version of the sim. I just setup my new Logitech yoke, plus the quadrant, plus the...
Read more >
anyone with Logitech flight yoke - Sim crashes plane after ...
I suspect there is a bug in the "Logitech Microsoft Flight Simulator Plugin" and the new version, because I can disconnect and run...
Read more >
Crashing on Flight Startup? The Easy Fix. - YouTube
Flight Simulator 2020 is a very resource intensive program especially during the initial loading of your flight. If you find FS 2020 crashes...
Read more >
[Solved] Microsoft Flight Simulator 2020 Keeps Crashing on PC
If your gaming rig doesn't meet the minimum requirements, the game is expected to crash from time to time. And even if you...
Read more >
How to Fix Microsoft Flight Simulator Crashing on Windows 10 ...
In addition, the Microsoft Flight Sim crashing can be caused by other possible factors, such as outdated/corrupted GPU drivers, incompatible ...
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