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

[BUG] Initialisation fatally crashes app in v7.0.1 #93

Closed
4 tasks done
zigapovhe opened this issue Feb 12, 2023 · 6 comments
Closed
4 tasks done

[BUG] Initialisation fatally crashes app in v7.0.1 #93

zigapovhe opened this issue Feb 12, 2023 · 6 comments
Labels
bug This issue reports broken functionality or another error invalid The reported bug cannot be reproduced, or the feature request is impossible or already exists

Comments

@zigapovhe
Copy link

What is the bug?

When I updated your package to v7.0.0 or v7.0.1 and migrated initialisation function, I get following errors when I try to compile my app: Screenshot

It looks like method whereNotNull is not defined

What is the expected behaviour?

To successfully compile my app. It worked before the package upgrade.

How can we reproduce this issue?

/

Do you have a potential solution?

/

Can you provide any other information?

Flutter 3.7.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 9944297138 (3 days ago) • 2023-02-08 15:46:04 -0800
Engine • revision 248290d6d5
Tools • Dart 2.19.2 • DevTools 2.20.1

flutter_map_tile_caching: ^7.0.1
flutter_map: ^3.1.0

Platforms Affected

Android, iOS

Severity

Fatal: Causes the application to crash

Frequency

Consistently: Always occurs at the same time and location

Requirements

@zigapovhe zigapovhe added bug This issue reports broken functionality or another error needs verification This needs to be verified/tested before fixes (or not) can be made labels Feb 12, 2023
@JaffaKetchup
Copy link
Owner

Hey, thanks for the report :)
I'll investigate today and try to release a fix within the next 24 hrs. Please use v7 for now.

@JaffaKetchup
Copy link
Owner

Hi @zigapovhe,
I can't reproduce this, and GitHub Actions has successfully built the example application. It looks like their may be something off in your configuration?
Thanks for the report though, it has made me realise another small mistake that needs to be fixed.

@JaffaKetchup JaffaKetchup changed the title App does not launch on v7.0.1[BUG] [BUG] Initialisation fatally crashes app in v7.0.1 Feb 13, 2023
@NomiAdam
Copy link

NomiAdam commented Feb 14, 2023

Hello 👋 I had the exact same issue as stated by @zigapovhe.

To fix the issue I had explicitly define stream_transform: 2.1.0 in pubspec.yaml

Hope it might help

@JaffaKetchup
Copy link
Owner

@NomiAdam Thanks for joining in.

That's really strange, I've run the flutter pub outdated command, and GitHub Actions appropriately builds the project. I also know that not all users are having this issue, so there must be some kind of project config combination that causes this issue.
Are you doing anything unusual, like using Flutter's beta branch?

For now, I'll pin this to the top of the issue tracker, but there's nothing I can do about it.

@JaffaKetchup JaffaKetchup added blocked This issue's resolution can't be worked on right now and removed needs verification This needs to be verified/tested before fixes (or not) can be made labels Feb 15, 2023
@zigapovhe
Copy link
Author

@JaffaKetchup Good news here. After @NomiAdam mentioned the stream_transform package, I've checked in my pubspec.lock file and noticed that the stream_transform package was at the v2.0.0 version. Updated your package to v7.1.0, run flutter pub get, no changes. Even if I'd run flutter pub get countless times, the stream_transform package was still at v2.0.0 (but other packages did change if there is an update available). Deleting pubspec.lock file and re-running flutter pub get fixed the issue without manually importing the stream_transform package. (After rechecking pubspec.lock file, I can confirm that the stream_transform package is now at v2.1.0) I can also confirm that all of your package v7 versions (including v7.0.0) work now as expected. Issue can be probably closed, since there is probably nothing wrong with your package but looks like some weird flutter bug?

@JaffaKetchup
Copy link
Owner

@zigapovhe Great! Might be a caching issue of some kind.

@JaffaKetchup JaffaKetchup added invalid The reported bug cannot be reproduced, or the feature request is impossible or already exists and removed blocked This issue's resolution can't be worked on right now labels Feb 15, 2023
@JaffaKetchup JaffaKetchup closed this as not planned Won't fix, can't repro, duplicate, stale Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue reports broken functionality or another error invalid The reported bug cannot be reproduced, or the feature request is impossible or already exists
Projects
None yet
Development

No branches or pull requests

3 participants