Coder Social home page Coder Social logo

Comments (10)

BenoitDuffez avatar BenoitDuffez commented on August 16, 2024

Do you use v1.3? This bug was already fixed, so unless you're on the latest version I'm going to close this issue.

from androidcupsprint.

NerosTie avatar NerosTie commented on August 16, 2024

The version is 1.3.0b2 from f-droid.

from androidcupsprint.

BenoitDuffez avatar BenoitDuffez commented on August 16, 2024

Weird, my merge request for v1.3.0b2 to fdroid was bogus and rejected. I don't know exactly what is build under this version. I'll publish another merge request (likely for 1.3.1) and we'll see if this happens.

Also, fdroid refuses non-free software, so I don't have any crash logging function for the fdroid builds. I don't have any log or stack trace to investigate, so if you can provide the logcat from your device, this would help me a lot troubleshoot this issue.

from androidcupsprint.

NerosTie avatar NerosTie commented on August 16, 2024

so if you can provide the logcat from your device

11-21 22:58:35.125 16681 16681 D CUPS    : onStartPrinterStateTracking: PrinterId{serviceName=io.github.benoitduffez.cupsprint/io.github.benoitduffez.cupsprint.printservice.CupsService, localId=http://192.168.0.144:631/printers/printer}
11-21 22:58:35.126 16681 16949 I CUPS    : Checking printer status: PrinterId{serviceName=io.github.benoitduffez.cupsprint/io.github.benoitduffez.cupsprint.printservice.CupsService, localId=http://192.168.0.144:631/printers/printer}
11-21 22:58:35.136 10346 10772 D audio_hw_primary: start_output_stream: exit
11-21 22:58:35.219 16681 16949 E CUPS    : Printer not responding. Printer on fire?
11-21 22:58:35.219 16681 16949 E CUPS    : Failed to check printer PrinterId{serviceName=io.github.benoitduffez.cupsprint/io.github.benoitduffez.cupsprint.printservice.CupsService, localId=http://192.168.0.144:631/printers/printer}: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()

I think I know why. Look at the IP. It's the IP of the printer which have an internal web server (maybe a CUPS server?). But I think the IP should be my computer, right?

from androidcupsprint.

NerosTie avatar NerosTie commented on August 16, 2024

Ok I was right. I needed to "share the printer" on KDE + open the port 631... Now it works. Great work ;)

from androidcupsprint.

BenoitDuffez avatar BenoitDuffez commented on August 16, 2024

Thanks for the feedback :)

Also what's weird is that you seem to have discovered a bug with the Looper thing. I'll have to check this though. Reopening for this, because it shouldn't crash (instead, display a nice error message explaining what happened).

from androidcupsprint.

NerosTie avatar NerosTie commented on August 16, 2024

Printer on fire?

Could be the best message we can have ;)

Also, is it possible to exclude a choice from the list? Because now it detects 2 printers but one of them is wrong and I want to hide it.

from androidcupsprint.

BenoitDuffez avatar BenoitDuffez commented on August 16, 2024

Do you use https by any chance? That's what I had at some point, and I don't know why but the server keeps advertising itself over http or something.
There is code to remove the http version if https is available, but I'll have to double check this.

If it's not that, can you tell me more about the 2 printers? (e.g. their respective URIs for example)

from androidcupsprint.

NerosTie avatar NerosTie commented on August 16, 2024

Do you use https by any chance?

https on a local network? No, I don't think so.

If it's not that, can you tell me more about the 2 printers?

It's not 2 printers, but there are 2 servers for one printer. One of them is my computer with cups (it's ok) and the second one is the internal server of the printer and, sadly, it doesn't work with your app. It's a proprietary software from Samsung and your app should ignore it to avoid any confusion.

from androidcupsprint.

BenoitDuffez avatar BenoitDuffez commented on August 16, 2024

I can't find where this issue occurred because the code changed too much since then.

I'm closing this, but please reopen if you can reproduce the issue and give reproduction steps.

from androidcupsprint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.