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

Error while disabling "Power Save Check" in the Auto Upload options: android.content.res.Resources$NotFoundException: Resource ID [..] type #0x12 is not valid #13404

Closed
4 tasks done
Dvaedfug opened this issue Aug 12, 2024 · 3 comments · Fixed by #14002
Labels
bug feature: auto upload performance: misc lag, ANR, etc and rarer exceptions/errors that don't have their own labels stable-3.30

Comments

@Dvaedfug
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

Cause of error

Exception in thread "main" android.content.res.Resources$NotFoundException: Resource ID #0x7f0a0401 type #0x12 is not valid
    at android.content.res.Resources.loadXmlResourceParser(Resources.java:2299)
    at android.content.res.Resources.getLayout(Resources.java:1187)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:532)
    at androidx.appcompat.app.AlertController.setupCustomContent(AlertController.java:644)
    at androidx.appcompat.app.AlertController.setupView(AlertController.java:475)
    at androidx.appcompat.app.AlertController.installContent(AlertController.java:233)
    at androidx.appcompat.app.AlertDialog.onCreate(AlertDialog.java:278)
    at android.app.Dialog.dispatchOnCreate(Dialog.java:421)
    at android.app.Dialog.show(Dialog.java:315)
    at com.owncloud.android.ui.activity.SyncedFoldersActivity.showPowerCheckDialog(SyncedFoldersActivity.kt:233)
    at com.owncloud.android.ui.activity.SyncedFoldersActivity.onDisablePowerSaveCheckClicked(SyncedFoldersActivity.kt:217)
    at com.owncloud.android.ui.activity.SyncedFoldersActivity.onCreateOptionsMenu$lambda$1(SyncedFoldersActivity.kt:210)
    at com.owncloud.android.ui.activity.SyncedFoldersActivity.$r8$lambda$q58-_n5tvnvo7t7SwBQVBpaIAdU(Unknown Source:0)
    at com.owncloud.android.ui.activity.SyncedFoldersActivity$$ExternalSyntheticLambda4.onMenuItemClick(D8$$SyntheticClass:0)
    at androidx.appcompat.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:153)
    at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:984)
    at androidx.appcompat.view.menu.MenuPopup.onItemClick(MenuPopup.java:128)
    at android.widget.AdapterView.performItemClick(AdapterView.java:330)
    at android.widget.AbsListView.performItemClick(AbsListView.java:1261)
    at android.widget.AbsListView$PerformClick.run(AbsListView.java:3388)
    at android.os.Handler.handleCallback(Handler.java:883)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loop(Looper.java:214)
    at android.app.ActivityThread.main(ActivityThread.java:7398)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:945)

App information

  • ID: com.nextcloud.android.beta
  • Version: 20240807
  • Build flavor: versionDev

Device information

  • Brand: Xiaomi
  • Device: polaris
  • Model: Mi MIX 2S
  • Id: QQ3A.200805.001
  • Product: polaris

Firmware

  • SDK: 29
  • Release: 10
  • Incremental: eng.yyy233.20200815.073329

Expected behaviour

Cause of error

Exception in thread "main" android.content.res.Resources$NotFoundException: Resource ID #0x7f0a0401 type #0x12 is not valid
    at android.content.res.Resources.loadXmlResourceParser(Resources.java:2299)
    at android.content.res.Resources.getLayout(Resources.java:1187)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:532)
    at androidx.appcompat.app.AlertController.setupCustomContent(AlertController.java:644)
    at androidx.appcompat.app.AlertController.setupView(AlertController.java:475)
    at androidx.appcompat.app.AlertController.installContent(AlertController.java:233)
    at androidx.appcompat.app.AlertDialog.onCreate(AlertDialog.java:278)
    at android.app.Dialog.dispatchOnCreate(Dialog.java:421)
    at android.app.Dialog.show(Dialog.java:315)
    at com.owncloud.android.ui.activity.SyncedFoldersActivity.showPowerCheckDialog(SyncedFoldersActivity.kt:233)
    at com.owncloud.android.ui.activity.SyncedFoldersActivity.onDisablePowerSaveCheckClicked(SyncedFoldersActivity.kt:217)
    at com.owncloud.android.ui.activity.SyncedFoldersActivity.onCreateOptionsMenu$lambda$1(SyncedFoldersActivity.kt:210)
    at com.owncloud.android.ui.activity.SyncedFoldersActivity.$r8$lambda$q58-_n5tvnvo7t7SwBQVBpaIAdU(Unknown Source:0)
    at com.owncloud.android.ui.activity.SyncedFoldersActivity$$ExternalSyntheticLambda4.onMenuItemClick(D8$$SyntheticClass:0)
    at androidx.appcompat.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:153)
    at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:984)
    at androidx.appcompat.view.menu.MenuPopup.onItemClick(MenuPopup.java:128)
    at android.widget.AdapterView.performItemClick(AdapterView.java:330)
    at android.widget.AbsListView.performItemClick(AbsListView.java:1261)
    at android.widget.AbsListView$PerformClick.run(AbsListView.java:3388)
    at android.os.Handler.handleCallback(Handler.java:883)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loop(Looper.java:214)
    at android.app.ActivityThread.main(ActivityThread.java:7398)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:945)

