Bug 491722 - KDE Connect aplication crashes when entering Presentation remote mode.
Summary: KDE Connect aplication crashes when entering Presentation remote mode.
Status: CONFIRMED
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (show other bugs)
Version: unspecified
Platform: Android Unspecified
: NOR crash
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
: 492045 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-08-14 16:41 UTC by Giovanni
Modified: 2024-09-02 20:44 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Giovanni 2024-08-14 16:41:18 UTC
SUMMARY
In KDE Connect version 1.32.0 it performs good every feature minus the presentation mode in my Samsung Galaxy s23+, it crashes instantaneous when clicked.
The app is connected to my notebook running Arch Linux distribution with KDE Plasma 6.

STEPS TO REPRODUCE
1. Connect to device
2. Open the app 
3. Click in Presentation remote

OBSERVED RESULT
The app in the android crashes instantaneously after the 3 step

EXPECTED RESULT
The app open the presentation mode as it used to open.

SOFTWARE/OS VERSIONS:
Linux/KDE Plasma: Arch Linux  kernel 6.10.4-arch2-1
KDE Plasma Version: Plasma 6.1.4
KDE Frameworks Version: ?
Qt Version: ?
Comment 1 ipf3dqtxb 2024-08-16 04:39:32 UTC
I am also experiencing this issue.

I can use "remote input" but "Presentation remote" causes an instant crash of the android app. It worked for me once and every instance since it crashes the app. The only other functionality that I have issues with are when disconnecting from my network and reconnecting (i.e. going outside and touching grass) the kde app does not always reconnect.

Phone: 
Pixel 6 pro
Android 14
Kde connect 1.32 (installed from play store) 

Computer:
EndeavorOS kenrnel 6.10.3-arch1-2 
`kdeconnect-cli --version`: 24.05.2
Connected via Ethernet & static IP (phone should be static on my network too)
Firewall is opened using the firewall-cmd command in the docs (`firewall-cmd --permanent --zone=public --add-service=kdeconnect`

Endeavor is actually a fresh install. Less than a week old.
Comment 2 fsclkpzf 2024-08-26 11:50:37 UTC
*** Bug 492045 has been marked as a duplicate of this bug. ***
Comment 3 fsclkpzf 2024-08-26 11:52:32 UTC
(In reply to fsclkpzf from comment #2)
> *** Bug 492045 has been marked as a duplicate of this bug. ***

Note: Bug 492045 have a crash dump
Comment 4 OIRNOIR 2024-08-27 07:19:51 UTC
I also experience this issue on a Google Pixel 8a on KDE Connect 1.32.0. It is connected to my laptop running Fedora with KDE Plasma 6.
My desktop kernel is 6.9.12 (due to a separate bug preventing me from updating)
Otherwise, everything is exactly the same as the original report. Remote input works fine.
Here is my crash dump:

```
type: crash
osVersion: google/akita/akita:14/AP2A.240805.005.A1/2024082200:user/release-keys
package: org.kde.kdeconnect_tp:13200
process: org.kde.kdeconnect_tp
processUptime: 1543 + 406 ms
installer: com.machiav3lli.fdroid

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{org.kde.kdeconnect_tp/org.kde.kdeconnect.Plugins.PresenterPlugin.PresenterActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getStringExtra(java.lang.String)' on a null object reference
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3910)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4184)
	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:114)
	at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:231)
	at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:152)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:93)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2602)
	at android.os.Handler.dispatchMessage(Handler.java:107)
	at android.os.Looper.loopOnce(Looper.java:232)
	at android.os.Looper.loop(Looper.java:317)
	at android.app.ActivityThread.main(ActivityThread.java:8623)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
	at com.android.internal.os.ExecInit.main(ExecInit.java:50)
	at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
	at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:369)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getStringExtra(java.lang.String)' on a null object reference
	at org.kde.kdeconnect.Plugins.PresenterPlugin.PresenterActivity.<init>(PresenterActivity.kt:52)
	at java.lang.Class.newInstance(Native Method)
	at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
	at androidx.core.app.CoreComponentFactory.instantiateActivity(CoreComponentFactory.java:44)
	at android.app.Instrumentation.newActivity(Instrumentation.java:1453)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3897)
	... 15 more
```
Comment 5 maico.suse 2024-08-27 14:07:11 UTC
The KDE Connect app crashes when attempting to use the Presentation Remote feature on Android. The issue occurs specifically with APK version 1.32.

The issue does not occur with KDE Connect version 1.31.1 (downloaded from F-Droid).
The issue is not present in the forked version of the app, Zorin Connect.
Comment 6 poets-sepals.0j 2024-08-28 15:02:22 UTC
Also experiencing this issue
Comment 7 Albert Vaca Cintora 2024-08-30 14:34:12 UTC
This has been fixed but Google is rejecting the updates to the Play Store version of the app :(

The F-Droid version should have the fix.