java.lang.IllegalArgumentException: end cannot be less than zero.

Stack Overflow | Huebi | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Android PrintServer crashes when pressing print button while rendering preview

    Stack Overflow | 7 months ago | Huebi
    java.lang.IllegalArgumentException: end cannot be less than zero.
  2. 0

    Print Spooler has stopped in PrintManager

    Stack Overflow | 7 months ago | Ajit
    java.lang.IllegalArgumentException: end cannot be less than zero.

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      end cannot be less than zero.

      at android.print.PageRange.<init>()
    2. Android Platform
      PageRange.<init>
      1. android.print.PageRange.<init>(PageRange.java:50)
      1 frame
    3. com.android.printspooler
      RemotePrintDocument$WriteCommand$WriteHandler.handleMessage
      1. com.android.printspooler.util.PageRangeUtils.asAbsoluteRange(PageRangeUtils.java:199)
      2. com.android.printspooler.ui.PrintActivity$DocumentTransformer.computePagesToShred(PrintActivity.java:2620)
      3. com.android.printspooler.ui.PrintActivity$DocumentTransformer.<init>(PrintActivity.java:2496)
      4. com.android.printspooler.ui.PrintActivity.transformDocumentAndFinish(PrintActivity.java:1733)
      5. com.android.printspooler.ui.PrintActivity.requestCreatePdfFileOrFinish(PrintActivity.java:967)
      6. com.android.printspooler.ui.PrintActivity.onUpdateCompleted(PrintActivity.java:492)
      7. com.android.printspooler.model.RemotePrintDocument.notifyUpdateCompleted(RemotePrintDocument.java:385)
      8. com.android.printspooler.model.RemotePrintDocument.access$900(RemotePrintDocument.java:55)
      9. com.android.printspooler.model.RemotePrintDocument$1.onDone(RemotePrintDocument.java:117)
      10. com.android.printspooler.model.RemotePrintDocument$WriteCommand.handleOnWriteFinished(RemotePrintDocument.java:1000)
      11. com.android.printspooler.model.RemotePrintDocument$WriteCommand.access$2200(RemotePrintDocument.java:867)
      12. com.android.printspooler.model.RemotePrintDocument$WriteCommand$WriteHandler.handleMessage(RemotePrintDocument.java:1061)
      12 frames
    4. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:102)
      2. android.os.Looper.loop(Looper.java:234)
      3. android.app.ActivityThread.main(ActivityThread.java:5526)
      3 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames