Resonate icon indicating copy to clipboard operation
Resonate copied to clipboard

Sometimes unable to startup app for development

Open SimardeepSingh1450 opened this issue 2 years ago • 10 comments

🐛 Describe the bug

Sometimes when i try to run the app for local development, it gives the below prompt in debug console and shows a black screen on the android device.

image

SimardeepSingh1450 avatar Dec 26 '23 20:12 SimardeepSingh1450

This is a know issue but was not showing any black screen before. Do you want to work on it ?

chandansgowda avatar Dec 27 '23 08:12 chandansgowda

Yes @chandansgowda , let me try to debug this, if i find no solution for the same then will update here.

SimardeepSingh1450 avatar Dec 27 '23 08:12 SimardeepSingh1450

@chandansgowda I tried to find the problem but was unable to do so 😞 , but found that the reason for the problem is somewhere there is an uninitialized variable which is having !. (bang operator) on it due to which this problem is arising , I got this from https://stackoverflow.com/questions/64278595/null-check-operator-used-on-a-null-value , so if someone else can find that one wrongly placed !. (bang operator) it would probably fix the issue.

SimardeepSingh1450 avatar Dec 27 '23 21:12 SimardeepSingh1450

@Aarush-Acharya ??

chandansgowda avatar Dec 29 '23 05:12 chandansgowda

Hi @chandansgowda can I try to resolve the issue?

chinmayilondhe avatar Dec 29 '23 09:12 chinmayilondhe

Hey @chandansgowda I can work on this if it is alright, but I wont have a problem if @chinmayilondhe takes it up

Aarush-Acharya avatar Dec 30 '23 11:12 Aarush-Acharya

I faced the same issue and I tried fixing it. I guess the error could be related to routes as the problem is caused while navigation. I made some changes in the splash screen file. The black screen doesn't pop up anymore and i can go to other pages but I'm not sure if its entirely fixed :(
@chinmayilondhe @Aarush-Acharya @SimardeepSingh1450 If its alright and the issue is still open, do i raise a PR on this or would anyone like to test if the fix works for them?

JuanitaCathy avatar Jan 04 '24 12:01 JuanitaCathy

@JuanitaCathy you can try running the same codebase on different devices like on emulator or use external device(having usb debugging enabled) and see if the issue is fixed. :smiley:

SimardeepSingh1450 avatar Jan 04 '24 13:01 SimardeepSingh1450

Yup, checked it on 2 external devices and it worked. Just wanted to make sure because sometimes, even if the null check error is present, the app works fine.

@JuanitaCathy you can try running the same codebase on different devices like on emulator or use external device(having usb debugging enabled) and see if the issue is fixed. 😃

JuanitaCathy avatar Jan 04 '24 14:01 JuanitaCathy

@JuanitaCathy raise a pr and tag @chandansgowda for review

SimardeepSingh1450 avatar Jan 05 '24 16:01 SimardeepSingh1450