ToxAndroidRefImpl icon indicating copy to clipboard operation
ToxAndroidRefImpl copied to clipboard

Crashing on GrapheneOS, some problem with RenderScript

Open gosro opened this issue 7 months ago • 13 comments

Can't enter any group chat; the app keeps crashing.

Trifa (latest version from F-Droid) Pixel Graphenos

error-1.txt

gosro avatar Apr 11 '25 01:04 gosro

      #09 pc 0000000000be1304  /data/app/~~4XVBvomZX3ClB2QhUiU3HA==/com.zoffcc.applications.trifa-DSGCf8_CFYU-svbtEcmGzw==/oat/arm64/base.odex (androidx.renderscript.RenderScript.internalCreate+1204)
      #10 pc 0000000000be09b8  /data/app/~~4XVBvomZX3ClB2QhUiU3HA==/com.zoffcc.applications.trifa-DSGCf8_CFYU-svbtEcmGzw==/oat/arm64/base.odex (androidx.renderscript.RenderScript.create+376)
      #11 pc 0000000000be0b00  /data/app/~~4XVBvomZX3ClB2QhUiU3HA==/com.zoffcc.applications.trifa-DSGCf8_CFYU-svbtEcmGzw==/oat/arm64/base.odex (androidx.renderscript.RenderScript.create+80)
      #12 pc 000000000216f05c  /data/app/~~4XVBvomZX3ClB2QhUiU3HA==/com.zoffcc.applications.trifa-DSGCf8_CFYU-svbtEcmGzw==/oat/arm64/base.odex (com.zoffcc.applications.trifa.GroupMessageListActivity.onCreate+956)

zoff99 avatar Apr 11 '25 06:04 zoff99

what type of device are you using? and what version of android?

zoff99 avatar Apr 11 '25 06:04 zoff99

Android 15 Pixel 9 (graphenOS)

gosro avatar Apr 11 '25 11:04 gosro

      #09 pc 0000000000be1304  /data/app/~~4XVBvomZX3ClB2QhUiU3HA==/com.zoffcc.applications.trifa-DSGCf8_CFYU-svbtEcmGzw==/oat/arm64/base.odex (androidx.renderscript.RenderScript.internalCreate+1204)
      #10 pc 0000000000be09b8  /data/app/~~4XVBvomZX3ClB2QhUiU3HA==/com.zoffcc.applications.trifa-DSGCf8_CFYU-svbtEcmGzw==/oat/arm64/base.odex (androidx.renderscript.RenderScript.create+376)
      #11 pc 0000000000be0b00  /data/app/~~4XVBvomZX3ClB2QhUiU3HA==/com.zoffcc.applications.trifa-DSGCf8_CFYU-svbtEcmGzw==/oat/arm64/base.odex (androidx.renderscript.RenderScript.create+80)
      #12 pc 000000000216f05c  /data/app/~~4XVBvomZX3ClB2QhUiU3HA==/com.zoffcc.applications.trifa-DSGCf8_CFYU-svbtEcmGzw==/oat/arm64/base.odex (com.zoffcc.applications.trifa.GroupMessageListActivity.onCreate+956)

I tried a nightly snapshot and the last release; the same crash occurred

gosro avatar Apr 11 '25 11:04 gosro

i have not yet tried it on graphenOS. maybe that is the issue? i do not have a graphenOS device to check that. if you open and enter an "old" conference group, is that working? did an older release work? or was it never working for you?

zoff99 avatar Apr 11 '25 11:04 zoff99

No conference works. I've tried three releases, and it doesn't work; it never has.

I would guess it might be a security issue in Trifa, because the only difference between GrapheneOS and AOSP is that it is security-hardened.

Maybe a memory overflow; I don't know. However, I've disabled any app protections, so it should be something in the core.

gosro avatar Apr 11 '25 14:04 gosro

funky. if i somehow get a GrapheneOS i will have a look

zoff99 avatar Apr 11 '25 14:04 zoff99

try the nightly build when this 04543efd85753c3df1261d2350628a4e5967a92b has built

zoff99 avatar Apr 12 '25 06:04 zoff99

It works, thanks a lot!

gosro avatar Apr 12 '25 15:04 gosro

ok. but that would mean that it should crash on your phone on 1-on-1 video call? are you able to test / confirm that?

zoff99 avatar Apr 12 '25 18:04 zoff99

https://handwiki.org/wiki/Software:RenderScript

On April 19, 2021, Google announced that RenderScript will be deprecated in
Android 12, and recommended porting existing code to Vulkan
https://handwiki.org/wiki/Software:Vulkan_(API)

if anybody knows how to do that, let me know

zoff99 avatar Apr 12 '25 18:04 zoff99

Yes trifa crashes on video calls

gosro avatar Apr 12 '25 19:04 gosro

thanks for confirming

zoff99 avatar Apr 13 '25 07:04 zoff99

Hi, I have the same problem on AXP OS. Group chats do not work and crash the app. Is there some test release which might work for me?

freedomlibrelover avatar Sep 10 '25 17:09 freedomlibrelover

@freedomlibrelover what version of trifa are you using currently? this should have been fixed a few versions ago

zoff99 avatar Sep 10 '25 17:09 zoff99

@freedomlibrelover what version of trifa are you using currently? this should have been fixed a few versions ago

I use version 1.0.256, the latest one on F-Droid (updated 2 days ago0 Here is what happens when I try to join tox support group: At first I am alone in the group, after some time it loads as TRlfA Community, but I never see any messages. Then I can make a few posts like "hi" or "is this working" but after that I get thrown out to the main app menu with the following message at the top:

Successfully loaded native library
Native code compiled with ABI:arm64-v8a
c-toxcore:v0.2.19,jni-c-toxcore:v.0.99.96

After that if I try to enter the group chat again the app immediately crashes. And after that after every app launch it just crashes in a few seconds. If I hold a finger on the group chat and select "leave" without entering it in these few seconds, the app stops crashing.

freedomlibrelover avatar Sep 11 '25 18:09 freedomlibrelover

its not renderscript then, it must be a different reason for crash. are you able to get the actual crash stacktrace from "adb logcat" when it crashes?

zoff99 avatar Sep 11 '25 18:09 zoff99

its not renderscript then, it must be a different reason for crash. are you able to get the actual crash stacktrace from "adb logcat" when it crashes?

I got it. Could you send me your tox id? I'd prefer to not share it via github.

freedomlibrelover avatar Sep 12 '25 09:09 freedomlibrelover

what time will you be online? or can you share your toxid? or just paste the single line where the crash happend only here.

zoff99 avatar Sep 12 '25 11:09 zoff99

the original bug was fixed. but trifa will still crash on a one on one video call on GrapheneOS. it seems to be missing renderscript

zoff99 avatar Sep 13 '25 11:09 zoff99