Pink vertical line on every page in landscape mode

Open
#193 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, kotlin
Domain
mobile

Research direction

Start by reproducing the issue on a BOOX device in landscape mode, then inspect the DrawCanvas refresh path referenced in the diagnostic logs, especially DrawCanvas.kt around lines 635 and 770. Compare the on-screen line with the paginated and unpaginated PDF exports and PNG/JPEG exports; done means the unwanted line no longer appears in the app or exports.

Written by the indexing model from the issue text.

Description

To reproduce (the order doesnt matter):

  1. Create new page
  2. Put the device in landscape mode

Extra info:
When not in landscape mode it doesn't appear. It is around (1738, y) coordinates (exactly where the showed pagination line ends.). and it goes down to almost 3 subpage length.

If exported as PDF with pagination, it appears on every page. Without pagination it only appears for ~3 subpage length, then it disappears. (I added the two produced PDFs)
not_paginated.pdf
paginated.pdf

If exported as PNG or JPEG the line only goes down to 1 subpage length.

However the line is always visible in the app, even after the 3 subpage length (that's why the PDFs are this long, because I didn't know where to stop).

(Honestly I love this app and very grateful that all of you guys are working on it, it carried this whole semester.)
(Edits: This is my first github issue idk what I'm doing)

Device Info
  • Device: ONYX NoteAir3C (Android 12, SDK 32)

  • Device Name: com.onyx.android.sdk.device.SDMDevice

  • System: 3.6 GB RAM | 51.1 GB storage | Battery: 92% | Threads: 91

  • Memory: 34MB used by pages | 11.2 MB used by app | 256.0 MB max

  • Storage: 148.7 MB used by app | 40.7 GB free

  • Version: 0.1.9 (release build)

  • Current time: 2026-01-16 01:20

Diagnostic Logs

🟠 01-16 01:20:28.012 W DrawCanvas: Not in drawing mode -- refreshUi

🟠 01-16 01:20:26.747 W FileUtilsLogger: getPdfPageCount: File does not exist: squared

🔴 01-16 01:20:26.746 E PageView.currentPageNumber: Error getting page number: Notebook ID cannot be null.

⚪ 01-16 01:20:17.770 V ActivityThread: reportTopResumedActivityChanged - > onActivityTopResumed

🔵 01-16 01:15:55.028 I FA : Application backgrounded at: timestamp_millis: 1768522552996

🟢 01-16 01:15:44.015 D OnyxScrollRefreshManager: afterScroll

🟢 01-16 01:15:43.885 D OnyxScrollRefreshManager: beforeScroll

🟢 01-16 01:15:43.030 D OnyxScrollRefreshManager: afterScroll

🟢 01-16 01:15:42.704 D OnyxScrollRefreshManager: beforeScroll

🟢 01-16 01:15:42.080 D OnyxScrollRefreshManager: afterScroll

🟢 01-16 01:15:41.766 D OnyxScrollRefreshManager: beforeScroll

🟠 01-16 01:15:40.925 W GestureReceiver: androidx.compose.ui.input.pointer.PointerInputResetException: Pointer input was reset

🟠 01-16 01:15:40.925 W GestureReceiver: Gesture coroutine canceled

🟠 01-16 01:15:21.590 W MainActivity: kotlinx.coroutines.flow.internal.SafeCollectorKt$emitFun$1.invoke (SafeCollector.kt:11)

🟠 01-16 01:15:21.590 W MainActivity: kotlinx.coroutines.flow.internal.SafeCollectorKt$emitFun$1.invoke (SafeCollector.kt:11)

🟠 01-16 01:15:21.590 W MainActivity: kotlinx.coroutines.flow.FlowKt__LimitKt$drop$2$1.emit (Limit.kt:21)

🟠 01-16 01:15:21.590 W MainActivity: editor.DrawCanvas$registerObservers$17$2.emit (DrawCanvas.kt:635)

🟠 01-16 01:15:21.590 W MainActivity: editor.DrawCanvas$registerObservers$17$2.emit (DrawCanvas.kt:638)

🟠 01-16 01:15:21.590 W MainActivity: editor.DrawCanvas.access$refreshUiSuspend (DrawCanvas.kt:108)

🟠 01-16 01:15:21.590 W MainActivity: editor.DrawCanvas.refreshUiSuspend (DrawCanvas.kt:770)

🟠 01-16 01:15:21.590 W MainActivity: utils.DebugKt.logCallStack$default (debug.kt:8)

🟠 01-16 01:15:21.590 W MainActivity: refreshUiSuspend_main_thread Call stack:

🟠 01-16 01:15:21.590 W DrawCanvas: refreshUiSuspend() is called from the main thread.

🟢 01-16 01:15:16.951 D OnyxScrollRefreshManager: afterScroll

🟢 01-16 01:15:14.427 D OnyxScrollRefreshManager: beforeScroll

🟢 01-16 01:15:14.157 D OnyxScrollRefreshManager: afterScroll

🟢 01-16 01:15:12.910 D OnyxScrollRefreshManager: beforeScroll

🟢 01-16 01:14:59.654 D OnyxScrollRefreshManager: afterScroll

🟢 01-16 01:14:59.025 D OnyxScrollRefreshManager: beforeScroll

🟢 01-16 01:14:53.749 D OnyxScrollRefreshManager: afterScroll

🟢 01-16 01:14:52.460 D OnyxScrollRefreshManager: beforeScroll

🟢 01-16 01:14:51.855 D OnyxScrollRefreshManager: afterScroll

🟢 01-16 01:14:51.643 D OnyxScrollRefreshManager: beforeScroll

🟢 01-16 01:14:49.870 D OnyxScrollRefreshManager: afterScroll

🟢 01-16 01:14:49.733 D OnyxScrollRefreshManager: beforeScroll

🟢 01-16 01:14:48.766 D OnyxScrollRefreshManager: afterScroll

🟢 01-16 01:14:48.672 D OnyxScrollRefreshManager: beforeScroll

🟢 01-16 01:11:44.271 D OnyxScrollRefreshManager: afterScroll

🟢 01-16 01:11:43.966 D OnyxScrollRefreshManager: beforeScroll

🟠 01-16 01:11:33.464 W GestureReceiver: androidx.compose.ui.input.pointer.PointerInputResetException: Pointer input was reset

🟠 01-16 01:11:33.464 W GestureReceiver: Gesture coroutine canceled

🟠 01-16 01:11:27.126 W MainActivity: kotlinx.coroutines.flow.internal.SafeCollectorKt$emitFun$1.invoke (SafeCollector.kt:11)

🟠 01-16 01:11:27.126 W MainActivity: kotlinx.coroutines.flow.internal.SafeCollectorKt$emitFun$1.invoke (SafeCollector.kt:11)

🟠 01-16 01:11:27.126 W MainActivity: kotlinx.coroutines.flow.FlowKt__LimitKt$drop$2$1.emit (Limit.kt:21)

🟠 01-16 01:11:27.126 W MainActivity: editor.DrawCanvas$registerObservers$17$2.emit (DrawCanvas.kt:635)

🟠 01-16 01:11:27.126 W MainActivity: editor.DrawCanvas$registerObservers$17$2.emit (DrawCanvas.kt:638)

🟠 01-16 01:11:27.126 W MainActivity: editor.DrawCanvas.access$refreshUiSuspend (DrawCanvas.kt:108)

🟠 01-16 01:11:27.126 W MainActivity: editor.DrawCanvas.refreshUiSuspend (DrawCanvas.kt:770)

🟠 01-16 01:11:27.126 W MainActivity: utils.DebugKt.logCallStack$default (debug.kt:8)

🟠 01-16 01:11:27.126 W MainActivity: refreshUiSuspend_main_thread Call stack:

🟠 01-16 01:11:27.125 W DrawCanvas: refreshUiSuspend() is called from the main thread.

🟠 01-16 01:11:25.359 W MainActivity: kotlinx.coroutines.flow.internal.SafeCollectorKt$emitFun$1.invoke (SafeCollector.kt:11)

🟠 01-16 01:11:25.359 W MainActivity: kotlinx.coroutines.flow.internal.SafeCollectorKt$emitFun$1.invoke (SafeCollector.kt:11)

🟠 01-16 01:11:25.359 W MainActivity: kotlinx.coroutines.flow.FlowKt__LimitKt$drop$2$1.emit (Limit.kt:21)

🟠 01-16 01:11:25.359 W MainActivity: editor.DrawCanvas$registerObservers$17$2.emit (DrawCanvas.kt:635)

🟠 01-16 01:11:25.359 W MainActivity: editor.DrawCanvas$registerObservers$17$2.emit (DrawCanvas.kt:638)

🟠 01-16 01:11:25.359 W MainActivity: editor.DrawCanvas.access$refreshUiSuspend (DrawCanvas.kt:108)

🟠 01-16 01:11:25.359 W MainActivity: editor.DrawCanvas.refreshUiSuspend (DrawCanvas.kt:770)

🟠 01-16 01:11:25.359 W MainActivity: utils.DebugKt.logCallStack$default (debug.kt:8)

🟠 01-16 01:11:25.359 W MainActivity: refreshUiSuspend_main_thread Call stack:

🟠 01-16 01:11:25.359 W DrawCanvas: refreshUiSuspend() is called from the main thread.

🟢 01-16 01:11:17.234 D OnyxScrollRefreshManager: afterScroll

🟢 01-16 01:11:17.188 D OnyxScrollRefreshManager: beforeScroll

🟢 01-16 01:11:16.412 D OnyxScrollRefreshManager: afterScroll

🟢 01-16 01:11:16.370 D OnyxScrollRefreshManager: beforeScroll

🟢 01-16 01:11:15.387 D OnyxScrollRefreshManager: afterScroll

🟢 01-16 01:11:15.227 D OnyxScrollRefreshManager: beforeScroll

🟠 01-16 01:11:08.863 W GestureReceiver: androidx.compose.ui.input.pointer.PointerInputResetException: Pointer input was reset

🟠 01-16 01:11:08.863 W GestureReceiver: Gesture coroutine canceled

⚪ 01-16 01:11:03.865 V ActivityThread: reportTopResumedActivityChanged - > onActivityTopResumed

🔵 01-16 01:07:07.297 I FA

Dominant language
Kotlin
Stars
269
Forks
44
Avg merge
1d 17h
Merged PRs (30d)
22

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from Ethran/notable

All issues in Ethran/notable

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.