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

When chatting continuously then message not receiving after some time, Getting exceptions. #48

Closed
Okdone opened this issue May 18, 2020 · 8 comments
Assignees
Labels
alpha bug Something isn't working

Comments

@Okdone
Copy link

Okdone commented May 18, 2020

I am using version: 0.2.1-alpha+1.
I am facing some issues.

When we are chatting with each other then after some time message not received and getting exception like this.
Getting error:

  1. Message is received but not display the error is like database:
    E/flutter ( 5438): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: "SqliteException(5): database is locked, database is locked (code 5)"
    E/flutter ( 5438): #0 PreparedStatement.execute (package:moor_ffi/src/impl/prepared_statement.dart:96:7)
    E/flutter ( 5438): Update README.md #1 _VmDelegate._runWithArgs (package:moor_ffi/src/vm_database.dart:72:12)
    E/flutter ( 5438): Example: single and multiple conversations #2 _VmDelegate.runInsert (package:moor_ffi/src/vm_database.dart:84:11)
    E/flutter ( 5438): Edit message and commands #3 _ExecutorWithQueryDelegate.runInsert. (package:moor/src/runtime/executor/helpers/engines.dart:69:19)
    E/flutter ( 5438): StreamChat dispose() tears down the Client connection #4 BasicLock.synchronized (package:synchronized/src/basic_lock.dart:32:26)
    E/flutter ( 5438): pubspec.yaml dependencies invalid path #5 _ExecutorWithQueryDelegate._synchronized (package:moor/src/runtime/executor/helpers/engines.dart:22:26)
    E/flutter ( 5438): ChannelListView NULL error when a channel has no messages #6 _ExecutorWithQueryDelegate.runInsert (package:moor/src/runtime/executor/helpers/engines.dart:67:12)
    E/flutter ( 5438): one to one channel example #7 LazyDatabase.runInsert (package:moor/src/utils/lazy_database.dart:60:17)
    E/flutter ( 5438): Force close on iOS #8 _MoorServer._runQuery (package:moor/src/runtime/isolate/server.dart:87:25)
    E/flutter ( 5438):
    E/flutter ( 5438): Add capabilities dependencies to the readme #9 _MoorServer._handleRequest (package:moor/src/runtime/isolate/server.dart:57:14)
    E/flutter ( 5438): Add day separator/grouping in MessageListView #10 IsolateCommunication.setRequestHandler. (package:moor/src/runtime/isolate/communication.dart:163:31)
    E/flutter ( 5438): Dark Theme #11 _RootZone.runUnaryGuarded (dart:async/zone.dart:1316:10)
    E/flutter ( 5438): MessageInput grows indefinitely #12 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:338:11)
    E/flutter ( 5438): fix for #12 #13 _DelayedData.perform (dart:async/stream_impl.dart:593:14)
    E/flutter ( 5438): MessageWidget now has user's name in the timestamp (like advertised design) #14 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:709:11)
    E/flutter ( 5438): Support for push notifications? #15 _PendingEvents.schedule. (dart:async/stream_impl.dart:669:7)
    E/flutter ( 5438): Dark theme #16 _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
    E/flutter ( 5438): add date separators #17 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
    E/flutter ( 5438): Keyboard opens on top of camera view #18 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
    E/flutter ( 5438): App crashes when trying to hit send before video finishes processing #19 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:175:5)

  2. If we satay on screen then after some time getting error like this.
    The getter 'values' was called on null.
    Receiver: null
    Tried calling: values

When the exception was thrown, this was the stack:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1 _MessageWidgetState._updateReactionPadding. (package:stream_chat_flutter/src/message_widget.dart:336:41)
#2 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1113:15)
#3 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1060:9)
#4 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:968:5)

@imtoori imtoori self-assigned this May 18, 2020
@imtoori imtoori added alpha bug Something isn't working labels May 18, 2020
@imtoori
Copy link
Contributor

imtoori commented May 18, 2020

does it happen every time?

@Okdone
Copy link
Author

Okdone commented May 18, 2020

Yes, it is happening every time

@imtoori
Copy link
Contributor

imtoori commented May 18, 2020

ok, thank you
could you try with the latest version 0.2.1-alpha+2?
I'm investing the problem

@Okdone
Copy link
Author

Okdone commented May 18, 2020

Ok, i will check with "0.2.1-alpha+2"

@Okdone
Copy link
Author

Okdone commented May 18, 2020

Have you released "0.2.1-alpha+2"?

@imtoori
Copy link
Contributor

imtoori commented May 18, 2020

yes, last week I released the new version

@Okdone
Copy link
Author

Okdone commented May 18, 2020

img_20200518

Can you check it, i can't find that version ("0.2.1-alpha+2").

@imtoori
Copy link
Contributor

imtoori commented May 18, 2020

I'm sorry, I forgot to push the tag.
For this kind of things I suggest looking at pub.dev https://pub.dev/packages/stream_chat_flutter

By the way, I'm releasing a new version with a small fix.

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

No branches or pull requests

2 participants