Failure at Pre-Processing - Error msg "format specifier doesn't match argument type"

125 views
Skip to first unread message

Peter “DeepFrequency” Zabriskie

unread,
Mar 13, 2025, 3:32:56 AM3/13/25
to hugin and other free panoramic software
Hi Folks, I am trying to use Hugin on an Ubuntu Studio 24.04 / KDE Wayland OS. It is a pre-installed app. It appears to work extremely well and correctly up to the point of Pre-Processing. Where I get this error msg. See Screenshot.

I have been trying to read and troubleshoot this to no avail. I did per FAQ and the Temporary Files limitations open Hugin with the command listed.
```TMPDIR=/media/disk-2/tmp hugin &```

This command did indeed open Hugin. But returned a very long Warnings/Critical list.if there are any Admin or developers who can help. Please RSVP. 
I post the return here:

```
peterzabriskie@*******-MS-7D98:~$ TMPDIR=/media/disk-2/tmp hugin &
[1] 17835
peterzabriskie@*******-MS-7D98:~$  
(hugin:17835): Gtk-CRITICAL **: 23:20:55.085: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:17835): Gtk-CRITICAL **: 23:20:55.105: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:17835): Gtk-WARNING **: 23:20:55.118: Theme directory places/128 of theme ubuntustudio-dark has no size
field


(hugin:17835): Gtk-WARNING **: 23:20:55.118: Theme directory places/scalable of theme ubuntustudio-dark has no
size field


(hugin:17835): Gtk-CRITICAL **: 23:20:55.148: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:17835): Gtk-CRITICAL **: 23:20:55.149: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:17835): Gtk-CRITICAL **: 23:20:55.149: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:17835): Gtk-CRITICAL **: 23:20:55.149: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:17835): Gtk-CRITICAL **: 23:20:55.149: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:17835): Gtk-CRITICAL **: 23:20:55.152: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:17835): Gtk-CRITICAL **: 23:20:55.153: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:17835): Gtk-CRITICAL **: 23:20:55.153: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:17835): Gtk-CRITICAL **: 23:20:55.154: gtk_widget_set_size_request: assertion 'height >= -1' failed

(hugin:17835): Gtk-CRITICAL **: 23:20:55.154: gtk_widget_set_size_request: assertion 'height >= -1' failed
/usr/share/hugin/data/plugins/woa.py
  CAT:Control Points
  NAM:Warped Overlap Analysis
  fails @api-max
/usr/share/hugin/data/plugins/top_five.py
  CAT:Control Points
  NAM:keep 5 CPs per image pair
  fails @api-max

(hugin:17835): Gtk-WARNING **: 23:20:55.313: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:20:55.313: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:20:55.313: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:20:55.313: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)
ERROR: 23:20:55.514402 (./src/hugin1/hugin/huginApp.cpp:479) OnInit(): Tempdir could not be created: /media/di
sk-2/tmp
ERROR: 23:20:55.514430 (./src/hugin1/hugin/huginApp.cpp:483) OnInit(): could not change to temp. dir: /media/d
isk-2/tmp

(hugin:17835): Gtk-CRITICAL **: 23:23:20.957: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkSp
inButton

(hugin:17835): Gtk-CRITICAL **: 23:23:20.957: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkSp
inButton

(hugin:17835): Gtk-CRITICAL **: 23:23:20.962: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkSp
inButton

(hugin:17835): Gtk-CRITICAL **: 23:23:20.963: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkSp
inButton

(PTBatcherGUI:18170): Gtk-WARNING **: 23:23:47.589: Theme directory places/128 of theme ubuntustudio-dark has
no size field


(PTBatcherGUI:18170): Gtk-WARNING **: 23:23:47.589: Theme directory places/scalable of theme ubuntustudio-dark
has no size field


(PTBatcherGUI:18170): Gtk-WARNING **: 23:23:47.752: for_size smaller than min-size (20 < 24) while measuring g
adget (node check, owner GtkCheckButton)
/usr/include/wx-3.2/wx/strvararg.h(484): assert "(argtype & (wxFormatStringSpecifier<T>::value)) == argtype" f
ailed in wxArgNormalizer(): format specifier doesn't match argument type

(PTBatcherGUI:18170): Gtk-WARNING **: 23:23:47.823: for_size smaller than min-size (20 < 24) while measuring g
adget (node check, owner GtkCheckButton)

(hugin:17835): Gtk-CRITICAL **: 23:24:02.302: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkSp
inButton

(hugin:17835): Gtk-CRITICAL **: 23:24:02.302: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkSp
inButton

(hugin:17835): Gtk-CRITICAL **: 23:24:02.308: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkSp
inButton

(hugin:17835): Gtk-CRITICAL **: 23:24:02.308: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkSp
inButton

(hugin:17835): Gtk-WARNING **: 23:24:08.986: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:08.986: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)
Optimizing Variables
Strategy 1
Average (rms) distance between Controlpoints  
after 0 iteration(s):          1.88261411426471 units
Strategy 1
Average (rms) distance between Controlpoints  
after 1 iteration(s):          1.88261411426471 units

Optimizing Variables
Strategy 2
Average (rms) distance between Controlpoints  
after 0 iteration(s):          1.88261412882203 units
Strategy 2
Average (rms) distance between Controlpoints  
after 1 iteration(s):          1.87528923636413 units
Strategy 2
Average (rms) distance between Controlpoints  
after 2 iteration(s):          1.87528923274624 units

Optimizing Variables
Strategy 1
Average (rms) distance between Controlpoints  
after 0 iteration(s):          1.68845771789087 units
Strategy 1
Average (rms) distance between Controlpoints  
after 1 iteration(s):          1.68845771789087 units

Optimizing Variables
Strategy 2
Average (rms) distance between Controlpoints  
after 0 iteration(s):          1.68845772919128 units
Strategy 2
Average (rms) distance between Controlpoints  
after 1 iteration(s):          1.67752736999497 units
Strategy 2
Average (rms) distance between Controlpoints  
after 2 iteration(s):          1.67752736932919 units


(hugin:17835): Gtk-WARNING **: 23:24:27.285: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:27.285: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:27.351: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:27.351: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:27.369: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:27.369: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:27.607: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:27.607: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:27.639: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:27.639: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:27.658: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:27.658: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:27.675: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:27.675: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:27.692: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:27.692: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)
Optimizing Variables
Strategy 1
Average (rms) distance between Controlpoints  
after 0 iteration(s):          1.88260953816455 units
Strategy 1
Average (rms) distance between Controlpoints  
after 1 iteration(s):          1.88260953816455 units

Optimizing Variables
Strategy 2
Average (rms) distance between Controlpoints  
after 0 iteration(s):          1.88260955271987 units
Strategy 2
Average (rms) distance between Controlpoints  
after 1 iteration(s):           1.8752892363906 units
Strategy 2
Average (rms) distance between Controlpoints  
after 2 iteration(s):          1.87528923274631 units

Optimizing Variables
Strategy 1
Average (rms) distance between Controlpoints  
after 0 iteration(s):          1.68843511233751 units
Strategy 1
Average (rms) distance between Controlpoints  
after 1 iteration(s):          1.68843511233751 units

Optimizing Variables
Strategy 2
Average (rms) distance between Controlpoints  
after 0 iteration(s):          1.68843512363635 units
Strategy 2
Average (rms) distance between Controlpoints  
after 1 iteration(s):          1.67752735525322 units
Strategy 2
Average (rms) distance between Controlpoints  
after 2 iteration(s):           1.6775273546288 units


(hugin:17835): Gtk-WARNING **: 23:24:49.492: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.492: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.526: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.527: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.544: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.544: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.604: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.604: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.636: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.636: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.657: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.657: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.726: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.726: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.758: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.758: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.775: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.775: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.796: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.796: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.853: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.853: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.872: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:24:49.872: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:25:04.282: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:25:04.282: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:25:04.393: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)

(hugin:17835): Gtk-WARNING **: 23:25:04.393: for_size smaller than min-size (21 < 24) while measuring gadget (
node button, owner GtkSpinButton)





Screenshot_20250311_130053.png

Bruno Postle

unread,
Mar 13, 2025, 3:50:04 AM3/13/25
to hugin and other free panoramic software
Most of the output is just wxgtk complaining, the only error is this:

ERROR: 23:20:55.514402 (./src/hugin1/hugin/huginApp.cpp:479) OnInit(): Tempdir could not be created: /media/disk-2/tmp
ERROR: 23:20:55.514430 (./src/hugin1/hugin/huginApp.cpp:483) OnInit(): could not change to temp. dir: /media/disk-2/tmp

..which suggests this path doesn't exist or can't be created.

What this the result of:

    mkdir -p /media/disk-2/tmp

-- 
Bruno

Peter Zabriskie

unread,
Mar 14, 2025, 12:08:32 AM3/14/25
to hugi...@googlegroups.com
Thank you for taking time to look into this with me. 
Why can't I get past the Pre-Processing step in Hugin without getting this message?

And I don't understand this part.
What this the result of:

    mkdir -p /media/disk-2/tmp
This looks like a command to make a temporary directory.
Is that what you are suggesting I do?
What I do not understand is why this program that came built in Ubuntu Studio is giving me this "assertion failed" error message that is in the screenshot. Which is why I tried opening the program with the recommended TEMPDIR=/media/disk-2temp hugin &
Which also failed to operate past the Pre-Processing step.

Is the fix for this "assertion fail" to make a temp dir?
Thanks again for your time.  --Pete


--
A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ
---
You received this message because you are subscribed to a topic in the Google Groups "hugin and other free panoramic software" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hugin-ptx/iat9nqksW2w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hugin-ptx+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/hugin-ptx/CAJV99Zgzp2jnO2-SO10JGaHy%3D5eNt%2BA%3DToSJNonwFa5rU74Naw%40mail.gmail.com.


--
Prayer does not use up artificial energy, doesn't burn up any fossil fuel, doesn't pollute. Neither does song, neither does love, neither does the dance.
Margaret Mead

Bruno Postle

unread,
Mar 14, 2025, 3:14:00 AM3/14/25
to hugin and other free panoramic software
Sorry, this is an autocomplete mistake. I was suggesting that you ran the command to see what happens.

The only reason you would start Hugin like this is if you have a special disk (such as a usb stick) where you want to put temporary files: 

     TEMPDIR=/media/disk-2/temp hugin &

If this 'disk-2' doesn't exist then Hugin won't work.

Your computer should already have a suitable place for temporary files, Hugin will use that automatically, so just start Hugin by typing the name of the program:

    hugin

(you don't need the '&', this is just a complication, but feel free to ask)

-- 
Bruno

On Fri, 14 Mar 2025, 04:08 Peter Zabriskie wrote:
Thank you for taking time to look into this with me. 
Why can't I get past the Pre-Processing step in Hugin without getting this message?

And I don't understand this part.
What this the result of:

    mkdir -p /media/disk-2/tmp
This looks like a command to make a temporary directory.
Is that what you are suggesting I do?
What I do not understand is why this program that came built in Ubuntu Studio is giving me this "assertion failed" error message that is in the screenshot. Which is why I tried opening the program with the recommended TEMPDIR=/media/disk-2temp hugin &
Which also failed to operate past the Pre-Processing step.

Is the fix for this "assertion fail" to make a temp dir?
Thanks again for your time.  --Pete


On Thu, Mar 13, 2025 at 12:50 AM Bruno Postle wrote:
Most of the output is just wxgtk complaining, the only error is this:

ERROR: 23:20:55.514402 (./src/hugin1/hugin/huginApp.cpp:479) OnInit(): Tempdir could not be created: /media/disk-2/tmp
ERROR: 23:20:55.514430 (./src/hugin1/hugin/huginApp.cpp:483) OnInit(): could not change to temp. dir: /media/disk-2/tmp

..which suggests this path doesn't exist or can't be created.

What this the result of:

    mkdir -p /media/disk-2/tmp

Peter Zabriskie

unread,
Mar 14, 2025, 1:20:30 PM3/14/25
to hugi...@googlegroups.com
OK so ignoring the TMPDIR=/media/disk-2/tmp hugin &  ....I start Hugin from my list of apps in Ubuntu Studio "Hugin Panorama Creator"
WHY am I getting this response at the Pre-Processing stage??? I can not get past this to produce a panorama.
Screenshot_20250311_130053.png


--
A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ
---
You received this message because you are subscribed to a topic in the Google Groups "hugin and other free panoramic software" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hugin-ptx/iat9nqksW2w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hugin-ptx+...@googlegroups.com.

Bruno Postle

unread,
Mar 14, 2025, 3:08:06 PM3/14/25
to hugi...@googlegroups.com
I don't know why you are getting this error, possibly this is an ubuntu packaging problem.

Does it work if you open a terminal and start hugin by typing 'hugin' and nothing else? Any error messages should be more readable in the terminal.

-- 
Bruno
Reply all
Reply to author
Forward
0 new messages