App information

  • ID: com.nextcloud.android.beta
  • Version: 20240807
  • Build flavor: versionDev

Device information

  • Brand: Xiaomi
  • Device: polaris
  • Model: Mi MIX 2S
  • Id: QQ3A.200805.001
  • Product: polaris

Firmware

  • SDK: 29
  • Release: 10
  • Incremental: eng.yyy233.20200815.073329

Actual behaviour

Cause of error

Exception in thread "main" android.content.res.Resources$NotFoundException: Resource ID #0x7f0a0401 type #0x12 is not valid
    at android.content.res.Resources.loadXmlResourceParser(Resources.java:2299)
    at android.content.res.Resources.getLayout(Resources.java:1187)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:532)
    at androidx.appcompat.app.AlertController.setupCustomContent(AlertController.java:644)
    at androidx.appcompat.app.AlertController.setupView(AlertController.java:475)
    at androidx.appcompat.app.AlertController.installContent(AlertController.java:233)
    at androidx.appcompat.app.AlertDialog.onCreate(AlertDialog.java:278)
    at android.app.Dialog.dispatchOnCreate(Dialog.java:421)
    at android.app.Dialog.show(Dialog.java:315)
    at com.owncloud.android.ui.activity.SyncedFoldersActivity.showPowerCheckDialog(SyncedFoldersActivity.kt:233)
    at com.owncloud.android.ui.activity.SyncedFoldersActivity.onDisablePowerSaveCheckClicked(SyncedFoldersActivity.kt:217)
    at com.owncloud.android.ui.activity.SyncedFoldersActivity.onCreateOptionsMenu$lambda$1(SyncedFoldersActivity.kt:210)
    at com.owncloud.android.ui.activity.SyncedFoldersActivity.$r8$lambda$q58-_n5tvnvo7t7SwBQVBpaIAdU(Unknown Source:0)
    at com.owncloud.android.ui.activity.SyncedFoldersActivity$$ExternalSyntheticLambda4.onMenuItemClick(D8$$SyntheticClass:0)
    at androidx.appcompat.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:153)
    at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:984)
    at androidx.appcompat.view.menu.MenuPopup.onItemClick(MenuPopup.java:128)
    at android.widget.AdapterView.performItemClick(AdapterView.java:330)
    at android.widget.AbsListView.performItemClick(AbsListView.java:1261)
    at android.widget.AbsListView$PerformClick.run(AbsListView.java:3388)
    at android.os.Handler.handleCallback(Handler.java:883)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loop(Looper.java:214)
    at android.app.ActivityThread.main(ActivityThread.java:7398)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:945)

App information

  • ID: com.nextcloud.android.beta
  • Version: 20240807
  • Build flavor: versionDev

Device information

  • Brand: Xiaomi
  • Device: polaris
  • Model: Mi MIX 2S
  • Id: QQ3A.200805.001
  • Product: polaris

Firmware

  • SDK: 29
  • Release: 10
  • Incremental: eng.yyy233.20200815.073329

Android version

10

Device brand and model

mimix2s

Stock or custom OS?

Custom (explain in "additional information")

Nextcloud android app version

20240807

Nextcloud server version

1111

Using a reverse proxy?

I don't know

Android logs

No response

Server error logs

No response

Additional information

No response

@Dvaedfug Dvaedfug added the bug label Aug 12, 2024
@joshtrichards joshtrichards changed the title bug Resources$NotFoundException after showPowerCheckDialog() Aug 13, 2024
@joshtrichards joshtrichards added performance: misc lag, ANR, etc and rarer exceptions/errors that don't have their own labels stable-3.30 labels Aug 13, 2024
@joshtrichards joshtrichards changed the title Resources$NotFoundException after showPowerCheckDialog() Error while disabling "Power Save Check" in the Auto Upload options: android.content.res.Resources$NotFoundException: Resource ID [..] type #0x12 is not valid Nov 8, 2024
@joshtrichards joshtrichards marked this as a duplicate of #14091 Dec 28, 2024
@K4r0qtuYNE5G4qgZ
Copy link

I have the same issue with additionally Nextcloud App going into a Fingerprint not recognized loop until I force stop it and reload.

@joshtrichards joshtrichards marked this as a duplicate of #14266 Dec 30, 2024
@guilegatan
Copy link

+1
Same problem here.

Nextcloud App version 3.30.6
Android 11 on Samsung A40 (SM-A405FN/DS)

@joshtrichards
Copy link
Member

Fix is in 3.30.7 published today

@joshtrichards joshtrichards marked this as a duplicate of #14289 Jan 7, 2025
@ZetaTom ZetaTom marked this as a duplicate of #14330 Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug feature: auto upload performance: misc lag, ANR, etc and rarer exceptions/errors that don't have their own labels stable-3.30
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants