Comments (10)
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.
The version is 1.3.0b2 from f-droid.
from androidcupsprint.
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.
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.
Ok I was right. I needed to "share the printer" on KDE + open the port 631... Now it works. Great work ;)
from androidcupsprint.
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.
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.
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.
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.
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)
- CupsPrinterDiscoverySession.java line 163
- IppOperation.kt line 186
- UntrustedCertActivity.kt line 21
- CupsPrinterDiscoverySession.java line 253
- CUPS encryption. HOT 1
- CupsPrinterDiscoverySession.java line 441
- CupsPrinterDiscoverySession.kt line 449
- Password protected printer not reachable HOT 1
- Development setup guide HOT 2
- CUPS printer becomes unavailable HOT 1
- SSL cert from Let's Encrypt not trusted
- Can't manage CUPS certificates
- Screenshots for F-Droid
- New release when? HOT 1
- androidcupsprint does not recirds the printer
- "Couldn't find job #, is it already finished?" after each Job HOT 1
- Old gradle version is been used, fix breaking changes in build.gradle HOT 1
- spanish strings.xml is faulty HOT 1
- can I send prints via rest api? HOT 1
- "printer is not responding" but it is on HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from androidcupsprint.