nextcloud / nextcloud/notes-ios

Crash when opening a note

Open
#165 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Swift
Stars
73
Forks
22
PR merge metrics
No merged PRs in 30d

Description

I'm currently testing Notes on both the website and using the iOS app. It seems that 8 or 9 times out of 10, the iOS app crashes when opening a note.

Steps to reproduce
  1. Open nextcloud notes
  2. Tap on a note
Expected behaviour

The note opens

Actual behaviour

Application crashes, return to the desktop

Server configuration

Web server: Nginx

Database: Maria

PHP version: 8.4

Nextcloud version: 32.0.2

Nextcloud notes version: 4.12.4

Nextcloud iOS: 4.4.0 (3)

I've check the Nextcloud logs and nothing shows there. I've also checked the iOS logs with idevicesyslog but nothing is displayed at the time of the crash. Here are the last few lines:

Nov 28 16:38:03.957050 Nextcloud Notes(CoreMotion)[11042] <Notice>: [CLIoHidInterface] Property for usage pair {65280, 9}: {GyroProperties = {
    GyroFactoryMode = 0;
    GyroMeasurementRange = 2000;
    GyroXAxisOffset = 0;
    GyroYAxisOffset = 0;
    GyroZAxisOffset = 0;
}} was set successfully
Nov 28 16:38:03.957078 Nextcloud Notes(CoreMotion)[11042] <Debug>: [CLIoHidInterface] Apply all dirty device properties
Nov 28 16:38:03.958092 Nextcloud Notes(CoreMotion)[11042] <Notice>: [CLIoHidInterface] Property for usage pair {65280, 9}: {ReportInterval = 0} was set successfully
Nov 28 16:38:03.958148 Nextcloud Notes(CoreMotion)[11042] <Debug>: [CLIoHidInterface] Apply all dirty device properties
Nov 28 16:38:03.958363 Nextcloud Notes(CoreFoundation)[11042] <Debug>: Bundle: <private>, key: CONTEXT_MENU_LOADING, value: Loading…, table: Localizable, localizationNames: (null), result: Loading…
Nov 28 16:38:03.958507 Nextcloud Notes(CoreMotion)[11042] <Notice>: [CLIoHidInterface] Property for usage pair {65280, 9}: {GyroExtLevelTriggerSync = 0} was set successfully
Nov 28 16:38:03.958817 Nextcloud Notes(CoreMotion)[11042] <Debug>: [CLIoHidInterface] Apply all dirty device properties
Nov 28 16:38:03.959018 Nextcloud Notes(CoreMotion)[11042] <Notice>: [CLIoHidInterface] Property for usage pair {65280, 9}: {BatchInterval = 15000} was set successfully
Nov 28 16:38:03.959169 Nextcloud Notes(CoreMotion)[11042] <Info>: Setting gyro batch interval to: 15000 us
Nov 28 16:38:03.959190 Nextcloud Notes(CoreMotion)[11042] <Info>: Set gyro data update interval to 0.000000,dt,0.000000
Nov 28 16:38:03.959238 Nextcloud Notes(CoreMotion)[11042] <Info>: Setting accelerometer update interval to 0.000000
Nov 28 16:38:03.959276 Nextcloud Notes(CoreMotion)[11042] <Debug>: [CLIoHidInterface] Apply all dirty device properties
Nov 28 16:38:03.959703 Nextcloud Notes(CoreMotion)[11042] <Notice>: [CLIoHidInterface] Property for usage pair {65280, 3}: {ReportInterval = 0} was set successfully
Nov 28 16:38:03.959732 Nextcloud Notes(CoreMotion)[11042] <Info>: Setting batch interval to 0.000000
Nov 28 16:38:03.959742 Nextcloud Notes(CoreMotion)[11042] <Debug>: [CLIoHidInterface] Apply all dirty device properties
Nov 28 16:38:03.959918 Nextcloud Notes(CoreMotion)[11042] <Notice>: [CLIoHidInterface] Property for usage pair {65280, 3}: {BatchInterval = 10000} was set successfully
Nov 28 16:38:03.959958 Nextcloud Notes(CoreMotion)[11042] <Debug>: [CLIoHidInterface] Apply all dirty device properties
Nov 28 16:38:03.960573 Nextcloud Notes(CoreMotion)[11042] <Notice>: [CLIoHidInterface] Property for usage pair {65280, 9}: {GyroProperties = {
    GyroFactoryMode = 0;
    GyroMeasurementRange = 2000;
    GyroXAxisOffset = 0;
    GyroYAxisOffset = 0;
    GyroZAxisOffset = 0;
}} was set successfully
Nov 28 16:38:03.960606 Nextcloud Notes(CoreMotion)[11042] <Debug>: [CLIoHidInterface] Apply all dirty device properties
Nov 28 16:38:03.960770 Nextcloud Notes(CoreMotion)[11042] <Notice>: [CLIoHidInterface] Property for usage pair {65280, 9}: {ReportInterval = 0} was set successfully
Nov 28 16:38:03.960801 Nextcloud Notes(CoreMotion)[11042] <Debug>: [CLIoHidInterface] Apply all dirty device properties
Nov 28 16:38:03.960998 Nextcloud Notes(CoreMotion)[11042] <Notice>: [CLIoHidInterface] Property for usage pair {65280, 9}: {GyroExtLevelTriggerSync = 0} was set successfully
Nov 28 16:38:03.961091 Nextcloud Notes(CoreMotion)[11042] <Debug>: [CLIoHidInterface] Apply all dirty device properties
Nov 28 16:38:03.961297 Nextcloud Notes(CoreMotion)[11042] <Notice>: [CLIoHidInterface] Property for usage pair {65280, 9}: {BatchInterval = 15000} was set successfully
Nov 28 16:38:03.961312 Nextcloud Notes(CoreMotion)[11042] <Info>: Setting gyro batch interval to: 15000 us
Nov 28 16:38:03.961324 Nextcloud Notes(CoreMotion)[11042] <Debug>: [CLGyro] x,<private>,y,<private>,z,<private>,timestamp,<private>,subType,<private>,sampleNum%3,<private>,triggerEnabled,<private>,triggerOn,<private>,now,<private>
Nov 28 16:38:03.961335 Nextcloud Notes(CoreMotion)[11042] <Debug>: [CLGyro] x,<private>,y,<private>,z,<private>,timestamp,<private>,subType,<private>,sampleNum%3,<private>,triggerEnabled,<private>,triggerOn,<private>,now,<private>
Nov 28 16:38:04.017277 Nextcloud Notes(CoreAnalytics)[11042] <Debug>: <private> <private>
Nov 28 16:38:04.071125 Nextcloud Notes(CoreAnalytics)[11042] <Debug>: <private> <private>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the crash when opening a note in the iOS app and inspect available iOS crash diagnostics, since the issue reports no useful server or idevicesyslog output. Done means notes can be opened reliably without the application returning to the desktop.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.