PVRPerfServer APK Crashes on Android API 31+

So, when I install the PVRPerfServer.apk and attempt to run it, it immediately quits with the following stack trace. The device (Samsung A03s) is running Android 12. Unfortunately, my device is not rooted.

10-31 19:30:55.064  6912  6912 E AndroidRuntime: FATAL EXCEPTION: main
10-31 19:30:55.064  6912  6912 E AndroidRuntime: Process: com.powervr.PVRPerfServerDeveloper, PID: 6912
10-31 19:30:55.064  6912  6912 E AndroidRuntime: java.lang.RuntimeException: Unable to start service com.powervr.PVRPerfServer.PVRPerfServerService@ddc6c70 with Intent { cmp=com.powervr.PVRPerfServerDeveloper/com.powervr.PVRPerfServer.PVRPerfServerService }: java.lang.IllegalArgumentException: com.powervr.PVRPerfServerDeveloper: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
10-31 19:30:55.064  6912  6912 E AndroidRuntime: Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5110)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.app.ActivityThread.access$2100(ActivityThread.java:310)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2319)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:226)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:313)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:8669)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: Caused by: java.lang.IllegalArgumentException: com.powervr.PVRPerfServerDeveloper: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
10-31 19:30:55.064  6912  6912 E AndroidRuntime: Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.app.PendingIntent.checkFlags(PendingIntent.java:382)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:673)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.app.PendingIntent.getBroadcast(PendingIntent.java:660)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at com.powervr.PVRPerfServer.PVRPerfServerService.BuildNotificationAction(PVRPerfServerService.java:150)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at com.powervr.PVRPerfServer.PVRPerfServerService.BuildServiceNotification(PVRPerfServerService.java:185)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at com.powervr.PVRPerfServer.PVRPerfServerService.switchState(PVRPerfServerService.java:261)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at com.powervr.PVRPerfServer.PVRPerfServerService.onStartCommand(PVRPerfServerService.java:282)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5092)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	... 9 more

The full logs around this is in case it helps:

