Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.
This repository was archived by the owner on May 3, 2024. It is now read-only.

Terrible message: Skipped 119 frames! The application may be doing too much work on its main thread. #27

@SergeyBurlaka

Description

@SergeyBurlaka

Hi there is a very fat issue in you lib.

First i am registrate service :
private var disposableBonjourBradcast: Disposable = Disposables.empty()

val chatNameCode = PrefProvider.getInstance().currentTourCode
      val broadcastConfig = BonjourBroadcastConfig(
              type = "_$chatNameCode._tcp",
              name = PrefProvider.getInstance().userId,
              address = inetAddress,
              port = tcpServerPort,
              txtRecords = mapOf(
                      HOST to inetAddress.hostAddress!!,
                      TCP_PORT to tcpServerPort.toString(),
                      UDP_PORT to udpServerPort.toString(),
                      USER_ID to PrefProvider.getInstance().userId,
                      USER_TYPE to PrefProvider.getInstance().myCurrentRole,
                      USER_NAME to PrefProvider.getInstance().userName,

              ))

      disposableBonjourBradcast = rxBonjour.newBroadcast(broadcastConfig)
              .onErrorComplete { throw ConnectionException(it) }
              .subscribeOn(Schedulers.io())
              .subscribe()

It is work ok.

But when i try to unsubscribe for re -register service for example to pull to-refresh by this :

disposableBonjourBradcast.dispose()

My screen became freeze some during milliseconds. In logcat i see terrible message:

I/Choreographer: Skipped 119 frames! The application may be doing too much work on its main thread.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions