Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

IllegalStateException: Caller already has an active LocalOnlyHotspot request #255

Open
huangyz0918 opened this issue May 29, 2019 · 2 comments

Comments

@huangyz0918
Copy link
Contributor

Software and hardware versions

Android 8.0 Nexus 6P

Problem description

App crashes with log:

     Caused by: java.lang.IllegalStateException: Caller already has an active LocalOnlyHotspot request
        at android.os.Parcel.readException(Parcel.java:2012)
        at android.os.Parcel.readException(Parcel.java:1950)
        at android.net.wifi.IWifiManager$Stub$Proxy.startLocalOnlyHotspot(IWifiManager.java:1661)
        at android.net.wifi.WifiManager.startLocalOnlyHotspot(WifiManager.java:2002)
        at org.odk.share.views.ui.send.SendActivity.turnOnHotspot(SendActivity.java:386)
        at org.odk.share.views.ui.send.SendActivity.initiateHotspot(SendActivity.java:189)
        at org.odk.share.views.ui.send.SendActivity.startHotspot(SendActivity.java:166)
        at org.odk.share.views.ui.send.SendActivity.toggleHotspot(SendActivity.java:494)
        at org.odk.share.views.ui.send.SendActivity.checkLocationPermission(SendActivity.java:467)
        at org.odk.share.views.ui.send.SendActivity.onResume(SendActivity.java:306)
        at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1355)
        at android.app.Activity.performResume(Activity.java:7107)

Steps to reproduce the problem

  1. click the send button in main page.
  2. select a blank form to sent, hotspot will be enabled automatically.
  3. press back button and repeat send operation again with hotspot enabled.
  4. click send again.
  5. app crash.

Expected behavior

App not crash, with back button pressed, the hotspot session should be closed.

@ajay-prabhakar
Copy link
Contributor

ajay-prabhakar commented May 29, 2019

Yeah, I observed this behaviour previously but if #227 this will be solved when I checked with that PR

@huangyz0918
Copy link
Contributor Author

@Chromicle Cool, then we can closed this after that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants