App crash before initialising

so I made an app for my esp32 which is connected to my bike,im making it keyless, for which I made an app which connects to the bt on startup and sends numbers(signal) to esp and starting it.

but after I installed some extentions, the screen just crashes on initialisation, when bt if off and it called the enablebt function, the screen initialises fine, but when bt is already on, the app crashes before initialising,
I'm new to this, so please do let me know places where I can improve,
thanks.

Bike_Control.aia (346.9 KB)