jsamadhan3
(Samadhan Jadhav)
December 8, 2018, 10:46am
#1
hi team,
I had created application with 4 screens.
Till last week it was working fine but suddenly it came up with an issue.
When i am opening a new screen after login, the application just crashes without any error.
I have removed many of unwanted screens but still the same issue.
Can somebody please advice?
jsamadhan3
(Samadhan Jadhav)
December 8, 2018, 11:00am
#3
Hi Peter,
not sure how do you want me to put the issue here.
Application was running fine till today.
I havent done any changes and it started going off.
I have already checked on the google and other platform community blogs as well but to no luck.
1 Like
Peter
(Moderator)
December 8, 2018, 11:08am
#4
Maybe show your blocks, your components, do you use large assets, etc. With the info you gave it is hard to help.
1 Like
jsamadhan3
(Samadhan Jadhav)
December 8, 2018, 11:10am
#5
the screen has got many blocks (Please let me know if there is anyother way to share those rather pasting as a screenshot)
also,
As i mentioned, I didnt change anything on the screen (the one which is giving me an error)
1 Like
Peter
(Moderator)
December 8, 2018, 11:15am
#6
Do you use large assets? You can make a image of your blocks by rightclicking in the blockeditor and select the appropriate menuoption. Post it here. Tell about your app. You have to provide info else no one can or will help you. And that you changed nothing doesn’t mean that nothing is happened. Something did.
1 Like
Check How many Images You are using in Your App and The Size of the Images. If the Images are of Large Size or if you use a lot of Images then Try using https://tinypng.com/ I use this to reduce my Images Size and it should Fix your crash if its related to Assets or like Out Of memory Error
Thanks!
1 Like
jsamadhan3
(Samadhan Jadhav)
December 8, 2018, 11:49am
#8
images which are shown in the app are stored in firebase.
even then i tried reducing size of those but to no luck.
How do i checks logs for the screen?
I have added a notifier block to log on screen error event but dont know how to and where to check the log?
Can someone please advise…
The app is in its last phase.
1 Like
Check This to know how to use LogCat
Can you get some logs of what happens when it crashes using LogCat?
1 Like
Peter
(Moderator)
December 8, 2018, 12:00pm
#10
I am sorry to say but you started asking for help more then an hour ago. Users asked you questions about blocks and image sizes. Why don’t you just give an answer or show what they want.
Peter:
Maybe show your blocks, your components, do you use large assets, etc. With the info you gave it is hard to help.
I asked you the above more then an hour ago. I feel reluctant to help you if i have to keep asking for information.
Use different screens wisely
Before starting to create another screen, first you should think about is it really necessary? See also Building apps with many screens and SteveJG’s post about advantages/disadvantages , because in only one screen you also can use vertical arrangements to simulate different screens, just set the arrangements to visible = true/false as needed…
If you decided to use different screens, then you should switch them correctly, else you will run out of memory after a wh…
See tips and tricks.
2 Likes
jsamadhan3
(Samadhan Jadhav)
December 9, 2018, 2:19pm
#11
it wasnt because of screens.
I was using lottie animation over it and i believe it is causing the issue.
When i am trying to load new json lotie file on new screen it is going off.
Is there any know issue with lotie jsons?
i see error,
404
This page exists only when you are not looking!
Vaibhav
(Vaibhav)
December 9, 2018, 2:47pm
#12
@jsamadhan3
There was a bug when Lottie component was introduced. I don’t know if it is still present or not as I have not used Lottie component after that.
See my below reply, to one of the similar topic for some more information
Hello @David
This is a known bug. For now use the Lottie component with height and width set to Automatic. Even height & width set to Fill parent will also not work
Have a look at this tutorial by @Mobile_Tech to know more
Hope it helps
1 Like
jsamadhan3
(Samadhan Jadhav)
December 9, 2018, 2:50pm
#13
Hi Vaibhav,
i had read posts about it before using it.
Few days it worked fine but now it is not.
one thing i noticed, the link to lottie json file doesnot show the actual json code.
if you try below link -https://www.lottiefiles.com/storage/datafiles/WgRBwbT0n0IN0Uu/data.json
it will give you error 404.
Having said that,
I copied the json file to my webserver and tried using new url for source. Even then it failed and app crashed.
1 Like
Vaibhav
(Vaibhav)
December 9, 2018, 6:12pm
#14
Hmm… I think the problem is with the json url. I tried same for other lottie files and some of them gave me the same error
For de-bugging purpose, find a working json url and then try to insert it in your project.
If this works, then you might have to change your current lottie file.
1 Like
jsamadhan3
(Samadhan Jadhav)
December 10, 2018, 12:58pm
#15
I couldnt find a working json.
But as i said,
I tried saving a copy of json file on my webserver and use it but it didnt work as well…