After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 329356 - crash on looping "Invaild date value" warning
crash on looping "Invaild date value" warning
Status: RESOLVED DUPLICATE of bug 335622
Product: evolution
Classification: Applications
Component: Calendar
2.6.x
Other All
: High critical
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
: 330114 331109 331231 332319 359025 (view as bug list)
Depends on:
Blocks: 327508
 
 
Reported: 2006-01-31 15:11 UTC by sangu
Modified: 2013-09-13 01:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Fixes the bug. (1.68 KB, patch)
2006-02-23 21:51 UTC, Chenthill P
none Details | Review
Fixes the bug. (1.92 KB, patch)
2006-02-23 22:20 UTC, Chenthill P
committed Details | Review

Description sangu 2006-01-31 15:11:47 UTC
Please describe the problem:
Because of Invaild date value in LANG=ko_KR.UTF-8, appointment Can't be saved.

Ignoring Invaild date value message, and tring to save at every moment,
evolution crashs.

But appointment works well in en_US.UTF-8
Backtrace was generated from '/usr/bin/evolution'

Using host libthread_db library "/lib/libthread_db.so.1".
`shared object read from target memory' has disappeared; keeping its symbols.
[Thread debugging using libthread_db enabled]
[New Thread -1208441168 (LWP 4241)]
[New Thread 1953926048 (LWP 4380)]
[New Thread -1260520544 (LWP 4248)]
[New Thread -1222100064 (LWP 4247)]
0x00ff6402 in __kernel_vsyscall ()

Thread 1 (Thread -1208441168 (LWP 4241))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/libpthread.so.0
  • #2 libgnomeui_segv_handle
    at gnome-ui-init.c line 792

Steps to reproduce:
1. $LANG=ko_KR.UTF-8 evolution -c calendar
2. ctrl + n ( for new appointment)
3. type some string.
4. ctrl + s


Actual results:


Expected results:


Does this happen every time?
always

Other information:
fedora rawhide
evolution-2.5.90-1
gtkhtml3-3.9.90-1
evolution-data-server-1.5.90-1
Comment 1 André Klapper 2006-01-31 20:17:36 UTC
shortening the summary so it is readable in search results
Comment 2 sangu 2006-02-09 06:56:17 UTC
This problem happens in All cjk locale (like LANG=ko_KR. ja_JP and zh_CN.UTF-8)).
Comment 3 Philippe Rouquier 2006-02-13 10:04:31 UTC
It happens also with the French locale fr_FR.UTF-8/fr_FR. It displays the date in the following format "dd.mm.yy" which gives the error message "Invalid Date Value".
NOTE: If you modify it into the following one "dd/mm/yy", it works.
Comment 4 André Klapper 2006-02-15 14:20:20 UTC
*** Bug 331109 has been marked as a duplicate of this bug. ***
Comment 5 André Klapper 2006-02-15 14:25:21 UTC
confirming because of the duplicates, lowering severity as there is no data loss, raising priority.

according to bug 331109 this seems to work when using language English (US).
Comment 6 younker 2006-02-15 14:56:04 UTC
*** Bug 331231 has been marked as a duplicate of this bug. ***
Comment 7 Jeff Bailey 2006-02-17 13:11:09 UTC
I think "no data loss" may be a misleading statement here.  In order to change a record in any way that has a date currently in it, the dated information (birthdate, anniversary) has to be removed.  So you wind up making a decision about what data is more important and having to potentially discard some.
Comment 8 Sebastien Bacher 2006-02-20 09:32:27 UTC
Ubuntu bug about that: https://launchpad.net/distros/ubuntu/dapper/+source/evolution/+bug/32089
Comment 9 Karsten Bräckelmann 2006-02-23 13:00:50 UTC
*** Bug 332319 has been marked as a duplicate of this bug. ***
Comment 10 Karsten Bräckelmann 2006-02-23 13:07:17 UTC
Severity critical, this is a crasher.

See bug 332319 for another way of reproducing the very same crash.


Regarding comment 5: Please note, that most of my LC_* env vars are set to de_DE.UTF-8 -- however, neither LANG nor LC_TIME is.

 LANG=en_US.UTF-8
 LC_TIME=en_GB.UTF-8
Comment 11 Sebastien Bacher 2006-02-23 14:01:35 UTC
using a french locale I've no crash, but evolution goes to a sort of "invalid date value" loop which makes it hard to close the window and impossible to pick a date for a meeting, etc. Should that be a separate bug (some such descriptions have been marked as dup of that one)? 
Comment 12 Karsten Bräckelmann 2006-02-23 17:19:52 UTC
Agreed. This is the crasher part. :)  Adjusting summary.

Please see bug 332318 for some details on the broken date input/output logic.
Comment 13 Chenthill P 2006-02-23 21:17:48 UTC
Fix committed.
Comment 14 Chenthill P 2006-02-23 21:51:03 UTC
Created attachment 60022 [details] [review]
Fixes the bug.
Comment 15 Chenthill P 2006-02-23 22:20:10 UTC
Created attachment 60025 [details] [review]
Fixes the bug.
Comment 16 younker 2006-02-24 00:19:30 UTC
Patch agains evolution-data-server 1.5.911, 
but this time the error is 
Invalid Time Value, not Invalid Date Value

Locale zh_CN.UTF-8
Comment 17 Karsten Bräckelmann 2006-02-24 00:52:02 UTC
Did you use the LANG env var to test this, like mentioned in the original report and comment 2?

Please note, that after applying the patch this approach now accepts 2 date formats. The first one is %x according to LC_TIME, the second one is the translated string format[2] according to LANG.

* The string being accepted by the latter depends on the translation team. According to zh_CN.po of 2.5.91, "%m/%d/%Y" is translated to "%Y-%m-%d". Younker, does this format work?

* The string being accepted by %x indeed uses the the same format as en_US on my system, for zh_CN.UTF-8 as well as ko_KR.UTF-8. This format works, right?

  $ LC_TIME=ko_KR.UTF-8 date "+%x"

Does the output of this command differ from LC_TIME=en_US.UTF-8 on your system?

Please mention which string you entered, or how you got that warning dialog. As well as the values for LC_TIME and LANG.


Anyway, please note that we split up this bug in 2 appropriate issues. This one is supposed to deal with the crash. Can you reproduce the crash after applying the patch?

Please feel free to add date format related comments to bug 332318. Thanks.
Comment 18 Karsten Bräckelmann 2006-02-24 00:52:57 UTC
Hmm, how does this fix the *crash*?

Granted, this works around the looping warning dialog without user interaction. And I just tried *really* hard to trigger this again. However, I could not make the Contact Editor crash, no matter which way I tried to trick the UI. :-)

The crash seems to be fixed for me as well by this... *shrug*
Comment 19 Martin Ammermüller 2006-08-17 14:44:23 UTC
crash with similar backtrace while testing GARNOME 2.15.91

LANG=C
Triggered by File -> New -> Memo, insert invalid value in "Start date" field (in my case "k"), click on another widget of this window, clicking warning dialogue away. A crash occurs when clicking now in the "Memo Content"-Widget.

backtrace:

  • #0 IA__g_logv
  • #1 IA__g_log
    at gmessages.c line 517
  • #2 IA__g_assert_warning
    at gmessages.c line 552
  • #3 gtk_text_view_start_selection_drag
    at gtktextview.c line 5658
  • #4 gtk_text_view_button_press_event
    at gtktextview.c line 3975
  • #5 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 83
  • #6 g_type_class_meta_marshal
    at gclosure.c line 567
  • #7 IA__g_closure_invoke
    at gclosure.c line 490
  • #8 signal_emit_unlocked_R
    at gsignal.c line 2476
  • #9 IA__g_signal_emit_valist
    at gsignal.c line 2207
  • #10 IA__g_signal_emit
    at gsignal.c line 2241
  • #11 gtk_widget_event_internal
    at gtkwidget.c line 3901
  • #12 IA__gtk_propagate_event
    at gtkmain.c line 2187
  • #13 IA__gtk_main_do_event
    at gtkmain.c line 1406
  • #14 gdk_event_dispatch
    at gdkevents-x11.c line 2320
  • #15 IA__g_main_context_dispatch
    at gmain.c line 2043
  • #16 g_main_context_iterate
    at gmain.c line 2675
  • #17 IA__g_main_loop_run
    at gmain.c line 2879
  • #18 bonobo_main
    at bonobo-main.c line 311
  • #19 main
    at main.c line 614

Comment 20 André Klapper 2006-08-29 07:53:29 UTC
*** Bug 330114 has been marked as a duplicate of this bug. ***
Comment 21 Karsten Bräckelmann 2006-10-10 20:42:57 UTC
*** Bug 359025 has been marked as a duplicate of this bug. ***
Comment 22 Karsten Bräckelmann 2006-10-10 20:47:41 UTC
REOPENing.

The stacktrace in comment 19 and bug 359025 seem to match, just some slight differences in the arguments. Both with more recent versions, supposed to be fixed.

Dudes, can you please have a *close* look at the recent duplicates?
In case this actually is a new issue, please reopen bug 359025.
Comment 23 Chenthill P 2006-10-11 08:51:34 UTC
Looking at it.
Comment 24 Chenthill P 2006-10-16 10:11:03 UTC
Sorry, i could not find time to work on this last week. I will try to fix it up asap.
Comment 25 André Klapper 2006-12-22 01:33:07 UTC
i assume that this is fixed now?
it's the same stacktrace as bug 335622 (gtk+ issue).
Comment 26 André Klapper 2007-06-15 21:19:49 UTC
closing as duplicate, no feedback.
please DO reopen if this is still an issue. thanks!

*** This bug has been marked as a duplicate of 335622 ***