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

App Crashes When Canceling SMB Connection After Delay #4299

Open
ScenarioKG opened this issue Dec 13, 2024 · 0 comments
Open

App Crashes When Canceling SMB Connection After Delay #4299

ScenarioKG opened this issue Dec 13, 2024 · 0 comments
Labels
Area-SMB Related to SMB connections. Issue-Bug Related unexpected behavior or something worth investigating. Issue-Easy (good first issue) Beginners welcome! Issues with relative low difficulty.

Comments

@ScenarioKG
Copy link

Describe the Bug
The app crashes when canceling an SMB connection after a prolonged wait time.

Steps to Reproduce

  1. Click on ‘+’.
  2. Click on ‘Cloud Connection’.
  3. Select ‘SMB Connection’.
  4. Wait for an extended period.
  5. Click on the ‘Cancel’ button.
  6. Click on ‘+’ again.
  7. Click on ‘Cloud Connection’.
  8. Select ‘SMB Connection’.
  9. Click on the ‘Cancel’ button.

Expected Behavior
The “Searching for devices” dialog should disappear without causing a crash.

Video

video.mov

Smartphone (please complete the following information):

  • Device: [Google Pixel 5]
  • OS: [Android 14]
  • Rooted: [No]
  • Version: [v3.10]

Exception

  • App Name: Amaze File Manager
  • Package: com.amaze.filemanager
  • Version: 3.10
  • User Action: UI Error
  • Request: Application crash
  • OS: Linux Android 14 - 34
  • Device: redfin
  • Model: Pixel 5
  • Product: redfin
Crash log

io.reactivex.exceptions.UndeliverableException: The exception could not be delivered to the consumer because it has already canceled/disposed the flow or the exception has nowhere to go to begin with. Further reading: https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0#error-handling | kotlin.UninitializedPropertyAccessException: lateinit property disposable has not been initialized
	at io.reactivex.plugins.RxJavaPlugins.onError(RxJavaPlugins.java:367)
	at io.reactivex.internal.observers.DisposableLambdaObserver.dispose(DisposableLambdaObserver.java:88)
	at io.reactivex.internal.disposables.DisposableHelper.dispose(DisposableHelper.java:124)
	at io.reactivex.internal.observers.LambdaObserver.dispose(LambdaObserver.java:102)
	at com.amaze.filemanager.ui.dialogs.SmbSearchDialog.onCreateDialog$lambda$0(SmbSearchDialog.kt:83)
	at com.amaze.filemanager.ui.dialogs.SmbSearchDialog.$r8$lambda$g1A-0ZtDliiR6TAsZVli3dLgYMU(Unknown Source:0)
	at com.amaze.filemanager.ui.dialogs.SmbSearchDialog$$ExternalSyntheticLambda0.onClick(Unknown Source:2)
	at com.afollestad.materialdialogs.MaterialDialog.onClick(MaterialDialog.java:433)
	at android.view.View.performClick(View.java:7659)
	at android.view.View.performClickInternal(View.java:7636)
	at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
	at android.view.View$PerformClick.run(View.java:30156)
	at android.os.Handler.handleCallback(Handler.java:958)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:205)
	at android.os.Looper.loop(Looper.java:294)
	at android.app.ActivityThread.main(ActivityThread.java:8177)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
Caused by: kotlin.UninitializedPropertyAccessException: lateinit property disposable has not been initialized
	at com.amaze.filemanager.utils.smb.SmbDeviceScannerObservable.stop(SmbDeviceScannerObservable.kt:72)
	at com.amaze.filemanager.ui.dialogs.SmbSearchDialog.onCreateDialog$lambda$2(SmbSearchDialog.kt:106)
	at com.amaze.filemanager.ui.dialogs.SmbSearchDialog.$r8$lambda$e-jPftKWNVfVAKamaTIyu395MpA(Unknown Source:0)
	at com.amaze.filemanager.ui.dialogs.SmbSearchDialog$$ExternalSyntheticLambda2.run(Unknown Source:2)
	at io.reactivex.internal.observers.DisposableLambdaObserver.dispose(DisposableLambdaObserver.java:85)
	... 18 more


@VishnuSanal VishnuSanal added Issue-Bug Related unexpected behavior or something worth investigating. Issue-Easy (good first issue) Beginners welcome! Issues with relative low difficulty. Area-SMB Related to SMB connections. labels Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-SMB Related to SMB connections. Issue-Bug Related unexpected behavior or something worth investigating. Issue-Easy (good first issue) Beginners welcome! Issues with relative low difficulty.
Projects
None yet
Development

No branches or pull requests

2 participants