Skip to content

Back navigation cause black screen #290

@BednarPe94

Description

@BednarPe94

ThingsBoard Platform Version

4.2.1.1 and 4.3.0.1

Affected platforms

Both

ThingsBoard Platform Type

Self-hosted ThingsBoard

App Release Version

1.8.0

App type

Custom build app

Steps to reproduce

  1. Open the app
  2. Login
  3. app redirects to home page - which is custom dashboard
  4. there is back navigation button at the left top of the screen
  5. if user clicks on the back navigation button then black screen appears and app needs to be restarted
Image

The home page custom dashboard is set in mobile center/bundle/layout in Web Thingsboard

Image

Expected results

There isn't suppose to be back navigation button on home page, or it needs to be checked if there are any pages in navigation stack

Actual results

Black screen appears on click of back navigation button - app needs to be restarted.

Problematic Files (Optional)

No response

Code sample

Code sample
[Paste your relevant code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

App Logs

App Logs
E/flutter ( 4581): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: 'package:go_router/src/delegate.dart': Failed assertion: line 175 pos 7: 'currentConfiguration.isNotEmpty': You have popped the last page off of the stack, there are no pages left to show
E/flutter ( 4581): #0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:63:4)
E/flutter ( 4581): #1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:45:5)
E/flutter ( 4581): #2      GoRouterDelegate._debugAssertMatchListNotEmpty (package:go_router/src/delegate.dart:175:7)
E/flutter ( 4581): #3      GoRouterDelegate._completeRouteMatch (package:go_router/src/delegate.dart:196:5)
E/flutter ( 4581): #4      GoRouterDelegate._handlePopPageWithRouteMatch (package:go_router/src/delegate.dart:154:7)
E/flutter ( 4581): #5      _CustomNavigatorState._handlePopPage (package:go_router/src/builder.dart:447:42)
E/flutter ( 4581): #6      NavigatorState.pop (package:flutter/src/widgets/navigator.dart:5594:28)
E/flutter ( 4581): #7      _SingleDashboardViewState.build.<anonymous closure> (package:thingsboard_app/modules/dashboard/presentation/view/single_dashboard_view.dart:63:39)
E/flutter ( 4581): <asynchronous suspension>
E/flutter ( 4581): 
I/Choreographer( 4581): Skipped 9000 frames!  The application may be doing too much work on its main thread.
[AndroidInAppWebViewWidget] (android) AndroidInAppWebViewWidget ID 0 calling "dispose" using []
I/flutter ( 4581):   ERROR ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter ( 4581):   ERROR │ ⛔ Error during dispose: A AndroidInAppWebViewController was used after being disposed.
I/flutter ( 4581):   ERROR │ ⛔ Once the AndroidInAppWebViewController has been disposed, it can no longer be used.
I/flutter ( 4581):   ERROR └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Flutter Doctor output (Optional)

Doctor output
[Paste your flutter doctor -v output here]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions