BelledonneCommunications / linphone-android

Linphone.org mirror for linphone-android (https://gitlab.linphone.org/BC/public/linphone-android)
https://linphone.org
GNU General Public License v3.0
1.11k stars 678 forks source link

Problem with transferring photos over 10 mb. #2183

Closed Skretch1974 closed 1 month ago

Skretch1974 commented 2 months ago

Hi. I found a problem, when trying to transfer a photo with a size greater than 10 mb, the program crashes with an error. Other types of files are transferred without problems, but not more than 100 mb. The problem with transferring photos appears on many different types of phones and it seems to be a bug in the program code.

Viish commented 2 months ago

Hi @Skretch1974,

Please attach debug logs showing the problem, and also a stack trace of the crash if possible.

Cheers,

Viish commented 2 months ago

Thanks for the logs, but I can't see why it crashes in it (I don't even see the upload attempt). Could you get the stack trace please?

Skretch1974 commented 2 months ago

Hi. What sequence of actions should I do in order to trace? Let me add on the problem: when I choose from the phone gallery a photo with size more than 10 mb, then choose to share via Linphone and then choose open chat with my contact and at this very moment the program immediately closes with an error. I have been contacted by several other people with similar problem, all the same happens on other phones from different manufacturers and with different versions of Android. I checked on my 2 phones with android 12 and android 7 - the result is exactly the same with the app closing and error message. Any other types of files, RAR, MP4, AVI are transferred without problems with sizes up to 100 mb, over 100 mb the program does not transfer files, even if in the settings set the size limit to 1000 mb.

Viish commented 2 months ago

What sequence of actions should I do in order to trace?

Connect a device to your computer and run the "adb bugreport" command, then attach the created zip here please.

Regarding the max size for file transfer, the limit isn't set by the app but our file transfer server max_upload php value. You can always host your own file transfer server and change that value, then change the file transfer server URL in the app.

Viish commented 2 months ago

Then do adb bugreport linphone.zip

Viish commented 2 months ago

Either it's your mini adb that's behaving weirdly, or it's because you are using a custom ROM on your device that do not respond to standard adb bugreport command...

Viish commented 2 months ago

You could also use adb logcat command, reproduce the issue while the device is plugged-in to your computer (and the previous command is running) and then send me the logs printed by previous command.

Skretch1974 commented 2 months ago

linphone.zip I managed to do it with the ADB version of AppControl

Viish commented 1 month ago

Hi @Skretch1974,

Could you try again using 6.0.0-alpha from master branch please?

Thanks in advance.

Viish commented 1 month ago

I'm closing this issue due to lack of feedback and the fact I can't reproduce it. Feel free to re-open with debug logs & crash stack trace if you still have it with 6.0.0 from master branch.