assert "IsValid()" failed in GetTicks(): invalid wxDateTime

Bug #1426837 reported by Jerome
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Hugin
Fix Released
Undecided
Unassigned

Bug Description

Hi.

I'm trying to run Hugin and when exporting (as jpeg), I get the following error:

assert "IsValid()" failed in GetTicks(): invalid wxDateTime

Pressing continue doesn't help. It loops in error.

When searching this on the web, I stumbled upon this bug report:

http://beersmith.com/forum/index.php?topic=4891.0

which suggests this may be related to a leap year issue. Interestingly, we happen to be the first of March. Maybe just a coincidence.

I get the same message when launching the "about" window, except pressing continue allows the window to appear.

I'm running Debian Jessie.

https://packages.debian.org/jessie/hugin

Operating System: Linux 3.18.0-trunk-amd64 x86_64
Architecture: 64 bit
Free memory: 2169168 kiB

Hugin
Version: 2014.0.0.5da69bc383dd
Path to resources: /usr/share/hugin/xrc/
Path to data: /usr/share/hugin/data/
Path to user lensfun database: /home/jerome/.local/share/lensfun

Libraries
wxWidgets: 3.0.2.0
libpano13: 2.9.19
Boost: 1.55.0
Exiv2: 0.24.0
Lensfun: 0.2.8.0

Revision history for this message
tmodes (tmodes) wrote :

When the assert message pops up is there some kind of backtrace so we can see where the assert is triggered?

Revision history for this message
Jerome (jerome-jolimont) wrote : Re: [Bug 1426837] Re: assert "IsValid()" failed in GetTicks(): invalid wxDateTime

Le Sun, 01 Mar 2015 09:35:02 -0000,
tmodes <email address hidden> a écrit :

> When the assert message pops up is there some kind of backtrace so we
> can see where the assert is triggered?

Yes. Sorry, I should have included that.

When opening "About" menu :

-------------------------------------------------------------------

ASSERT INFO:
/usr/include/wx-3.0/wx/object.h(160): assert "wxDynamicCast(ptr, T)"
failed in wxCheckCast(): wxStaticCast() used incorrectly

BACKTRACE:
[1] AboutDialog::AboutDialog(wxWindow*)
[2] MainFrame::OnAbout(wxCommandEvent&)
[3] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&,
wxEvent&) const [4]
wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&,
wxEvtHandler*, wxEvent&) [5] wxEventHashTable::HandleEvent(wxEvent&,
wxEvtHandler*) [6] wxEvtHandler::TryHereOnly(wxEvent&) [7]
wxEvtHandler::ProcessEventLocally(wxEvent&) [8]
wxEvtHandler::ProcessEvent(wxEvent&) [9]
wxWindowBase::TryAfter(wxEvent&) [10] wxWindowBase::TryAfter(wxEvent&)
[11] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[12] wxMenuBase::SendEvent(int, int)
[13] g_closure_invoke
[14] g_signal_emit_valist
[15] g_signal_emit
[16] gtk_widget_activate
[17] gtk_menu_shell_activate_item
[18] g_closure_invoke
[19] g_signal_emit_valist
[20] g_signal_emit
[21] gtk_propagate_event
[22] gtk_main_do_event
[23] g_main_context_dispatch
[24] g_main_loop_run
[25] gtk_main
[26] wxGUIEventLoop::DoRun()
[27] wxEventLoopBase::Run()
[28] wxAppConsoleBase::MainLoop()
[29] wxEntry(int&, wchar_t**)
[30] main
[31] __libc_start_main
[32] _start

-------------------------------------------------------------------

When exporting (in fact, whatever the export format):

-------------------------------------------------------------------

ASSERT INFO:
../include/wx/datetime.h(1740): assert "IsValid()" failed in
GetTicks(): invalid wxDateTime

BACKTRACE:
[1] wxDateTime::Format(wxString const&, wxDateTime::TimeZone const&)
const [2] ProjectListBox::GetAttributeString(int, Project*)
[3] ProjectListBox::AppendProject(Project*)
[4] ProjectListBox::Fill(Batch*)
[5] BatchFrame::BatchFrame(wxLocale*, wxString)
[6] PTBatcherGUI::OnInit()
[7] wxEntry(int&, wchar_t**)
[8] main
[9] __libc_start_main
[10] _start

-------------------------------------------------------------------

I can save the .pto. The error is triggered while generating the .jpg
or .tiff file.

--
Jérôme

Revision history for this message
tmodes (tmodes) wrote :

Thanks.
The issue with the about dialog I could reproduce (it triggers an other assert than in your initial report ;-). This is fixed in the repository (changeset 768b9649a243).

I was not able to reproduce the issue with PTBatcherGUI (error when stitching). But from the backtrace I added an additional check (changeset 0443fd122958). I hope this fixes the second one. Please report back if this works or not. TIA

Changed in hugin:
status: New → Fix Committed
Revision history for this message
Jerome (jerome-jolimont) wrote :

Le Sun, 01 Mar 2015 10:39:05 -0000,
tmodes <email address hidden> a écrit :

> Thanks.
> The issue with the about dialog I could reproduce (it triggers an
> other assert than in your initial report ;-). This is fixed in the
> repository (changeset 768b9649a243).
>
> I was not able to reproduce the issue with PTBatcherGUI (error when
> stitching). But from the backtrace I added an additional check
> (changeset 0443fd122958). I hope this fixes the second one. Please
> report back if this works or not. TIA
>
> ** Changed in: hugin
> Status: New => Fix Committed
>

Hi again.

I compiled latest version from Hg repo. It works fine (both about
menu and export function).

Then I checked out the commit before your fix:

hg checkout 768b9649a243

I recompiled and it also works...

I uninstalled to execute Debian version and the problem is still here.

Looks like the issues lies somewhere else.

I shall file a bug in Debian BTS.

I should have done that in the first place. Sorry about that.

Have a nice day and thanks for looking at it.

And BTW, thanks for Hugin. It is a great software.

--
Jérôme

Revision history for this message
Jerome (jerome-jolimont) wrote :

Le Sun, 01 Mar 2015 14:19:13 -0000,
Jerome <email address hidden> a écrit :

> I shall file a bug in Debian BTS.
>
> I should have done that in the first place. Sorry about that.

There was already a bug report on something that looked similar,
although it was said to be fixed.

I posted there (it should appear with a little delay).

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766093

--
Jérôme

Revision history for this message
Jerome (jerome-jolimont) wrote :

Solved in Debian thanks to your commits.

Thanks.

tmodes (tmodes)
Changed in hugin:
milestone: none → 2015.0beta1
status: Fix Committed → Fix Released
Revision history for this message
Paolo Benvenuto (donpaolo) wrote :

stil present in hugin 2021.0.0.52df0f76c700 on ubuntu 22.04

I get the error when trying to generate the panorama:

ASSERT INFO:
../include/wx/datetime.h(1740): assert "IsValid()" failed in GetTicks(): invalid wxDateTime

BACKTRACE:
[1] wxDateTime::Format(wxString const&, wxDateTime::TimeZone const&) const
[2] FillPlaceholders(std::map<wxString, wxString, std::less<wxString>, std::allocator<std::pair<wxString const, wxString> > >&, HuginBase::Panorama const&)
[3] getDefaultOutputName(wxString, HuginBase::Panorama const&, wxString)
[4] wxEntry(int&, wchar_t**)
[5] __libc_start_main

Also when, in hugin, I make help - about:

16:49:07: can't open file '/usr/share/hugin/xrc/data/COPYING.txt' (error 2: No such file or directory)
16:49:07: File couldn't be loaded.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.