Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Crash #6

Closed
IanDarwin opened this issue Jan 2, 2023 · 2 comments
Closed

App Crash #6

IanDarwin opened this issue Jan 2, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@IanDarwin
Copy link

IanDarwin commented Jan 2, 2023

Running on a Pixel 6A with poor internet connectivity where I am, and with Location allowed "while using App", it just crashes.
The UI goes straight to reporting "No search results"...
When I press Return Home, it shows the search box briefly but not long enough to type anything (can't even type a few letters), then goes back to No Search Results.
Loop ad nauseum.

I did put my OWM API key in place :-) 'git diff' shows that the only change, from 09918c1

$ flutter run
. . .
💪 Running with sound null safety 💪

An Observatory debugger and profiler on Pixel 6a is available at: http://127.0.0.1:4156/74dQjtPQmp4=/
I/flutter_weather(11763): Compiler allocated 4579KB to compile void android.view.ViewRootImpl.performTraversals()
The Flutter DevTools debugger and profiler on Pixel 6a is available at: http://127.0.0.1:9100?uri=http://127.0.0.1:4156/74dQjtPQmp4=/
E/SurfaceSyncer(11763): Failed to find sync for id=0
D/CompatibilityChangeReporter(11763): Compat change id reported: 78294732; UID 10306; state: DISABLED
I/flutter (11763): NoSuchMethodError: The method '[]' was called on null.
I/flutter (11763): Receiver: null
I/flutter (11763): Tried calling:
E/flutter (11763): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: NoSuchMethodError: The method '[]' was called on null.
E/flutter (11763): Receiver: null
E/flutter (11763): Tried calling:
E/flutter (11763): #0 WeatherProvider.getDailyWeather (package:flutter_weather/provider/weatherProvider.dart:105:7)
E/flutter (11763):
E/flutter (11763): #1 WeatherProvider.getWeatherData. (package:flutter_weather/provider/weatherProvider.dart:36:11)
E/flutter (11763):
E/flutter (11763): #2 WeatherProvider.getWeatherData (package:flutter_weather/provider/weatherProvider.dart:30:5)
E/flutter (11763):
E/flutter (11763):
I/flutter (11763): NoSuchMethodError: The method '[]' was called on null.
I/flutter (11763): Receiver: null
I/flutter (11763): Tried calling:
E/flutter (11763): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: NoSuchMethodError: The method '[]' was called on null.
E/flutter (11763): Receiver: null
E/flutter (11763): Tried calling:
E/flutter (11763): #0 WeatherProvider.getDailyWeather (package:flutter_weather/provider/weatherProvider.dart:105:7)
E/flutter (11763):
E/flutter (11763): #1 WeatherProvider.getWeatherData. (package:flutter_weather/provider/weatherProvider.dart:36:11)
E/flutter (11763):
E/flutter (11763): #2 WeatherProvider.getWeatherData (package:flutter_weather/provider/weatherProvider.dart:30:5)
E/flutter (11763):
E/flutter (11763):

Installing the obvious "if-null check print; return" at line 36 just makes it crash further down.

Thoughts?

@ArizArmeidi
Copy link
Owner

Thank you for submitting this, I already tested on my pixel 6A but only with a normal internet connection and I can't replicate this error. I'll try to investigate further when I have free time

@ArizArmeidi ArizArmeidi added the bug Something isn't working label Jan 4, 2023
@ArizArmeidi ArizArmeidi self-assigned this Jan 4, 2023
@ArizArmeidi
Copy link
Owner

fixed on 03cd5c0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants