Printing in Linux

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Dr. Linux
Posts: 28
Joined: Tue Aug 13, 2013 2:26 am

Printing in Linux

Post by Dr. Linux » Tue Sep 17, 2013 10:50 pm

Hello guys,
I have been trying (with no luck) to print. I am using Ubuntu 12.04 Linux but anytime I put "print card" in a handler the IDE crashes. I've tried pdfs, various settings but everytime it crashes my IDE. It does the same thing in my standalone app also. I am using the most current version of LiveCode and before in previous versions, I thought It might be a bug that would be fixed. No such luck. I have all the required libs and apps that are listed in the installation guide for Linux. Does anyone have a work around for this or a suggestion as to how I might fix the problem?
Your help is greatly appreciated,
Dr.L

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Printing in Linux

Post by FourthWorld » Tue Sep 17, 2013 10:58 pm

Glad to see I'm not the only one. I haven't yet reported this - have you?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Dr. Linux
Posts: 28
Joined: Tue Aug 13, 2013 2:26 am

Re: Printing in Linux

Post by Dr. Linux » Wed Sep 18, 2013 1:37 am

No, I was hoping someone else had the same issue and came up with a solution. What is the process for reporting something like this to LC? Should I lay on the ground and kick and scream while making circles, then send the video to LC? :D
Dr. L

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Printing in Linux

Post by FourthWorld » Wed Sep 18, 2013 1:48 am

To file a report you can create a free account here:
http://quality.runrev.com/

If you do, please post the report number here so I can add my comments to the report after I've done some more testing.

Thanks!
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Dr. Linux
Posts: 28
Joined: Tue Aug 13, 2013 2:26 am

Re: Printing in Linux

Post by Dr. Linux » Wed Sep 18, 2013 2:26 am

I filed an official bug report the number is: Bug 11197. Thank you for the link.
Dr. L

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Printing in Linux

Post by FourthWorld » Wed Sep 18, 2013 5:44 am

Thanks for creating the report. While testing I found the issue isn't limited to RunRev's PDF output, but also crashes when using the OS PDF option as well, now added to your report. Fingers crossed this gets handled for v6.5.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Printing in Linux

Post by MaxV » Wed Sep 18, 2013 10:43 am

I print on PDF on Linux without problem, I follow this steps: http://livecode.wikia.com/wiki/Printing
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Printing in Linux

Post by FourthWorld » Wed Sep 18, 2013 5:37 pm

@MaxV: Thanks for the tip with formatForPrinting. The docs say it's for Windows only, so once I can confirm it helps on Linux I'll file a bug report to fix the docs. Thanks.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Printing in Linux

Post by FourthWorld » Thu Sep 19, 2013 3:37 am

I finally got a moment to check whether the formatforPrinting property improves printing on Linux - sadly, it does not.

I also tried setting the other two properties in the code examples on that page, the printMargins and printPaperSize. Since both relate only the internal rendering metric before handing off the image to the print driver I wouldn't have expected them to affect things, but I'm desperate so it seemed worth a try. Sadly, neither prevented the crash.

When I get some time later I'll repeat the test with strace so we can at least see which system call is causing the crash. Once I get that I'll file the bug report and post the # here.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Printing in Linux

Post by FourthWorld » Thu Sep 19, 2013 4:14 am

It only took a minute to run the strace test, so I filed the report:
http://quality.runrev.com/show_bug.cgi?id=11201

Nothing looks at all obvious to me there, but hopefully the team will be able to track this down before the next release.

If you have any additional info to provide for that report, please do so. Thanks.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Printing in Linux

Post by FourthWorld » Fri Sep 20, 2013 2:46 pm

Hanson at RunRev has begun investigating the crash when printing, but thus far has been unable to reproduce the issue. If any of you who've seen this have additional info which may help them find a recipe for reproducing it, please add it to the report:
http://quality.runrev.com/show_bug.cgi?id=11197
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply