saber icon indicating copy to clipboard operation
saber copied to clipboard

Saber on iOS freezes when adding new note

Open rhizoma opened this issue 9 months ago • 12 comments

Before submitting an issue, please check the following

  • [x] I have searched for similar issues (both open and closed) and cannot find a duplicate
  • [x] I agree to follow the Code of Conduct

Describe the bug

Upon launching Saber, and adding a new note, the note screen opens but the tools don’t work, the app freezes & cannot be closed without swiping it away. Rebooting and relaunching doesn’t solve the problem. Drawing isn’t possible. Note the whiteboard function works.

iPad Pro 10.5, iOS 17.7.5. Saber v0.25.4 App Store 25040

Log: SEVERE at 2025-03-23 11:56:28.980807 PlatformException(bgTaskSchedulingFailed(Error Domain=BGTaskSchedulerErrorDomain Code=3 "(null)") error, Scheduling the task using BGTaskScheduler has failed.

This may be due to too many tasks being scheduled but not run.

See the error for details: Error Domain=BGTaskSchedulerErrorDomain Code=3 "(null)"., null, null) #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:652) #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:370) #2 Workmanager.registerOneOffTask (package:workmanager/src/workmanager.dart:192)

SEVERE at 2025-03-23 11:56:29.143135 PlatformException(DarwinAudioError, Failed to set source. For troubleshooting, see https://github.com/bluefireteam/audioplayers/blob/main/troubleshooting.md, AVPlayerItem.Status.failed on setSourceUrl: Unknown error, null)

To reproduce

  1. Launch Saber
  2. Press + button
  3. Press “new note”
  4. App freezes and the icons appear dimmer than those in the whiteboard function which does work.

Expected behavior

Ability to draw!

Saber version

v0.25.4 App Store 25040

Device

  • Device: iPad Pro 10.5
  • OS: 17.7.5

Anything else?

Whiteboard function works ok.

rhizoma avatar Mar 23 '25 16:03 rhizoma

I have the exact issue on my third-generation iPad Air running iPadOS 18.3.2. As for you, my Whiteboard. And the logs for me…

SEVERE at 2025-03-27 07:08:45.025222
PlatformException(bgTaskSchedulingFailed(Error Domain=BGTaskSchedulerErrorDomain Code=3 "(null)") error, Scheduling the task using BGTaskScheduler has failed.

This may be due to too many tasks being scheduled but not run.

See the error for details: Error Domain=BGTaskSchedulerErrorDomain Code=3 "(null)"., null, null)
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:652)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:370)
<asynchronous suspension>
#2      Workmanager.registerOneOffTask (package:workmanager/src/workmanager.dart:192)
<asynchronous suspension>


SEVERE at 2025-03-27 07:08:45.253868
PlatformException(DarwinAudioError, Failed to set source. For troubleshooting, see https://github.com/bluefireteam/audioplayers/blob/main/troubleshooting.md, AVPlayerItem.Status.failed on setSourceUrl: Unknown error, null)

Tear4Pixelation avatar Mar 26 '25 20:03 Tear4Pixelation

This seems to be a known issue with iOS media players. Below, I found details and a possible fix or hint for the issue. https://github.com/bluefireteam/audioplayers/issues/1546#issuecomment-1845187654

Tear4Pixelation avatar Mar 27 '25 06:03 Tear4Pixelation

@rhizoma temporary fix: disable pencil sound in settings. And before you freak out, Set the Main pen to no pressure ajustement (click on the icon and then set it to the stroke that is same thick everywhere.

Tear4Pixelation avatar Mar 27 '25 09:03 Tear4Pixelation

Image

Tear4Pixelation avatar Mar 27 '25 10:03 Tear4Pixelation

Thanks, but unfortunately, the fix doesn’t work for me. I turned off pencil sound and set the pen to ballpoint as suggested. Was only able to do this in the Whiteboard app. Still frozen in the Note app.

===

Log: SEVERE at 2025-03-30 08:18:12.425016 PlatformException(bgTaskSchedulingFailed(Error Domain=BGTaskSchedulerErrorDomain Code=3 "(null)") error, Scheduling the task using BGTaskScheduler has failed.

This may be due to too many tasks being scheduled but not run.

See the error for details: Error Domain=BGTaskSchedulerErrorDomain Code=3 "(null)"., null, null) #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:652) #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:370) #2 Workmanager.registerOneOffTask (package:workmanager/src/workmanager.dart:192)

SEVERE at 2025-03-30 08:18:12.471145 PlatformException(DarwinAudioError, Failed to set source. For troubleshooting, see https://github.com/bluefireteam/audioplayers/blob/main/troubleshooting.md, AVPlayerItem.Status.failed on setSourceUrl: Unknown error, null)

rhizoma avatar Mar 30 '25 12:03 rhizoma

OK I figured it out I changed multiple settings, the others I thought had no impact, but now with more testing, try changing prompt to rename note to true

Tear4Pixelation avatar Mar 31 '25 09:03 Tear4Pixelation

Turning on “Prompt you to rename new notes” solved the problem, thanks!

rhizoma avatar Apr 18 '25 11:04 rhizoma

I have this issue and the tick box works for root files but not creating in folders. Just get white screen then hangs, have to crash out (Also have on android with no issues)

CybSecUK avatar May 06 '25 18:05 CybSecUK

I ran into this a while ago and disabled the prompting for new name on note creation. Unfortunately, the issue appeared again today and I can't create any new notes any more. Right before, I created two folders and moved some files. I am facing this on iOS, but also using the Mac OS client.

fukajan avatar May 08 '25 12:05 fukajan

I have this issue and the tick box works for root files but not creating in folders. Just get white screen then hangs, have to crash out (Also have on android with no issues)

I can confirm that the „rename on create“-workaround only works on the root folder.

daCaPo avatar May 17 '25 23:05 daCaPo

also in v0.25.6

TakeitISI81 avatar May 28 '25 09:05 TakeitISI81

v0.25.8 it's fixed, thx

TakeitISI81 avatar Jun 05 '25 08:06 TakeitISI81