tingbot / tingbot-python

🔩 Python APIs to write apps for Tingbot
Other
18 stars 9 forks source link

Firing button.press callback results in crash #45

Closed joerick closed 7 years ago

joerick commented 7 years ago

From Martin Bailey over on KS:

My second issue is that on the assembled Tingbot using a Pi3 the demo examples Buttons and More buttons both work as expected in the simulator but on the Tingbot the application runs but exits with the message "Starting \apps\home...." as soon as any of the buttons are pressed

Do I have a set-up error, a wiring error or a bug please?

joerick commented 7 years ago

Hi Martin! When you run the app on Tingbot and it crashes, is there any debug information in the console pane at the bottom of the Tide window?

ididntwantanaccount commented 7 years ago

Strictly it doesn't crash. Any and all applications are exiting when any button is pressed. I first noticed specifically on the button programs because they (obviously) aren't working as expected. But the clock program also runs happily until any button is pressed.

tbtool: Copying app to /tmp/tide/4d56d920-7eb0-11e6-94be-758c0ab8467a.tingapp...
tbtool: Starting app...
tbopen: App started as PID 16332
tbopen: App ended with code: 143

Process exited.

joerick commented 7 years ago

Hmm. Not seen this one before! It sounds like the Tingbot is seeing the 'home' button combo whenever you press a button, and is sending you back to the home screen. Could you double-check your wiring into the right-angle connector? (send a photo if you're not sure)

ididntwantanaccount commented 7 years ago

Thank you for your patience with my stupidity. Found the wiring error this time. The brown wire was one pin to the left of where it should have been. Luckily it seems no hardware damage was done.

Your Tide update has fixed the Help link to documentation on widows 7 but the Help-Tingbot forum is going to http://discuss.tingbot.com/ which returns server not found.

Thank you, I can now get playing.

joerick commented 7 years ago

Thanks Martin, glad you got it working

joerick commented 7 years ago

Thanks for the heads-up on the forum, forgot I left that in there!