meganz / MEGAsync

Easy automated syncing between your computers and your MEGA Cloud Drive
Other
1.58k stars 279 forks source link

megasync crash everytime when it tries to sync - Segmentation Fault error #800

Open Raddow opened 1 year ago

Raddow commented 1 year ago

First, I had an error on the compiling:

MEGASync/mega/src/gfx/freeimage.cpp: In member function ‘bool mega::GfxProviderFreeImage::readbitmapFfmpeg(mega::FileSystemAccess*, const mega::LocalPath&, int)’:
MEGASync/mega/src/gfx/freeimage.cpp:333:18: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘skip_to_keyframe’
  333 |     videoStream->skip_to_keyframe = true;
      |                  ^~~~~~~~~~~~~~~~

Fixed this by removing line 333 on freeimage.cpp and then, it compiled sucessfully.

The problem now is when I start to syncing my files. Everytime I try to do a full sync, megasync crash and gives me a Segmentation Fault error. Below are the logs:

MEGAprivate ERROR DUMP
Application: MEGAsync [64 bit]
Hash: 5b9c143aa0acef378dfde31337938b0c
Version code: 4903.2
Module name: megasync
Timestamp: 1682897257166
Operating system: Linux
System version:  slackware 15.0/#1 SMP PREEMPT Sun Nov 27 13:28:05 CST 2022
System release:  5.15.80
System arch: x86_64
Error info:
Segmentation fault (11) at address 0x7f99b4175390
Stacktrace:
/usr/lib64/libraw.so.20(_ZN6LibRawC1Ej+0x19) [0x7f9a266d77c9]
/usr/lib64/libraw.so.20(_ZN6LibRawC1Ej+0x19) [0x7f9a266d77c9]
megasync() [0xa6aa42]
megasync() [0xa47b48]
megasync() [0xa45bbf]
megasync() [0xa45c4f]
megasync() [0x8afb97]
megasync() [0x8b2183]
megasync() [0x62af9a]
megasync() [0x62b7d9]
/lib64/libpthread.so.0(+0x7e45) [0x7f9a23195e45]
/lib64/libc.so.6(clone+0x3f) [0x7f9a22cfd4af]

In this log, my libraw was on the version 0.20.2, but it also crashed on the last version (0.21.1).

Thanks.

supersonictw commented 8 months ago

https://github.com/meganz/sdk/issues/2576