kaloyan-raev / hello-storj

Demo app for integrating the libstorj native library in Android
GNU General Public License v3.0
5 stars 3 forks source link

Can't upload large files #8

Open MeijeSibbel opened 7 years ago

braydonf commented 7 years ago

So this may be 32-bit related, and an issue that would need to be solved in libstorj because of the use of memory-mapped files, and the addressable memory space at 2 ^ 32 - 1.

kaloyan-raev commented 7 years ago

libstorj is compiled for the armeabi-a7v CPU architecture. I've just made a quick test: sizeof(int *) == 4, which means it is 32-bit.

kaloyan-raev commented 7 years ago

@braydonf is there a related issue in the libstorj project?

kaloyan-raev commented 7 years ago

I have the following backtrace reported to Google Play Console that is most probably related to this issue:

  native: pc 000000000004200c  /system/lib/libc.so (_ZL33__pthread_mutex_lock_with_timeoutP24pthread_mutex_internal_tPK8timespeci+431)
  native: pc 0000000000042159  /system/lib/libc.so (pthread_mutex_lock+26)
  native: pc 00000000000398c9  /system/lib/libc.so (fclose+32)
  native: pc 000000000006fe93  /data/app/name.raev.kaloyan.hellostorj-1/lib/arm/libnative-lib.so
  native: pc 00000000001d94c8  /data/app/name.raev.kaloyan.hellostorj-1/lib/arm/libnative-lib.so