bordaigorl / remy

Remy, an online&offline manager for the reMarkable tablet
GNU General Public License v3.0
282 stars 13 forks source link

Segfaults when opening files #51

Open Cycatz opened 1 year ago

Cycatz commented 1 year ago

When open a pdf or epub file, remy crashes and produces the following error log:

[I] STARTING: Sat Jan 28 00:23:01 2023
[I] Configuration loaded from /home/cycatz/.config/remy/config.json.
[W] No key nor password given. System-wide SSH connection parameters are going to be used.
[I] Using system default known hosts file
[I] Loading system default known hosts file, this may take a while...
[I] System default known host file loaded
[I] Connecting...
[I] Connected to 192.168.10.16
[I] LOAD TIME: 0.088373
[I] Initialised, launching browser
[W] Could not create thumbnail for ffa6ce5a-8941-44ff-a6e4-412fe68d3efa [arguments did not match any overloaded call:
  QImage(): too many arguments
  QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'float'
  QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'float'
  QImage(data: bytes, width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'float'
  QImage(data: PyQt5.sip.voidptr, width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'float'
  QImage(data: bytes, width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 1 has unexpected type 'float'
  QImage(data: PyQt5.sip.voidptr, width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 1 has unexpected type 'float'
  QImage(xpm: List[str]): argument 1 has unexpected type 'float'
  QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'float'
  QImage(a0: QImage): argument 1 has unexpected type 'float'
  QImage(variant: Any): too many arguments]
zsh: segmentation fault (core dumped)  python -m remy.guif

My remarkable version is 3.0.4.1305, and uses remy at version df2c1ae

bordaigorl commented 1 year ago

Unfortunately there's no guarantee anything works on v3 of the remarkable firmware. Remy is completely untested there; moreover, v3 introduces a completely backward incompatible change of file format for notes which means Remy would need to be significantly rewritten to support the new one. Support for v3 is in the roadmap, but there is a significant chance that the new file format will be revised with further breaking changes and I am simply waiting it to stabilize (and the reverse engineering effort by the community to converge) before doing any work on it. See #49 #46

Cycatz commented 1 year ago

@bordaigorl Got it! Thanks for your reply!

Cycatz commented 1 year ago

I still encountered this issue after downgrading my device to 2.15.1.1189 (with ddvk's patches).

Is there any QT packages I need to install?

bordaigorl commented 1 year ago

@Cycatz this is probably happening because the files you created before downgrading are still using the new format (I'd be surprised if you could even open them on the tablet after downgrading)