I'll get right to it. My app crashes with the error specified in the title, and after significant digging around I have yet to find a solution.
What should this do and what is the problem?
Opening the application brings up the main menu (mainView.dart) and if you have the server.py running and have remembered to put in the correct IP addresses and ports so that your phone can talk to your computer inside the same LAN, you should be set to reproduce the bug. In youtube view, you should be able to paste a link to a youtube video of your choosing and have the server script prompt Selenium webdriver to play said video on a browser window. However, while the video plays correctly and such, sending the link causes the entire app to break, symptoms being crashes in the media control widget as well as the main view, should you return to it.
Connector class is written as a singleton and should provide up to date data to the GUI widgets based on JSON strings sent by the sendSystemState function in server.py. Updates are handled by the Providers.
I have no idea what causes the error messages, and neither do I have any idea on how to fix it. Any help would be greatly appreciated.
Reproducing the bug
- Run main.py with server.py in the same folder
- start up the application
- hit the youtube button
- Paste a youtube video URL to the text field and hit the trailing icon button
- let Selenium do its magic
- by this point you should see the media control widget at the bottom of the youtube view break
The code!
I couldn't paste all the code needed to reproduce the app and the issue here, so I made a gist-paste: all the code used
On request I can post individula files, but I couldn't for the life of me figure out how to limit the required code while still being able to reproduce what's happening accurately.