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常驻后台再打开,出现了崩溃。 #12659

Closed
4 tasks done
sleep1234 opened this issue Mar 8, 2024 · 3 comments
Closed
4 tasks done

APP常驻后台再打开,出现了崩溃。 #12659

sleep1234 opened this issue Mar 8, 2024 · 3 comments
Labels

Comments

@sleep1234
Copy link

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

长时间保持后台,然后再打开

Expected behaviour

然后就出现了故障报错

Actual behaviour

保持后台打开之后突然就这样了。

Android version

安卓14

Device brand and model

小米14Pro

Stock or custom OS?

Stock

Nextcloud android app version

3.28.0

Nextcloud server version

28.0.3

Using a reverse proxy?

No

Android logs

Cause of error

Exception in thread "main" java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.util.Stack.pop()' on a null object reference
    at com.owncloud.android.ui.activity.FileDisplayActivity.popSortListGroupVisibility(FileDisplayActivity.java:2505)
    at com.owncloud.android.ui.activity.FileDisplayActivity.popBack(FileDisplayActivity.java:1048)
    at com.owncloud.android.ui.activity.FileDisplayActivity.onBackPressed(FileDisplayActivity.java:1003)
    at android.app.Activity.onKeyUp(Activity.java:4174)
    at android.view.KeyEvent.dispatch(KeyEvent.java:2958)
    at android.app.Activity.dispatchKeyEvent(Activity.java:4547)
    at androidx.core.app.ComponentActivity.superDispatchKeyEvent(ComponentActivity.java:120)
    at androidx.core.view.KeyEventDispatcher.dispatchKeyEvent(KeyEventDispatcher.java:85)
    at androidx.core.app.ComponentActivity.dispatchKeyEvent(ComponentActivity.java:138)
    at androidx.appcompat.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:604)
    at androidx.appcompat.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:60)
    at androidx.appcompat.app.AppCompatDelegateImpl$AppCompatWindowCallback.dispatchKeyEvent(AppCompatDelegateImpl.java:3413)
    at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:424)
    at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:7696)
    at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:7544)
    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6935)
    at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6992)
    at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6958)
    at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:7123)
    at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6966)
    at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:7180)
    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6939)
    at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6992)
    at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6958)
    at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6966)
    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6939)
    at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6992)
    at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6958)
    at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:7156)
    at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:7384)
    at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:4355)
    at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:3757)
    at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:3748)
    at android.view.inputmethod.InputMethodManager.-$$Nest$mfinishedInputEvent(Unknown Source:0)
    at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:4332)
    at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:154)
    at android.os.MessageQueue.nativePollOnce(Native Method)
    at android.os.MessageQueue.next(MessageQueue.java:341)
    at android.os.Looper.loopOnce(Looper.java:176)
    at android.os.Looper.loop(Looper.java:318)
    at android.app.ActivityThread.main(ActivityThread.java:8669)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)

App information

  • ID: com.nextcloud.client
  • Version: 30280090
  • Build flavor: gplay

Device information

  • Brand: Xiaomi
  • Device: shennong
  • Model: 23116PN5BC
  • Id: UKQ1.230804.001
  • Product: shennong

Firmware

  • SDK: 34
  • Release: 14
  • Incremental: V816.0.24.2.19.DEV

Server error logs

No response

Additional information

No response

@sleep1234 sleep1234 added the bug label Mar 8, 2024
@ZetaTom
Copy link
Collaborator

ZetaTom commented Mar 11, 2024

Thank you for reporting this issue. Please note that issues and bug reports should generally be submitted in English.

Guessing from the provided log, the problem seems to originate from previousSortGroupState. As this was fixed (#12540) and subsequently removed in #12584, it should be working on master.

@Unpublished
Copy link
Contributor

Since the same error stack is mentioned in #12649 I think this issue here should be closed as dupe.

@ZetaTom
Copy link
Collaborator

ZetaTom commented Jun 19, 2024

Duplicate of #12649; should be fixed by #12540 and #12584.

@ZetaTom ZetaTom closed this as completed Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants