Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion fail on download #7541

Open
XITRIX opened this issue Nov 2, 2023 · 9 comments
Open

Assertion fail on download #7541

XITRIX opened this issue Nov 2, 2023 · 9 comments

Comments

@XITRIX
Copy link

XITRIX commented Nov 2, 2023

Please provide the following information

libtorrent version (or branch): RC_2_0

platform/architecture: iOS/visionOS arm64

compiler and compiler version: xCode 15.1 beta (15C5028h)

please describe what symptom you see, what you would expect to see instead and
how to reproduce it.

Just trying to download torrent file, I don't think I'm doing something special, it downloads for a bit (from several seconds to several minutes).
If auto_managed flag is disabled, torrent goes in isPaused state, if flag is enabled in Release speed just drops to 0, in debug it raises the SIGABRT with this stacktrace:

log.txt
image

Also looks like different asserts raises from time to time but symptoms all the same.

Thanks in advance for any help, cause right now I just have no idea where I should take a look

UP.
One more assert
log2.txt

Also my phone has 700+ gb of free space, and ram usage was not higher than 60mb

UP2.
It fails with this message from error alert:
image

Pausing for a second and resuming restores download process. Empty space is more then enough

@ValeZAA
Copy link

ValeZAA commented Nov 6, 2023

Looks related #7517 (comment)

Are you sure you are not using a memory card?

@XITRIX
Copy link
Author

XITRIX commented Nov 7, 2023

@ValeZAA, no, it's an iPhone, it has no memory cards :D

@SSpaZioMilano
Copy link

Have the same problem on my iPhone 15 pro max on last ios17.3.

@ValeZAA
Copy link

ValeZAA commented Feb 10, 2024

@ValeZAA, no, it's an iPhone, it has no memory cards :D

Neither does my Galaxy S22 U.

@arvidn
Copy link
Owner

arvidn commented Feb 17, 2024

I believe there's some issue when a write to disk fails, because the disk is full. Is that the case for you?

@XITRIX
Copy link
Author

XITRIX commented Feb 17, 2024

Thanks for reply, but no, I have 1TB phone with only around +-200 GB occupied, so I have plenty of free space. Also libtorrent v1.2.x do not has such issue, so for now I decided to use this version instead of v2

@XITRIX
Copy link
Author

XITRIX commented Apr 2, 2024

Seems like forcing TORRENT_HAVE_MMAP=0 solved my issue, but now app started to feel a bit unresponsive (I could see 50Mbps download speed but nothing progress for several seconds), I'll test a bit more comparing with v1.2, maybe it's my imagination and it was the same.

Decided to give it a try after reading this #7551

UP.
Unresponsiveness comes from debugging tools, without them app works more than good

@ValeZAA
Copy link

ValeZAA commented Apr 18, 2024

Seems like forcing TORRENT_HAVE_MMAP=0 solved my issue

so the bug is in Google's fork of linux kernel.

@XITRIX
Copy link
Author

XITRIX commented Apr 18, 2024

so the bug is in Google's fork of linux kernel.

What does Google and the Linux kernel have to do with it? I'm running libtorrent not on Android but on iOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants