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

Null error breaks app only in release builds #1127

Open
gruvw opened this issue Dec 26, 2022 · 0 comments
Open

Null error breaks app only in release builds #1127

gruvw opened this issue Dec 26, 2022 · 0 comments
Labels
problem An unconfirmed bug.

Comments

@gruvw
Copy link

gruvw commented Dec 26, 2022

There are the following error messages on the WEB DevTools console:

TypeError: null: type 'minified:Ue' is not a subtype of type 'minified:pb<dynamic>'
main.dart.js:23522     at Object.f (https://app.0byte.app/main.dart.js:4227:3)
main.dart.js:23522     at Object.aQE (https://app.0byte.app/main.dart.js:4842:18)
main.dart.js:23522     at iD.b1i [as a] (https://app.0byte.app/main.dart.js:4837:3)
main.dart.js:23522     at iD.b1w (https://app.0byte.app/main.dart.js:4809:10)
main.dart.js:23522     at aoM.$1 (https://app.0byte.app/main.dart.js:35328:28)
main.dart.js:23522     at bm.t (https://app.0byte.app/main.dart.js:34869:19)
main.dart.js:23522     at ab4.br (https://app.0byte.app/main.dart.js:73079:126)
main.dart.js:23522     at ab4.br (https://app.0byte.app/main.dart.js:75192:13)
main.dart.js:23522     at ab4.iR (https://app.0byte.app/main.dart.js:64570:9)
main.dart.js:23522     at ab4.iR (https://app.0byte.app/main.dart.js:64606:11)
Another exception was thrown: Instance of 'minified:eJ<void>'

There are no issues when running debug. They only appear when using flutter release.

Found someone with same issue: https://stackoverflow.com/questions/72676504/instance-of-minifiedpdynamic-type-minifiedpdynamic-is-not-a-subtype-o

Only happens on WEB target AND only when using release builds.

Steps to Reproduce

  1. Clone https://github.com/gruvw/0byte, git clone https://github.com/gruvw/0byte.git
  2. cd 0byte
  3. git reset --hard 5b751693a0bff45786110e2b491de17302682bea
  4. flutter run --release and select WEB target
  5. Follow steps to reproduce Null reference release only bug gruvw/0byte#3

Version

  • Platform: Web (issue is only present on web releases)
  • Flutter version: 3.3.10
  • Hive version: 2.2.3
@gruvw gruvw added the problem An unconfirmed bug. label Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem An unconfirmed bug.
Projects
None yet
Development

No branches or pull requests

1 participant