Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CoderMalfunctionError on CharsetEncoder#encode #4153

Open
amaze-issue-automation bot opened this issue Apr 15, 2024 · 1 comment
Open

CoderMalfunctionError on CharsetEncoder#encode #4153

amaze-issue-automation bot opened this issue Apr 15, 2024 · 1 comment
Labels
From-telegram Issue reported through telegram channel Issue-Bug Related unexpected behavior or something worth investigating. Not-reproducible An issue that can't be reproduced by following the suggested steps

Comments

@amaze-issue-automation
Copy link

amaze-issue-automation bot commented Apr 15, 2024

Issue explanation (write below this line)

Exception

  • App Name: Administrador de Archivos Amaze
  • Package: com.amaze.filemanager
  • Version: 3.8.5
  • User Action: UI Error
  • Request: Application crash
  • OS: Linux motorola/caprip_retail/caprip:12/S0RC32.41-10-19/ba256-91a54b:user/release-keys 12 - 31
  • Device: caprip
  • Model: moto g(30)
  • Product: caprip_retail
Crash log

java.nio.charset.CoderMalfunctionError: java.lang.IllegalArgumentException: Bad position 30/24
 at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:624)
 at org.apache.mina.core.buffer.AbstractIoBuffer.putString(AbstractIoBuffer.java:1811)
 at org.apache.ftpserver.listener.nio.FtpResponseEncoder.encode(FtpResponseEncoder.java:49)
 at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:299)
 at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:629)
 at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1500(DefaultIoFilterChain.java:48)
 at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:957)
 at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:84)
 at org.apache.mina.filter.logging.MdcInjectionFilter.filter(MdcInjectionFilter.java:135)
 at org.apache.mina.filter.util.CommonEventFilter.filterWrite(CommonEventFilter.java:80)
 at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:629)
 at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1500(DefaultIoFilterChain.java:48)
 at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:957)
 at org.apache.mina.core.filterchain.IoFilterAdapter.filterWrite(IoFilterAdapter.java:123)
 at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:629)
 at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1500(DefaultIoFilterChain.java:48)
 at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:957)
 at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:881)
 at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:629)
 at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:622)
 at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:574)
 at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:519)
 at org.apache.ftpserver.impl.FtpIoSession.write(FtpIoSession.java:530)
 at org.apache.ftpserver.command.impl.OPTS_UTF8.execute(OPTS_UTF8.java:54)
 at org.apache.ftpserver.command.impl.OPTS.execute(OPTS.java:84)
 at org.apache.ftpserver.impl.DefaultFtpHandler.messageReceived(DefaultFtpHandler.java:211)
 at org.apache.ftpserver.listener.nio.FtpHandlerAdapter.messageReceived(FtpHandlerAdapter.java:62)
 at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:858)
 at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
 at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48)
 at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:947)
 at org.apache.ftpserver.listener.nio.FtpLoggingFilter.messageReceived(FtpLoggingFilter.java:85)
 at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
 at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48)

Reporter: chexmo

@amaze-issue-automation amaze-issue-automation bot added the From-telegram Issue reported through telegram channel label Apr 15, 2024
@VishnuSanal
Copy link
Member

VishnuSanal commented Apr 25, 2024

@OP what action lead to this crash? the stacktrace doesn't point to any code in Amaze.

@TranceLove can you take a look? this may point to SevenZFile L#2127 (StandardCharsets.UTF_16LE.encode), but that is Charset#encode & not CharsetEncoder#encode. this may also point to somewhere in FTPService, since that is where we use org.apache.ftpserver.* extensively. 🤔

@VishnuSanal VishnuSanal added Issue-Bug Related unexpected behavior or something worth investigating. Not-reproducible An issue that can't be reproduced by following the suggested steps labels Apr 25, 2024
@VishnuSanal VishnuSanal changed the title Crash reported by chexmo CoderMalfunctionError on CharsetEncoder#encode Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
From-telegram Issue reported through telegram channel Issue-Bug Related unexpected behavior or something worth investigating. Not-reproducible An issue that can't be reproduced by following the suggested steps
Projects
None yet
Development

No branches or pull requests

1 participant