Comments (25)
Ok, solved. I needed to update my AlertListener. Now the part where TorrentInfo is null.
from frostwire-jlibtorrent.
That didn't seem to be the whole problem. I'm still getting the error, but I updated all my code.
08-07 15:22:23.845 2398-2567/pct.droid.dev A/libcīš Fatal signal 11 (SIGSEGV), code 1, fault addr 0xcaae3e20 in tid 2567 (Session-alertsL)
And I have no idea what I should search for. I don't even know if this isn't a problem in libtorrent itself.
from frostwire-jlibtorrent.
Can you paste a longer log output? I need to see more about the stack trace.
from frostwire-jlibtorrent.
08-07 16:09:16.843 22307-22307/pct.droid.dev A/libcīš Fatal signal 11 (SIGSEGV), code 1, fault addr 0xcaae3e20 in tid 22307 (pct.droid.dev)
08-07 16:09:19.403 22307-22307/pct.droid.dev W/pct.droid.devīš type=1701 audit(0.0:172): auid=4294967295 uid=10243 gid=10243 ses=4294967295 subj=u:r:untrusted_app:s0 reason="memory violation" sig=11
This is all I get. (Didn't notice the second line before)
from frostwire-jlibtorrent.
With version of jlibtorrent are you working with?
from frostwire-jlibtorrent.
1.1.0.2
from frostwire-jlibtorrent.
Yesterday I found another null pointer error in libtorrent, it's already merged (arvidn/libtorrent#72). In a few hours I will release another version, maybe this fix your issue. If not, I will need more info from you. Let's see.
from frostwire-jlibtorrent.
Hopefully! Thanks.
from frostwire-jlibtorrent.
@sv244 I released version 1.1.0.3, let me know if you are still getting the error.
from frostwire-jlibtorrent.
I'll try đ
from frostwire-jlibtorrent.
sweet
from frostwire-jlibtorrent.
That I'm going to try it doesn't mean it is solved.
from frostwire-jlibtorrent.
gotcha
from frostwire-jlibtorrent.
Nope.
08-07 21:31:16.342 21220-21246/pct.droid.torrentstreamer.sample A/libcīš Fatal signal 11 (SIGSEGV), code 1, fault addr 0x5e76f142 in tid 21246 (Session-alertsL)
from frostwire-jlibtorrent.
dang
from frostwire-jlibtorrent.
I'll push my code to a repo. Maybe I'm doing something completely wrong.
Although, it worked ok with previous versions.
from frostwire-jlibtorrent.
đ
from frostwire-jlibtorrent.
https://github.com/sv244/TorrentStream-Android
from frostwire-jlibtorrent.
link(s) to file(s)?
from frostwire-jlibtorrent.
Anything within https://github.com/sv244/TorrentStream-Android/tree/develop/library/src/main/java/pct/droid/torrentstream
TorrentStream.java to be more specific.
from frostwire-jlibtorrent.
Ok, no promise on timing, I will take a close look.
from frostwire-jlibtorrent.
No worries. That you will is good enough for me.
from frostwire-jlibtorrent.
I also noticed that TorrentInfo is null most of the times. Might be related?
https://github.com/sv244/TorrentStream-Android/blob/develop/library/src/main/java/pct/droid/torrentstream/Torrent.java#L137
https://github.com/sv244/TorrentStream-Android/blob/develop/library/src/main/java/pct/droid/torrentstream/Torrent.java#L239
from frostwire-jlibtorrent.
Ok @sv244 , in this line https://github.com/sv244/TorrentStream-Android/blob/develop/library/src/main/java/pct/droid/torrentstream/TorrentStream.java#L372
you are getting a reference to a torrent handle from an alert. This references are short lived inside libtorrent, then the "Fatal signal 11". Use the following instead:
TorrentHandle th = mTorrentSession.findTorrent(((TorrentAddedAlert) alert).getHandle().getInfoHash());
mCurrentTorrent = new Torrent(th, listener);
Now, when do you not get the NPE (I will write about it after this), you will get to the point of:
08-07 22:29:12.121 9544-9544/pct.droid.torrentstreamer.sample D/Torrentīš onStreamProgress: 1
08-07 22:29:12.121 9544-9544/pct.droid.torrentstreamer.sample D/Torrentīš onStreamProgress: 1
08-07 22:29:12.121 9544-9544/pct.droid.torrentstreamer.sample D/Torrentīš onStreamProgress: 2
Now, about the NPE. The problem is that you are downloading a magnet, at the very beginning, the torrent info is null, since the metadata is not available. Check the class MetadataReceivedAlert
.
Let us know.
from frostwire-jlibtorrent.
You're a hero! It completely works now.
from frostwire-jlibtorrent.
Related Issues (20)
- No implementation found for void com.frostwire.jlibtorrent.swig.libtorrent_jni.swig_module_init() HOT 1
- Adding a download with changed priorities doesn't recognize the new priorities if download was finished earlier. HOT 9
- Downloads are not compatible HOT 4
- Download issues in Samsung Galaxy devices HOT 9
- How to Compile in embedded system, the platform is arm32. HOT 1
- [desktop] Calling SessionManager stop() takes forever after torrent is finished HOT 8
- dhtNodes Always 0 HOT 26
- Docker script Q&A HOT 5
- Error in Vectors.byte_vector2string
- sessionManager.stats().dhtNodes() always 0 HOT 4
- How to merge libraries into one? HOT 2
- Pure virtual function called! On Android 10+ [Using version 1.2.16.0] HOT 1
- Upgrading to libtorrent 2.0, it's time. HOT 1
- Low memory bug HOT 3
- Is it possible use your libtorrent.i wrap a c# version? HOT 11
- native crash HOT 1
- Debugging libtorrent crash on Android HOT 3
- iOS compatibility? HOT 8
- Cannot build 2.0 binaries HOT 7
- Question: Whatâs the best way to limit resource usage or decrease the priority of the torrent download thread? HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ī¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frostwire-jlibtorrent.