10-31 19:30:55.052  6912  7451 I PVRPerfServer: This server is localhost:6521 
10-31 19:30:55.052  6912  7451 I PVRPerfServer: (lo:127.0.0.1
10-31 19:30:55.052  6912  7451 I PVRPerfServer: ,wlan0:192.168.4.50
10-31 19:30:55.052  6912  7451 I PVRPerfServer: )...
10-31 19:30:55.053  6912  7451 I PVRPerfServer: * OS:                 Android
10-31 19:30:55.054  6912  7451 I PVRPerfServer: * Time (local):       Mon, 31 Oct 2022 19:30:55 -0700 (19:30:55)
10-31 19:30:55.054  6912  7451 I PVRPerfServer: * Time (UTC):         Tue, 01 Nov 2022 02:30:55 +0000 (02:30:55)
10-31 19:30:55.054  6912  7451 I PVRPerfServer: * System Perf Events: Disabled (Requires Additional Permissions)
10-31 19:30:55.055  6912  7451 D PVRLinker: dlopen failed for libPVRScopeServices.so
10-31 19:30:55.056  6912  7451 D PVRLinker: Failed to find 'android_get_exported_namespace' symbol
10-31 19:30:55.056  6912  7451 D PVRLinker: Attempting to dlysm __loader_android_get_exported_namespace
10-31 19:30:55.056  6912  7451 D PVRLinker: Failed to find '__loader_android_get_exported_namespace' symbol
10-31 19:30:55.056  6912  7451 D PVRLinker: Attempting to dlysm android_get_exported_namespace from libdl_android.so
10-31 19:30:55.057  6912  7451 D PVRLinker: pvrdlopen succeeded for libdl_android.so
10-31 19:30:55.058  6912  7451 D PVRLinker: android_dlopen_ext succeeded for libPVRScopeServices.so
10-31 19:30:55.061  6912  7451 I PVRPerfServer: * GPU driver build:   1.13@5776728
10-31 19:30:55.062  6912  6912 D AndroidRuntime: Shutting down VM
10-31 19:30:55.063  6912  7451 D PVRLinker: dlopen failed for libPVRScopeServicesNNA.so
10-31 19:30:55.063  6912  7451 D PVRLinker: Failed to find 'android_get_exported_namespace' symbol
10-31 19:30:55.063  6912  7451 D PVRLinker: Attempting to dlysm __loader_android_get_exported_namespace
10-31 19:30:55.063  6912  7451 D PVRLinker: Failed to find '__loader_android_get_exported_namespace' symbol
10-31 19:30:55.063  6912  7451 D PVRLinker: Attempting to dlysm android_get_exported_namespace from libdl_android.so
10-31 19:30:55.064  6912  7451 D PVRLinker: pvrdlopen succeeded for libdl_android.so
10-31 19:30:55.064  6912  6912 E AndroidRuntime: FATAL EXCEPTION: main
10-31 19:30:55.064  6912  6912 E AndroidRuntime: Process: com.powervr.PVRPerfServerDeveloper, PID: 6912
10-31 19:30:55.064  6912  6912 E AndroidRuntime: java.lang.RuntimeException: Unable to start service com.powervr.PVRPerfServer.PVRPerfServerService@ddc6c70 with Intent { cmp=com.powervr.PVRPerfServerDeveloper/com.powervr.PVRPerfServer.PVRPerfServerService }: java.lang.IllegalArgumentException: com.powervr.PVRPerfServerDeveloper: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
10-31 19:30:55.064  6912  6912 E AndroidRuntime: Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5110)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.app.ActivityThread.access$2100(ActivityThread.java:310)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2319)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:106)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:226)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:313)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:8669)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: Caused by: java.lang.IllegalArgumentException: com.powervr.PVRPerfServerDeveloper: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
10-31 19:30:55.064  6912  6912 E AndroidRuntime: Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.app.PendingIntent.checkFlags(PendingIntent.java:382)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:673)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.app.PendingIntent.getBroadcast(PendingIntent.java:660)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at com.powervr.PVRPerfServer.PVRPerfServerService.BuildNotificationAction(PVRPerfServerService.java:150)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at com.powervr.PVRPerfServer.PVRPerfServerService.BuildServiceNotification(PVRPerfServerService.java:185)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at com.powervr.PVRPerfServer.PVRPerfServerService.switchState(PVRPerfServerService.java:261)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at com.powervr.PVRPerfServer.PVRPerfServerService.onStartCommand(PVRPerfServerService.java:282)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5092)
10-31 19:30:55.064  6912  6912 E AndroidRuntime: 	... 9 more
10-31 19:30:55.064  6912  7451 D PVRLinker: android_dlopen_ext failed for libPVRScopeServicesNNA.so
10-31 19:30:55.065  6912  7451 D PVRLinker: pvrdlopen failed for libPVRScopeServicesNNA.so
10-31 19:30:55.065  6912  7451 I PVRPerfServer: * NNA driver:         Not connected! (driver support not found)
10-31 19:30:55.067  6912  7451 I PVRPerfServer: * Processor count:    8
10-31 19:30:55.067  6912  7451 I PVRPerfServer: This server is localhost:6520 
10-31 19:30:55.067  6912  7451 I PVRPerfServer: (lo:127.0.0.1
10-31 19:30:55.067  6912  7451 I PVRPerfServer: ,wlan0:192.168.4.50
10-31 19:30:55.067  6912  7451 I PVRPerfServer: )...
10-31 19:30:55.067  6912  7451 I PVRPerfServer: Waiting for connection (press q to quit)...
10-31 19:30:55.067  1498  7452 I DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2
10-31 19:30:55.068  1498  3645 D Debug   : low && ship && 3rdparty app crash, do not dump
10-31 19:30:55.068  1498  3645 W ActivityManager: crash : com.powervr.PVRPerfServerDeveloper,10273
10-31 19:30:55.069  1498  3645 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1242 com.android.server.am.AppErrors.crashApplicationInner:723 com.android.server.am.AppErrors.crashApplication:584 com.android.server.am.ActivityManagerService.handleApplicationCrashInner:9735 com.android.server.am.ActivityManagerService.handleApplicationCrash:9614 
10-31 19:30:55.070  6912  7451 I PVRPerfServer:   0.0ps 
10-31 19:30:55.070  6912  7451 I PVRPerfServer: 23t 
10-31 19:30:55.070  6912  7451 I PVRPerfServer: [no NNA] 
10-31 19:30:55.070  6912  7451 I PVRPerfServer: : 
10-31 19:30:55.070  6912  7451 I PVRPerfServer: 00/00
10-31 19:30:55.070  6912  7451 I PVRPerfServer: ,Tu
10-31 19:30:55.070  6912  7451 I PVRPerfServer:     
10-31 19:30:55.073  1498  1532 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver

Hi Chinmay,

Welcome to the PVR Developer forum and thank you for reporting the issue with PVRPerfServer. We are discussing this issue with our tools team and shall get back to you with a resolution soon.

Regards,
Nagnath

Hi Chinmay,

After talking to the tools team, it’s found to be a known issue and has already been fixed internally. The fix will be made available in the next release.

Thanks,
Nagnath

Thank you so much for the prompt update!

Are you able to share an ETA for the next release? If not, thats fine. I’ll check for updates periodically.

Cheers,
Chinmay

It will be made available in couple of weeks. The issue has been fixed in PVRTune v14.153.2 (REL 22.1).

Regards,
Nagnath

1 Like