# Linux printing broken?

**URL:** <https://forum.xojo.com/t/linux-printing-broken/29196>\
**Category:** Linux\
**Created:** [January 14, 2016, 7:16am UTC](https://forum.xojo.com/t/linux-printing-broken/29196 "2016-01-14T07:16:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jim\_mckay](https://forum.xojo.com/user_avatar/forum.xojo.com/jim_mckay/32/905_2.png) [@jim\_mckay](https://forum.xojo.com/u/jim_mckay)\
**Post date:** [January 14, 2016, 7:16am UTC](https://forum.xojo.com/t/linux-printing-broken/29196/1 "2016-01-14T07:16:09Z")

</div>

I’ve been trying to get some simple printing to function under Linux… Ubuntu 14.04  
Printing works for other applications and apps built with Xojo 2014r2.1 just fine, but 2015r4 gives me segfaults… (32bit and 64bit)

kernel: [553404.150697] DebugMyApplicat[2669]: segfault at f756f18c ip 00000000f742dcdf sp 00000000fffaf5bc error 7 in XojoGUIFramework32.so[f6f4f000+614000]

It’s very consistent. Fails 100% of the time.  
I’m wondering if some library requirement or compatibility may have changed, or do I file a bug report?  
Anybody printing successfully on Linux?

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [January 14, 2016, 8:18am UTC](https://forum.xojo.com/t/linux-printing-broken/29196/2 "2016-01-14T08:18:23Z")

</div>

Did you fill a feedback case with details?

Like which line of code in Xojo crashes.

---

<div class="post-metadata">

**Author:** ![jim\_mckay](https://forum.xojo.com/user_avatar/forum.xojo.com/jim_mckay/32/905_2.png) [@jim\_mckay](https://forum.xojo.com/u/jim_mckay)\
**Post date:** [January 14, 2016, 3:28pm UTC](https://forum.xojo.com/t/linux-printing-broken/29196/3 "2016-01-14T15:28:37Z")

</div>

Not yet. I thought I should check that it wasn’t something obvious (and sleep on it).

` Dim g As Graphics
  g = OpenPrinter()
  g.drawrect(0,0,100,100)
  `  
The openPrinter call causes the debugger to exit back to normal app execution until the window where it was called from is closed. At that point the app crashes with the segfault.

At first I thought printing was just failing and my project must have a crash somewhere else, but it happens in a new project with just the code above in a pushbutton’s action.

I’ll get a report filed today.

---

<div class="post-metadata">

**Author:** ![Axel\_Schneider](https://forum.xojo.com/user_avatar/forum.xojo.com/axel_schneider/32/465_2.png) [@Axel\_Schneider](https://forum.xojo.com/u/Axel_Schneider)\
**Post date:** [January 17, 2016, 5:53pm UTC](https://forum.xojo.com/t/linux-printing-broken/29196/4 "2016-01-17T17:53:31Z")

</div>

StyledTextPrinter does not work either in Linux. (Xojo 2015R1)

` Dim stp As StyledTextPrinter
  Dim g As Graphics
  g = OpenPrinterDialog
  If g <> Nil Then
    Dim textWidth As Integer = 72 * 7.5
    stp = main.fld.StyledTextPrinter(g, textWidth)
    stp.DrawBlock(0, 0, 72*10) // --> crash here
  End If
  Return True`

---

<div class="post-metadata">

**Author:** ![Axel\_Schneider](https://forum.xojo.com/user_avatar/forum.xojo.com/axel_schneider/32/465_2.png) [@Axel\_Schneider](https://forum.xojo.com/u/Axel_Schneider)\
**Post date:** [January 17, 2016, 9:55pm UTC](https://forum.xojo.com/t/linux-printing-broken/29196/5 "2016-01-17T21:55:48Z")

</div>

Message is

[quote]main.main.btnprint\_Action%%o\<main.main\>o  
Delegate.IM\_Invoke%%o  
AddHandler.Stub.17%%[/quote]

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 6:08pm UTC](https://forum.xojo.com/t/linux-printing-broken/29196/6 "2020-10-29T18:08:35Z")

</div>


