10-16-2016, 07:10 PM
You are hitting a strange bug. There is only one place in the Gimp code where this message occurs, it is this very small function, that calls the fseek() system API.
There are only two ways to make it return the "invalid argument" message:
If the cumulated sizes of the two files is bigger than 2GB, you have a good candidate for a bug report on http://bugzilla.gnome.org.
Code:
gboolean
xcf_seek_pos (XcfInfo *info,
guint pos,
GError **error)
{
if (info->cp != pos)
{
info->cp = pos;
if (fseek (info->fp, info->cp, SEEK_SET) == -1)
{
g_set_error (error, G_FILE_ERROR, g_file_error_from_errno (errno),
_("Could not seek in XCF file: %s"),
g_strerror (errno));
return FALSE;
}
}
return TRUE;
}
There are only two ways to make it return the "invalid argument" message:
- use an invalid seek type (but since SEEK_SET is hardcoded that can't be it)
- use a negative value...
If the cumulated sizes of the two files is bigger than 2GB, you have a good candidate for a bug report on http://bugzilla.gnome.org.