1. 123_Fenrir's Avatar
    My company has recently hired a system that allows our external salesmen to generate and print invoices through tablets and bluetooth printers, using their app.

    We've acquired 6 Samsung Tab A (SM-T285) for that, and we're running into some trouble that even the developers can't understand. We've been working together trying to figure out solutions, and having failed, we turn to you now.

    The application keeps crashing at random times, although most of them happen when printing something. All we get is the message "The application has stopped", without any other information. And oddly enough, their other clients that use this same model aren't encountering this problem, only our 6 tablets are victims.

    We've tried everything from factory reset to rooting and even to making changes in the app's code, but nothing has worked so far. Do you guys have any ideas?
    06-26-2019 05:47 PM
  2. belodion's Avatar
    Welcome.

    Have you tried Safe Mode?

    Also, are the other clients using the same Bluetooth printers?
    06-26-2019 06:18 PM
  3. Rukbat's Avatar
    The first step you must get to is being able to reproduce the failure at will. Until you can do that, they can spend 10 years and never find the problem.

    Once you can reproduce it, tell them how - and they'll probably have it fixed in a day or two at the most. (They reproduce it while it's running in a debugger, so they can see exactly what instruction is causing it to fail - then they rewrite it so it doesn't.) I'm not "trying to get rid of you" or anything - I'm retired ... from 46 years of fixing software bugs like that. If you can't reproduce it on demand, your odds of finding it are about the same as winning the lottery without buying a ticket. (We had a database that kept on blowing up even though all the code [so we thought] was error-trapped for 6 months. A customer finally figured out how to force it to fail. After that it took 5 minutes to find the typo that was causing it.)
    06-26-2019 06:20 PM
  4. mustang7757's Avatar
    My company has recently hired a system that allows our external salesmen to generate and print invoices through tablets and bluetooth printers, using their app.

    We've acquired 6 Samsung Tab A (SM-T285) for that, and we're running into some trouble that even the developers can't understand. We've been working together trying to figure out solutions, and having failed, we turn to you now.

    The application keeps crashing at random times, although most of them happen when printing something. All we get is the message "The application has stopped", without any other information. And oddly enough, their other clients that use this same model aren't encountering this problem, only our 6 tablets are victims.

    We've tried everything from factory reset to rooting and even to making changes in the app's code, but nothing has worked so far. Do you guys have any ideas?
    This kind of problem will be very hard to trace just text back and forth .
    Look at settings in Bluetooth from tablet to the printer see anything there or try a different Bluetooth printer , also maybe the app is a issue , what steps have you taken so we could avoid going over same ones?
    06-26-2019 08:10 PM
  5. 123_Fenrir's Avatar
    Welcome.

    Have you tried Safe Mode?

    Also, are the other clients using the same Bluetooth printers?

    That's an interesting idea. But doesn't safe mode block all third-party apps, including the one I wanna test?

    And yes, everyone's using the same printer model.

    The first step you must get to is being able to reproduce the failure at will. Until you can do that, they can spend 10 years and never find the problem.

    Once you can reproduce it, tell them how - and they'll probably have it fixed in a day or two at the most. (They reproduce it while it's running in a debugger, so they can see exactly what instruction is causing it to fail - then they rewrite it so it doesn't.) I'm not "trying to get rid of you" or anything - I'm retired ... from 46 years of fixing software bugs like that. If you can't reproduce it on demand, your odds of finding it are about the same as winning the lottery without buying a ticket. (We had a database that kept on blowing up even though all the code [so we thought] was error-trapped for 6 months. A customer finally figured out how to force it to fail. After that it took 5 minutes to find the typo that was causing it.)
    I know, dealing with errors that pop up at random is incredibly hard. Problem is, we've already tried setting aside every single variable, from type of document being printed, to the printer being on stand-by, to prints happening in a row, to internet connection quality... And there's just nothing in common between the errors. We've even sent them one of our tablets so that they could try to reproduce it, but they've only found it's random.

    Do you have an idea of what variable we might not have considered so far?


    This kind of problem will be very hard to trace just text back and forth .
    Look at settings in Bluetooth from tablet to the printer see anything there or try a different Bluetooth printer , also maybe the app is a issue , what steps have you taken so we could avoid going over same ones?
    Trying a different printer sounds like a plan. I'll see if I can borrow one. The app might have a problem, yes, if we could figure out why the error only happens on our tablets, we could find out what that problem exactly is.

    Alright, so we've been fighting this battle for a few months now, I'll try to remember everything we've done.

    We have scanned our database for errors, but found nothing. We've rooted a device, deleted bloatware, did a factory reset, tried swapping the printers, recompiling the app, printing with the internet turned off, printing with good conection, with bad connection, rewriting the printing settings inside the app.

    In fact, this last attempt seems to have made a tiny difference, they've added a command to clean the printer's buffer after every print and in my tests that seems to have made the error occur a little less frequently.
    06-27-2019 05:28 PM
  6. Rukbat's Avatar
    Aha! Maybe the size of the documents?
    06-27-2019 06:04 PM
  7. belodion's Avatar
    That's an interesting idea. But doesn't safe mode block all third-party apps, including the one I wanna test?
    You’re right, it does. I failed to see that.
    06-28-2019 02:47 PM
  8. mustang7757's Avatar
    Looks like tablets not the problem
    Focus would be the App or try different printer.
    06-28-2019 02:53 PM
  9. UnyteLux's Avatar
    I doubt that you are going to find a solution to this issue through a forum such as this one. You do need to have some clue as to what might possibly be going wrong. You mention that you made changes to the app code so I assume that you are technically minded? If so, consider doing two things

    1. Monitor system CPU, storage and memory usage - something like Simple System Monitor on Play Store by Darshan Parjuli will do the trick. If there is a spike in usage of any of these resources you have a clue
    2. Monitor LogCat messages - try LogCat[NO ROOT] by Anton Tananev on Play Store. Typically there are 1000s of messages flying through LogCat at any given time. However, you can filter out what is not relevant with a bit of trial and error.


    I am still a newbie here so I am probably not allowed to put in links which is why I have given you the names of the tools to use along with their developers. Disclosure - neither have anything to do with me.

    You should try do do exactly the same thing on another device which is known not to have the problem. If you notice a striking difference you will at least be on the road to identifying the source of the problem.
    07-05-2019 03:19 AM

Similar Threads

  1. How to connect Android studio with sqlserver database
    By Android Central Question in forum Software Development and Hacking
    Replies: 2
    Last Post: 06-28-2019, 03:18 PM
  2. Sharing contacts from Knox Secure Workspace with car via bluetooth
    By Pascal4538 in forum Samsung SAFE and KNOX
    Replies: 1
    Last Post: 06-26-2019, 03:39 PM
  3. Galaxy Watch - File Help
    By BenGW91 in forum Samsung Galaxy Watch
    Replies: 1
    Last Post: 06-26-2019, 02:09 PM
  4. How to connect Android studio with sqlserver database
    By Android Central Question in forum Ask a Question
    Replies: 0
    Last Post: 06-26-2019, 12:49 PM
LINK TO POST COPIED TO CLIPBOARD