https://bugs.kde.org/show_bug.cgi?id=446599

            Bug ID: 446599
           Summary: Android app crashes OOM at
                    org.kde.kdeconnect.NetworkPacket.serialize(NetworkPack
                    et.java:246)
           Product: kdeconnect
           Version: 1.10
          Platform: Android
                OS: Android 8.x
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: android-application
          Assignee: albertv...@gmail.com
          Reporter: mail-...@benbrian.net
  Target Milestone: ---

SUMMARY
12-06 20:37:55.692  8372  8846 I zygote  : Alloc concurrent copying GC freed
751(78KB) AllocSpace objects, 1(16KB) LOS objects, 14% free, 141MB/165MB,
paused 182us total 333.104ms
12-06 20:37:55.692  8372  8846 I zygote  : Forcing collection of SoftReferences
for 144MB allocation
12-06 20:37:55.692  8372  8846 I zygote  : Starting a blocking GC Alloc
12-06 20:37:55.863  8372  8845 E CursorWindow: Failed to read row 0, column -1
from a CursorWindow which has 2 rows, 8 columns.
12-06 20:37:55.863  8372  8845 E CursorWindow: Failed to read row 1, column -1
from a CursorWindow which has 2 rows, 8 columns.
12-06 20:37:56.138  8372  8845 E CursorWindow: Failed to read row 0, column -1
from a CursorWindow which has 2 rows, 8 columns.
12-06 20:37:56.138  8372  8845 E CursorWindow: Failed to read row 1, column -1
from a CursorWindow which has 2 rows, 8 columns.
12-06 20:37:56.198  8372  8846 I zygote  : Alloc concurrent copying GC freed
951(60KB) AllocSpace objects, 0(0B) LOS objects, 14% free, 141MB/165MB, paused
179us total 506.103ms
12-06 20:37:56.198  8372  8846 W zygote  : Throwing OutOfMemoryError "Failed to
allocate a 150994952 byte allocation with 25165824 free bytes and 50MB until
OOM, max allowed footprint 173877416, growth limit 201326592"
--------- beginning of crash
12-06 20:37:56.207  8372  8846 E AndroidRuntime: FATAL EXCEPTION: Thread-20
12-06 20:37:56.207  8372  8846 E AndroidRuntime: Process:
org.kde.kdeconnect_tp, PID: 8372
12-06 20:37:56.207  8372  8846 E AndroidRuntime: java.lang.OutOfMemoryError:
Failed to allocate a 150994952 byte allocation with 25165824 free bytes and
50MB until OOM, max allowed footprint 173877416, growth limit 201326592
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
java.util.Arrays.copyOf(Arrays.java:3260)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:125)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:660)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
java.lang.StringBuilder.append(StringBuilder.java:203)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
org.json.JSONStringer.string(JSONStringer.java:344)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
org.json.JSONStringer.value(JSONStringer.java:252)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
org.json.JSONObject.writeTo(JSONObject.java:723)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
org.json.JSONStringer.value(JSONStringer.java:237)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
org.json.JSONArray.writeTo(JSONArray.java:613)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
org.json.JSONStringer.value(JSONStringer.java:233)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
org.json.JSONObject.writeTo(JSONObject.java:723)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
org.json.JSONStringer.value(JSONStringer.java:237)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
org.json.JSONArray.writeTo(JSONArray.java:613)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
org.json.JSONStringer.value(JSONStringer.java:233)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
org.json.JSONObject.writeTo(JSONObject.java:723)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
org.json.JSONStringer.value(JSONStringer.java:237)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
org.json.JSONObject.writeTo(JSONObject.java:723)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
org.json.JSONObject.toString(JSONObject.java:692)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
org.kde.kdeconnect.NetworkPacket.serialize(NetworkPacket.java:246)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
org.kde.kdeconnect.Backends.LanBackend.LanLink.sendPacket(LanLink.java:158)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
org.kde.kdeconnect.Device.sendPacketBlocking(Device.java:700)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
org.kde.kdeconnect.DevicePacketQueue$SendingThread.run(DevicePacketQueue.java:107)
12-06 20:37:56.207  8372  8846 E AndroidRuntime:        at
java.lang.Thread.run(Thread.java:764)



STEPS TO REPRODUCE
1. Run KDEConnect on mobile device.
2. Run GSConnect on paired device.
3. Wait or use system normally (in my case about 5-10min); no need to directly
interact with GS/KDEConnect.

OBSERVED RESULT
Android app crashes with standard message: "KDE Connect has stopped." Happens
very reliably.

EXPECTED RESULT
App continues to run correctly in the background.

SOFTWARE/OS VERSIONS
Paired host: GSConnect 47 on Fedora 35
KDEConnect mobile: KDEConnect 1.18.1 (f-droid) on Android 8.1.0

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to