zhanghai / zhanghai/MaterialFiles

com.hierynomus.smbj.common.SMBRuntimeException

Open
#1,388 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
9k
Forks
736
PR merge metrics
No merged PRs in 30d

Description

Hi!

I got an error when sending files from my Android (LineageOS) phone to my home-LAN samba drive. I got the error popping endlessly but files actually get transfered so I can find them from PC.

I am not sure but this might started to happen after I tried to upload huge files (few GB) onto samba drive but Material Files failed to upload them.

Here are some debug logs:

--------- beginning of main
02-12 20:24:01.692  9903  9968 W System.err: 	at L0.g.j(SourceFile:38)
02-12 20:24:01.692  9903  9968 W System.err: 	at b4.a.m(SourceFile:9)
02-12 20:24:01.693  9903  9968 W System.err: 	at q4.G.run(SourceFile:97)
02-12 20:24:01.693  9903  9968 W System.err: 	at androidx.appcompat.widget.k.run(SourceFile:73)
02-12 20:24:01.693  9903  9968 W System.err: 	at w4.j.run(SourceFile:3)
02-12 20:24:01.693  9903  9968 W System.err: 	at w4.a.run(SourceFile:96)
02-12 20:24:01.694  9903  9903 W System.err: com.hierynomus.smbj.common.SMBRuntimeException: com.hierynomus.protocol.transport.TransportException: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.lang.InterruptedException
02-12 20:24:01.694  9903  9903 W System.err: 	at A2.k.d(SourceFile:98)
02-12 20:24:01.694  9903  9903 W System.err: 	at A2.k.g(SourceFile:9)
02-12 20:24:01.694  9903  9903 W System.err: 	at A2.a.a(SourceFile:57)
02-12 20:24:01.694  9903  9903 W System.err: 	at A2.a.next(SourceFile:29)
02-12 20:24:01.694  9903  9903 W System.err: 	at o4.c.a(SourceFile:9)
02-12 20:24:01.694  9903  9903 W System.err: 	at o4.c.hasNext(SourceFile:6)
02-12 20:24:01.694  9903  9903 W System.err: 	at o4.k.hasNext(SourceFile:26)
02-12 20:24:01.694  9903  9903 W System.err: 	at m5.f.hasNext(SourceFile:3)
02-12 20:24:01.694  9903  9903 W System.err: 	at o4.c.a(SourceFile:3)
02-12 20:24:01.694  9903  9903 W System.err: 	at o4.c.hasNext(SourceFile:6)
02-12 20:24:01.694  9903  9903 W System.err: 	at o4.k.hasNext(SourceFile:15)
02-12 20:24:01.694  9903  9903 W System.err: 	at d3.y.call(SourceFile:320)
02-12 20:24:01.694  9903  9903 W System.err: 	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
02-12 20:24:01.694  9903  9903 W System.err: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
02-12 20:24:01.694  9903  9903 W System.err: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
02-12 20:24:01.694  9903  9903 W System.err: 	at java.lang.Thread.run(Thread.java:1012)
02-12 20:24:01.694  9903  9903 W System.err: Caused by: com.hierynomus.protocol.transport.TransportException: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.lang.InterruptedException
02-12 20:24:01.694  9903  9903 W System.err: 	at H0.F.o(SourceFile:43)
02-12 20:24:01.694  9903  9903 W System.err: 	at P1.a.v(SourceFile:13)
02-12 20:24:01.694  9903  9903 W System.err: 	at A2.k.d(SourceFile:11)
02-12 20:24:01.694  9903  9903 W System.err: 	... 15 more
02-12 20:24:01.694  9903  9903 W System.err: Caused by: java.util.concurrent.ExecutionException: com.hierynomus.smbj.common.SMBRuntimeException: java.lang.InterruptedException
02-12 20:24:01.694  9903  9903 W System.err: 	at k2.d.get(SourceFile:7)
02-12 20:24:01.694  9903  9903 W System.err: 	at P1.a.v(SourceFile:5)
02-12 20:24:01.694  9903  9903 W System.err: 	... 16 more
02-12 20:24:01.694  9903  9903 W System.err: Caused by: com.hierynomus.smbj.common.SMBRuntimeException: java.lang.InterruptedException
02-12 20:24:01.695  9903  9903 W System.err: 	at H0.F.o(SourceFile:15)
02-12 20:24:01.695  9903  9903 W System.err: 	at androidx.appcompat.widget.S1.d(SourceFile:133)
02-12 20:24:01.695  9903  9903 W System.err: 	at k2.d.get(SourceFile:5)
02-12 20:24:01.695  9903  9903 W System.err: 	... 17 more
02-12 20:24:01.695  9903  9903 W System.err: Caused by: java.lang.InterruptedException
02-12 20:24:01.695  9903  9903 W System.err: 	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1764)
02-12 20:24:01.695  9903  9903 W System.err: 	at androidx.appcompat.widget.S1.d(SourceFile:72)
02-12 20:24:01.695  9903  9903 W System.err: 	... 18 more
02-12 20:24:01.743  6288 28617 D CCodec  : allocate(c2.android.avc.decoder)
02-12 20:24:01.752  6288 28617 I CCodec  : Created component [c2.android.avc.decoder]
02-12 20:24:01.753  6288 28617 D CCodecConfig: read media type: video/avc
02-12 20:24:01.755  6288 28617 D ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.max-count.values
02-12 20:24:01.755  6288 28617 D ReflectedParamUpdater: extent() != 1 for single value type: output.subscribed-indices.values
02-12 20:24:01.756  6288 28617 D ReflectedParamUpdater: extent() != 1 for single value type: input.buffers.allocator-ids.values
02-12 20:24:01.756  6288 28617 D ReflectedParamUpdater: extent() != 1 for single value type: output.buffers.allocator-ids.values
02-12 20:24:01.756  6288 28617 D ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.allocator-ids.values
02-12 20:24:01.757  6288 28617 D ReflectedParamUpdater: extent() != 1 for single value type: output.buffers.pool-ids.values
02-12 20:24:01.757  6288 28617 D ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.pool-ids.values
02-12 20:24:01.758  6288 28617 D ReflectedParamUpdater: ignored struct field coded.color-format.locations
02-12 20:24:01.759  6288 28617 D CCodecConfig: ignoring local param raw.size (0xd2001800) as it is already supported
02-12 20:24:01.759  6288 28617 D CCodecConfig: ignoring local param default.color (0x5200180b) as it is already supported
02-12 20:24:01.759  6288 28617 D ReflectedParamUpdater: ignored struct field raw.hdr-static-info.mastering
02-12 20:24:01.762  6288 28617 I CCodecConfig: query failed after returning 12 values (BAD_INDEX)
02-12 20:24:01.763  6288 28617 D CCodecConfig: c2 config diff is Dict {
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 coded.pl.level = 20496
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 coded.pl.profile = 20481
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 coded.vui.color.matrix = 0
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 coded.vui.color.primaries = 0
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 coded.vui.color.range = 2
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 coded.vui.color.transfer = 0
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 default.color.matrix = 0
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 default.color.primaries = 0
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 default.color.range = 0
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 default.color.transfer = 0
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 input.buffers.max-size.value = 2097152
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 input.delay.value = 0
02-12 20:24:01.763  6288 28617 D CCodecConfig:   string input.media-type.value = "video/avc"
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 output.delay.value = 8
02-12 20:24:01.763  6288 28617 D CCodecConfig:   string output.media-type.value = "video/raw"
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 raw.color.matrix = 0
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 raw.color.primaries = 0
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 raw.color.range = 2
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 raw.color.transfer = 0
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 raw.max-size.height = 240
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 raw.max-size.width = 320
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 raw.pixel-format.value = 35
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::i32 raw.rotation.flip = 0
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::i32 raw.rotation.value = 0
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 raw.sar.height = 1
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 raw.sar.width = 1
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 raw.size.height = 240
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2::u32 raw.size.width = 320
02-12 20:24:01.763  6288 28617 D CCodecConfig:   c2:
02-12 20:24:01.766  6288 28617 W ColorUtils: expected specified color aspects (2:0:0:0)
02-12 20:24:01.769  6288 28617 D CCodec  : [c2.android.avc.decoder] buffers are bound to CCodec for this session
02-12 20:24:01.769  6288 28617 D CCodecConfig: no c2 equivalents for thumbnail-time
02-12 20:24:01.769  6288 28617 D CCodecConfig: no c2 equivalents for durationUs
02-12 20:24:01.769  6288 28617 D CCodecConfig: no c2 equivalents for frame-count
02-12 20:24:01.769  6288 28617 D CCodecConfig: no c2 equivalents for track-id
02-12 20:24:01.769  6288 28617 D CCodecConfig: no c2 equivalents for language
02-12 20:24:01.769  6288 28617 D CCodecConfig: no c2 equivalents for display-width
02-12 20:24:01.770  6288 28617 D CCodecConfig: no c2 equivalents for display-height
02-12 20:24:01.770  6288 28617 D CCodecConfig: no c2 equivalents for color-standard
02-12 20:24:01.770  6288 28617 D CCodecConfig: no c2 equivalents for csd-1
02-12 20:24:01.770  6288 28617 D CCodecConfig: no c2 equivalents for color-format
02-12 20:24:01.770  6288 28617 D CCodecConfig: no c2 equivalents for android._num-input-buffers
02-12 20:24:01.770  6288 28617 D CCodecConfig: no c2 equivalents for android._num-output-buffers
02-12 20:24:01.770  6288 28617 D CCodecConfig: no c2 equivalents for flags
02-12 20:24:01.770  6288 28617 D CCodecConfig: c2 config diff is   c2::u32 coded.pl.level = 20489
02-12 20:24:01.770  6288 28617 D CCodecConfig:   c2::u32 coded.pl.profile = 20480
02-12 20:24:01.770  6288 28617 D CCodecConfig:   c2::u32 default.color.matrix = 1
02-12 20:24:01.770  6288 28617 D CCodecConfig:   c2::u32 default.color.primaries = 1
02-12 20:24:01.770  6288 28617 D CCodecConfig:   c2::u32 default.color.range = 2
02-12 20:24:01.770  6288 28617 D CCodecConfig:   c2::u32 default.color.transfer = 3
02-12 20:24:01.770  6288 28617 D CCodecConfig:   c2::u32 raw.size.height = 1080
02-12 20:24:01.770  6288 28617 D CCodecConfig:   c2::u32 raw.size.width = 1920
02-12 20:24:01.771  6288 28617 W ColorUtils: expected specified color aspects (2:0:0:0)
02-12 20:24:01.771  6288 28617 W Codec2Client: query -- param skipped: index = 1107298332.
02-12 20:24:01.771  6288 28617 D CCodec  : client requested max input size 247195, which is smaller than what component recommended (2097152); overriding with component recommendation.
02-12 20:24:01.771  6288 28617 W CCodec  : This behavior is subject to change. It is recommended that app developers double check whether the requested max input size is in reasonable range.
02-12 20:24:01.771  6288 28617 D CCodec  : encoding statistics level = 0
02-12 20:24:01.771  6288 28617 D CCodec  : setup formats input: AMessage(what = 0x00000000) = {
02-12 20:24:01.771  6288 28617 D CCodec  :   int32_t height = 1080
02-12 20:24:01.771  6288 28617 D CCodec  :   int32_t level = 512
02-12 20:24:01.771  6288 28617 D CCodec  :   int32_t max-input-size = 2097152
02-12 20:24:01.771  6288 28617 D CCodec  :   string mime = "video/avc"
02-12 20:24:01.771  6288 28617 D CCodec  :   int32_t profile = 1
02-12 20:24:01.771  6288 28617 D CCodec  :   int32_t width = 1920
02-12 20:24:01.771  6288 28617 D CCodec  :   Rect crop(0, 0, 1919, 1079)
02-12 20:24:01.771  6288 28617 D CCodec  : }
02-12 20:24:01.771  6288 28617 D CCodec  : setup formats output: AMessage(what = 0x00000000) = {
02-12 20:24:01.771  6288 28617 D CCodec  :   int32_t android._color-format = 2135033992
02-12 20:24:01.771  6288 28617 D CCodec  :   int32_t android._video-scaling = 1
02-12 20:24:01.771  6288 28617 D CCodec  :   int32_t rotation-degrees = 0
02-12 20:24:01.771  6288 28617 D CCodec  :   int32_t color-standard = 0
02-12 20:24:01.771  6288 28617 D CCodec  :   int32_t color-range = 2
02-12 20:24:01.771  6288 28617 D CCodec  :   int32_t color-transfer = 0
02-12 20:24:01.771  6288 28617 D CCodec  :   int32_t sar-height = 1
02-12 20:24:01.771  6288 28617 D CCodec  :   int32_t sar-width = 1
02-12 20:24:01.771  6288 28617 D CCodec  :   Rect crop(0, 0, 1919, 1079)
02-12 20:24:01.771  6288 28617 D CCodec  :   int32_t width = 1920
02-12 20:24:01.771  6288 28617 D CCodec  :   int32_t height = 1080
02-12 20:24:01.771  6288 28617 D CCodec  :   int32_t max-height = 240
02-12 20:24:01.771  6288 28617 D CCodec  :   int32_t max-width = 320
02-12 20:24:01.771  6288 28617 D CCodec  :   string mime = "video/raw"
02-12 20:24:01.771  6288 28617 D CCodec  :   int32_t android._dataspace = 268435456
02-12 20:24:01.771  6288 28617 D CCodec  :   int32_t color-format = 2135033992
02-12 20:24:01.771  6288 28617 D CCodec  : }
02-12 20:24:01.771  6288 28617 I CCodecConfig: query failed after returning 12 values (BAD_INDEX)
02-12 20:24:01.771  6288 28617 D CCodecConfig: c2 config diff is   c2::u32 raw.color.matrix = 1
02-12 20:24:01.771  6288 28617 D CCodecConfig:   c2::u32 raw.color.primaries = 1
02-12 20:24:01.771  6288 28617 D CCodecConfig:   c2::u32 raw.color.transfer = 3
02-12 20:24:01.771  6288 28617 D CCodecConfig:   c2::u32 raw.max-size.height = 1080
02-12 20:24:01.771  6288 28617 D CCodecConfig:   c2::u32 raw.max-size.width = 1920
02-12 20:24:01.778  6288 28617 W Codec2Client: query -- param skipped: index = 1342179345.
02-12 20:24:01.778  6288 28617 W Codec2Client: query -- param skipped: index = 2415921170.
02-12 20:24:01.778  6288 28617 W Codec2Client: query -- param skipped: index = 1610614798.
02-12 20:24:01.779  6288 28617 D CCodecBufferChannel: [c2.android.avc.decoder#111] Created input block pool with allocatorID 16 => poolID 231 - OK (0)
02-12 20:24:01.779  6288 28617 D CCodecBufferChannel: [c2.android.avc.decoder#111] Configured output block pool ids 1 => OK
02-12 20:24:01.784  6288 28616 W ResourceManagerServiceUtils: Ignoring request to add new resource entry with value <= 0
02-12 20:24:01.785  6284 11096 D MediaBufferGroup: creating MemoryDealer
02-12 20:24:01.787  6288  8856 D BufferPoolAccessor2.0: Destruction - bufferpool2 0xe7d81228 cached: 0/0M, 0/0% in use; allocs: 6, 33% recycled; transfers: 2, 0% unfetched
02-12 20:24:01.788  6288  8856 D BufferPoolAccessor2.0: bufferpool2 0xe7d83ce8 : 0(0 size) total buffers - 0(0 size) used buffers - 1/6 (recycle/alloc) - 2/2 (fetch/transfer)
02-12 20:24:01.788  6288  8856 D BufferPoolAccessor2.0: Destruction - bufferpool2 0xe7d83ce8 cached: 0/0M, 0/0% in use; allocs: 6, 17% recycled; transfers: 2, 0% unfetched
02-12 20:24:01.790  6315 28618 D SimpleC2Component: Using output block pool with poolID 1 => got 1 - 0
02-12 20:24:01.808  6288 28617 D CCodecConfig: c2 config diff is   c2::u32 output.delay.value = 3
02-12 20:24:01.809  6288 28617 D Codec2-OutputBufferQueue: set max dequeue count 15 from update
---

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the transfer from Material Files on an Android device against a Samba drive, then inspect the reported com.hierynomus.smbj.common.SMBRuntimeException and its InterruptedException cause. The issue is resolved when file transfers complete without the repeated exception; no source file or test is identified in the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.