Bug 287226 - Same name for new activities are currently accepted, no validation takes place
Summary: Same name for new activities are currently accepted, no validation takes place
Status: RESOLVED FIXED
Alias: None
Product: Active
Classification: Plasma
Component: Contour activity screen (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: unscheduled
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-22 08:53 UTC by Fania Bremmer
Modified: 2011-12-08 17:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fania Bremmer 2011-11-22 08:53:52 UTC
Version:           unspecified (using Devel) 
OS:                Linux

If a user types in the same name that already exists for a new activity, the double name is currently accepted, no validation takes place

Reproducible: Always

Steps to Reproduce:
- tap on the plus icon for creating a new activity
- name it exactly the same as another one
- see that its created

Actual Results:  
- duplicate activity names
- problems for users to distinuish (only by wallpaper, if set)

Expected Results:  
- duplicate names are not accepted: either we create a "name(1)" automatically or we show an error message
Comment 1 Marco Martin 2011-11-23 10:45:57 UTC
Git commit 787f09d519f82b7147fde10e1c4790c3dd38c6c7 by Marco Martin.
Committed on 23/11/2011 at 11:43.
Pushed by mart into branch 'master'.

validate activity name

don't let create/edit activities when:
* name is empty
* name is duplicate
CCBUG:287226

M  +2    -0    components/mobilecomponents/Sheet.qml
M  +44   -3    shell/activityconfiguration/qml/view.qml

http://commits.kde.org/plasma-mobile/787f09d519f82b7147fde10e1c4790c3dd38c6c7
Comment 2 Fania Bremmer 2011-11-24 08:51:33 UTC
Comment on #1:
>>"don't let create/edit activities"

As I cannot test the current implementation: how did you realize it? Is there some error message poping up or how does the user understand that he needs to enter a different name?
Comment 3 Javier Llorente 2011-11-24 15:42:44 UTC
It works on first boot; you get a warning "An activity with this name already exists" which is placed to the left of the input field. BTW, "exists" is cut in half (part of it is outside the overlay area). Not typing anything is a no-no for creating an activity - the "Create activity" button is grayed out.

Nevertheless, I had a crash on second after typing an activity with the same name as an existing one (it let me do so). Tested on 2011-11-24-13-26-basyskom-plasma-active-devel-USB-live.iso


Application: Plasma Workspace (plasma-device), signal: Segmentation fault
[KCrash Handler]
#5  0x45d0dda6 in QObjectPrivate::isSignalConnected (sender=0xa93f918, m=0x4899e95c, local_signal_index=2, argv=0x0) at kernel/qobject_p.h:221
#6  QMetaObject::activate (sender=0xa93f918, m=0x4899e95c, local_signal_index=2, argv=0x0) at kernel/qobject.cpp:3201
#7  0x489832e8 in ActivityConfiguration::activityNameChanged (this=0xa93f918) at ./activityconfiguration.moc:166
#8  0x48983708 in ActivityConfiguration::setContainment (this=0xa93f918, cont=0xabade98) at ../../shell/activityconfiguration/activityconfiguration.cpp:131
#9  0x48983982 in ActivityConfiguration::ensureContainmentExistence (this=0xa93f918) at ../../shell/activityconfiguration/activityconfiguration.cpp:116
#10 0x48983a0c in ActivityConfiguration::setActivityName (this=0xa93f918, name=...) at ../../shell/activityconfiguration/activityconfiguration.cpp:198
#11 0x48983fea in ActivityConfiguration::qt_metacall (this=0xa93f918, _c=QMetaObject::WriteProperty, _id=<value optimized out>, _a=0xbff73a98) at ./activityconfiguration.moc:129
#12 0x45cff60b in QMetaObject::metacall (object=0xa93f918, cl=QMetaObject::WriteProperty, idx=33, argv=0xbff73a98) at kernel/qmetaobject.cpp:237
#13 0x47d7324e in QDeclarativePropertyPrivate::write (object=0xa93f918, property=..., value=..., context=0xacba9e8, flags=...) at qml/qdeclarativeproperty.cpp:1173
#14 0x47e099a7 in QDeclarativeObjectScriptClass::setProperty (this=0xa777738, obj=0xa93f918, name=@0xbff73cec, value=..., context=0x9bbbe2c8, evalContext=<value optimized out>)
    at qml/qdeclarativeobjectscriptclass.cpp:404
#15 0x47e09e55 in QDeclarativeObjectScriptClass::setProperty (this=0xa777738, object=0xb2ccba0, name=@0xbff73cec, value=...) at qml/qdeclarativeobjectscriptclass.cpp:321
#16 0x487ddf2a in QScript::DeclarativeObjectDelegate::put (this=0xb2ccbd0, object=0x9bb58d40, exec=0x9bbbe2c8, propertyName=..., value=..., slot=...) at bridge/qscriptdeclarativeobject.cpp:99
#17 0x487c4cf1 in QScriptObject::put (this=0x9bb58d40, exec=0x9bbbe2c8, propertyName=..., value=..., slot=...) at bridge/qscriptobject.cpp:80
#18 0x4869cf08 in QTJSC::JSValue::put (args=0xa30b0918) at ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.h:658
#19 cti_op_put_by_id (args=0xa30b0918) at ../3rdparty/javascriptcore/JavaScriptCore/jit/JITStubs.cpp:1243
#20 0xa316d34c in ?? ()
#21 0x48641f1b in QTJSC::JITCode::execute (this=0xa30c7f60, functionExecutable=0xa3073b88, callFrame=0x9bbbe228, function=0x9bb64c40, thisObj=0x9bb45840, args=..., scopeChain=0xa30f29f0, 
    exception=0xa40d6e94) at ../3rdparty/javascriptcore/JavaScriptCore/jit/JITCode.h:79
#22 QTJSC::Interpreter::execute (this=0xa30c7f60, functionExecutable=0xa3073b88, callFrame=0x9bbbe228, function=0x9bb64c40, thisObj=0x9bb45840, args=..., scopeChain=0xa30f29f0, exception=0xa40d6e94)
    at ../3rdparty/javascriptcore/JavaScriptCore/interpreter/Interpreter.cpp:716
#23 0x486ec85d in QTJSC::JSFunction::call (this=0x9bb64c40, exec=0x9bbbe228, thisValue=..., args=...) at ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSFunction.cpp:122
#24 0x486c186f in QTJSC::call (exec=0x9bbbe228, functionObject=..., callType=QTJSC::CallTypeJS, callData=..., thisValue=..., args=...)
    at ../3rdparty/javascriptcore/JavaScriptCore/runtime/CallData.cpp:62
#25 0x487bcb5f in QScriptValue::call (this=0xb2ad098, thisObject=@0xbff7408c, args=...) at api/qscriptvalue.cpp:1610
#26 0x47d6af33 in QDeclarativeQtScriptExpression::eval (this=0xb2ad070, secondaryScope=0x0, isUndefined=0x0) at qml/qdeclarativeexpression.cpp:518
#27 0x47d6b210 in QDeclarativeQtScriptExpression::scriptValue (this=0xb2ad070, secondaryScope=0x0, isUndefined=0x0) at qml/qdeclarativeexpression.cpp:470
#28 0x47d6b505 in QDeclarativeExpressionPrivate::scriptValue (this=0xb2ad020, secondaryScope=0x0, isUndefined=0x0) at qml/qdeclarativeexpression.cpp:653
#29 0x47d6b63a in QDeclarativeExpressionPrivate::value (this=0xb2ad020, secondaryScope=0x0, isUndefined=0x0) at qml/qdeclarativeexpression.cpp:667
#30 0x47da5bd4 in QDeclarativeBoundSignal::qt_metacall (this=0xb3acd80, c=QMetaObject::InvokeMetaMethod, id=4, a=0xbff745cc) at qml/qdeclarativeboundsignal.cpp:186
#31 0x45cff60b in QMetaObject::metacall (object=0xb3acd80, cl=QMetaObject::InvokeMetaMethod, idx=4, argv=0xbff745cc) at kernel/qmetaobject.cpp:237
#32 0x45d0dfbf in QMetaObject::activate (sender=0xad5a698, m=0xb3b5bbc, local_signal_index=8, argv=0xbff745cc) at kernel/qobject.cpp:3278
#33 0x45d0e68a in QMetaObject::activate (sender=0xad5a698, signal_index=40, argv=0xbff745cc) at kernel/qobject.cpp:3332
#34 0x47d54db6 in QDeclarativeVMEMetaObject::metaCall (this=0xb3b5bb8, c=QMetaObject::InvokeMetaMethod, _id=40, a=0xbff745cc) at qml/qdeclarativevmemetaobject.cpp:639
#35 0x47d54992 in QDeclarativeVMEMetaObject::metaCall (this=0xadae458, c=QMetaObject::InvokeMetaMethod, _id=40, a=0xbff745cc) at qml/qdeclarativevmemetaobject.cpp:673
#36 0x45cff60b in QMetaObject::metacall (object=0xad5a698, cl=QMetaObject::InvokeMetaMethod, idx=40, argv=0xbff745cc) at kernel/qmetaobject.cpp:237
#37 0x47e0b02c in QDeclarativeObjectMethodScriptClass::callMethod (this=0xa777740, object=0xad5a698, index=40, returnType=0, argCount=0, argTypes=0x0, ctxt=0x9bbbe228)
    at qml/qdeclarativeobjectscriptclass.cpp:937
#38 0x47e0c8e8 in QDeclarativeObjectMethodScriptClass::callPrecise (this=0xa777740, object=0xad5a698, data=..., ctxt=0x9bbbe228) at qml/qdeclarativeobjectscriptclass.cpp:897
#39 0x47e0d62e in QDeclarativeObjectMethodScriptClass::call (this=0xa777740, o=0xaadbf40, ctxt=0x9bbbe228) at qml/qdeclarativeobjectscriptclass.cpp:866
#40 0x487ddae1 in QScript::DeclarativeObjectDelegate::call (exec=<value optimized out>, callee=0x9bb64b80, thisValue=..., args=...) at bridge/qscriptdeclarativeobject.cpp:154
#41 0x486c180d in QTJSC::NativeFuncWrapper::operator() (this=0xbff74938, exec=0x9bbbe228, jsobj=0x9bb64b80, thisValue=..., argList=...)
    at ../3rdparty/javascriptcore/JavaScriptCore/runtime/CallData.cpp:46
#42 0x4869347d in cti_op_call_NotJSFunction (args=0xa30b0cd8) at ../3rdparty/javascriptcore/JavaScriptCore/jit/JITStubs.cpp:1771
#43 0xa316c77b in ?? ()
#44 0x48641f1b in QTJSC::JITCode::execute (this=0xa30c7f60, functionExecutable=0xa3073990, callFrame=0x9bbbe0e8, function=0x9bb64340, thisObj=0x9bb45840, args=..., scopeChain=0xa446e7b0, 
    exception=0xa40d6e94) at ../3rdparty/javascriptcore/JavaScriptCore/jit/JITCode.h:79
#45 QTJSC::Interpreter::execute (this=0xa30c7f60, functionExecutable=0xa3073990, callFrame=0x9bbbe0e8, function=0x9bb64340, thisObj=0x9bb45840, args=..., scopeChain=0xa446e7b0, exception=0xa40d6e94)
    at ../3rdparty/javascriptcore/JavaScriptCore/interpreter/Interpreter.cpp:716
#46 0x486ec85d in QTJSC::JSFunction::call (this=0x9bb64340, exec=0x9bbbe0e8, thisValue=..., args=...) at ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSFunction.cpp:122
#47 0x486c186f in QTJSC::call (exec=0x9bbbe0e8, functionObject=..., callType=QTJSC::CallTypeJS, callData=..., thisValue=..., args=...)
    at ../3rdparty/javascriptcore/JavaScriptCore/runtime/CallData.cpp:62
#48 0x487bcb5f in QScriptValue::call (this=0xaba1308, thisObject=@0xbff74c0c, args=...) at api/qscriptvalue.cpp:1610
#49 0x47d6af33 in QDeclarativeQtScriptExpression::eval (this=0xaba12e0, secondaryScope=0x0, isUndefined=0x0) at qml/qdeclarativeexpression.cpp:518
#50 0x47d6b210 in QDeclarativeQtScriptExpression::scriptValue (this=0xaba12e0, secondaryScope=0x0, isUndefined=0x0) at qml/qdeclarativeexpression.cpp:470
#51 0x47d6b505 in QDeclarativeExpressionPrivate::scriptValue (this=0xaba1290, secondaryScope=0x0, isUndefined=0x0) at qml/qdeclarativeexpression.cpp:653
#52 0x47d6b63a in QDeclarativeExpressionPrivate::value (this=0xaba1290, secondaryScope=0x0, isUndefined=0x0) at qml/qdeclarativeexpression.cpp:667
#53 0x47da5bd4 in QDeclarativeBoundSignal::qt_metacall (this=0xb3551b8, c=QMetaObject::InvokeMetaMethod, id=4, a=0xbff7504c) at qml/qdeclarativeboundsignal.cpp:186
#54 0x45cff60b in QMetaObject::metacall (object=0xb3551b8, cl=QMetaObject::InvokeMetaMethod, idx=4, argv=0xbff7504c) at kernel/qmetaobject.cpp:237
#55 0x45d0dfbf in QMetaObject::activate (sender=0xace21f0, m=0xace241c, local_signal_index=6, argv=0xbff7504c) at kernel/qobject.cpp:3278
#56 0x45d0e68a in QMetaObject::activate (sender=0xace21f0, signal_index=38, argv=0xbff7504c) at kernel/qobject.cpp:3332
#57 0x47d54db6 in QDeclarativeVMEMetaObject::metaCall (this=0xace2418, c=QMetaObject::InvokeMetaMethod, _id=38, a=0xbff7504c) at qml/qdeclarativevmemetaobject.cpp:639
#58 0x45cff60b in QMetaObject::metacall (object=0xace21f0, cl=QMetaObject::InvokeMetaMethod, idx=38, argv=0xbff7504c) at kernel/qmetaobject.cpp:237
#59 0x47e0b02c in QDeclarativeObjectMethodScriptClass::callMethod (this=0xa777740, object=0xace21f0, index=38, returnType=0, argCount=0, argTypes=0x0, ctxt=0x9bbbe0e8)
    at qml/qdeclarativeobjectscriptclass.cpp:937
#60 0x47e0c8e8 in QDeclarativeObjectMethodScriptClass::callPrecise (this=0xa777740, object=0xace21f0, data=..., ctxt=0x9bbbe0e8) at qml/qdeclarativeobjectscriptclass.cpp:897
#61 0x47e0d62e in QDeclarativeObjectMethodScriptClass::call (this=0xa777740, o=0xae0a2d0, ctxt=0x9bbbe0e8) at qml/qdeclarativeobjectscriptclass.cpp:866
#62 0x487ddae1 in QScript::DeclarativeObjectDelegate::call (exec=<value optimized out>, callee=0x9bb64280, thisValue=..., args=...) at bridge/qscriptdeclarativeobject.cpp:154
#63 0x486c180d in QTJSC::NativeFuncWrapper::operator() (this=0xbff753b8, exec=0x9bbbe0e8, jsobj=0x9bb64280, thisValue=..., argList=...)
    at ../3rdparty/javascriptcore/JavaScriptCore/runtime/CallData.cpp:46
#64 0x4869347d in cti_op_call_NotJSFunction (args=0xa30b20d8) at ../3rdparty/javascriptcore/JavaScriptCore/jit/JITStubs.cpp:1771
#65 0xa316bf73 in ?? ()
#66 0x48641f1b in QTJSC::JITCode::execute (this=0xa30c7f60, functionExecutable=0xa30808b8, callFrame=0xb39f01c, function=0x9bb63ec0, thisObj=0x9bb45840, args=..., scopeChain=0xa446e000, 
    exception=0xa40d6e94) at ../3rdparty/javascriptcore/JavaScriptCore/jit/JITCode.h:79
#67 QTJSC::Interpreter::execute (this=0xa30c7f60, functionExecutable=0xa30808b8, callFrame=0xb39f01c, function=0x9bb63ec0, thisObj=0x9bb45840, args=..., scopeChain=0xa446e000, exception=0xa40d6e94)
    at ../3rdparty/javascriptcore/JavaScriptCore/interpreter/Interpreter.cpp:716
#68 0x486ec85d in QTJSC::JSFunction::call (this=0x9bb63ec0, exec=0xb39f01c, thisValue=..., args=...) at ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSFunction.cpp:122
#69 0x486c186f in QTJSC::call (exec=0xb39f01c, functionObject=..., callType=QTJSC::CallTypeJS, callData=..., thisValue=..., args=...)
    at ../3rdparty/javascriptcore/JavaScriptCore/runtime/CallData.cpp:62
#70 0x487bcb5f in QScriptValue::call (this=0xb254e10, thisObject=@0xbff7568c, args=...) at api/qscriptvalue.cpp:1610
#71 0x47d6af33 in QDeclarativeQtScriptExpression::eval (this=0xb254de8, secondaryScope=0xa3b4820, isUndefined=0x0) at qml/qdeclarativeexpression.cpp:518
#72 0x47d6b210 in QDeclarativeQtScriptExpression::scriptValue (this=0xb254de8, secondaryScope=0xa3b4820, isUndefined=0x0) at qml/qdeclarativeexpression.cpp:470
#73 0x47d6b505 in QDeclarativeExpressionPrivate::scriptValue (this=0xb254d98, secondaryScope=0xa3b4820, isUndefined=0x0) at qml/qdeclarativeexpression.cpp:653
#74 0x47d6b63a in QDeclarativeExpressionPrivate::value (this=0xb254d98, secondaryScope=0xa3b4820, isUndefined=0x0) at qml/qdeclarativeexpression.cpp:667
#75 0x47da5bd4 in QDeclarativeBoundSignal::qt_metacall (this=0xae06708, c=QMetaObject::InvokeMetaMethod, id=4, a=0xbff758f8) at qml/qdeclarativeboundsignal.cpp:186
#76 0x45cff60b in QMetaObject::metacall (object=0xae06708, cl=QMetaObject::InvokeMetaMethod, idx=4, argv=0xbff758f8) at kernel/qmetaobject.cpp:237
#77 0x45d0dfbf in QMetaObject::activate (sender=0xb35b320, m=0x47f4888c, local_signal_index=10, argv=0xbff758f8) at kernel/qobject.cpp:3278
#78 0x47e5fe44 in QDeclarativeMouseArea::released (this=0xb35b320, _t1=0xbff75950) at .moc/release-shared/moc_qdeclarativemousearea_p.cpp:487
#79 0x47d0181f in QDeclarativeMouseArea::setPressed (this=0xb35b320, p=false) at graphicsitems/qdeclarativemousearea.cpp:930
#80 0x47d01993 in QDeclarativeMouseArea::mouseReleaseEvent (this=0xb35b320, event=0xbff76158) at graphicsitems/qdeclarativemousearea.cpp:587
#81 0x4694a844 in QGraphicsItem::sceneEvent (this=0xb35b328, event=0xbff76158) at graphicsview/qgraphicsitem.cpp:6730
#82 0x47cf3f4d in QDeclarativeItem::sceneEvent (this=0xb35b320, event=0xbff76158) at graphicsitems/qdeclarativeitem.cpp:2977
#83 0x47d00d7d in QDeclarativeMouseArea::sceneEvent (this=0xb35b320, event=0xbff76158) at graphicsitems/qdeclarativemousearea.cpp:682
#84 0x46975500 in QGraphicsScenePrivate::sendEvent (this=0x83660f8, item=0xb35b328, event=0xbff76158) at graphicsview/qgraphicsscene.cpp:1205
#85 0x46976105 in QGraphicsScenePrivate::sendMouseEvent (this=0x83660f8, mouseEvent=0xbff76158) at graphicsview/qgraphicsscene.cpp:1279
#86 0x46976af5 in QGraphicsScene::mouseReleaseEvent (this=0x8358868, mouseEvent=0xbff76158) at graphicsview/qgraphicsscene.cpp:4109
#87 0x46989034 in QGraphicsScene::event (this=0x8358868, event=0xbff76158) at graphicsview/qgraphicsscene.cpp:3441
#88 0x463160cc in QApplicationPrivate::notify_helper (this=0x823ac60, receiver=0x8358868, e=0xbff76158) at kernel/qapplication.cpp:4486
#89 0x4631acae in QApplication::notify (this=0x8230470, receiver=<value optimized out>, e=0xbff76158) at kernel/qapplication.cpp:3886
#90 0x473049eb in KApplication::notify (this=0x8230470, receiver=0x8358868, event=0xbff76158) at ../../kdeui/kernel/kapplication.cpp:311
#91 0x45cf9283 in QCoreApplication::notifyInternal (this=0x8230470, receiver=0x8358868, event=0xbff76158) at kernel/qcoreapplication.cpp:787
#92 0x4631436f in QCoreApplication::sendSpontaneousEvent (receiver=0x8358868, event=0xbff76158) at ../../src/corelib/kernel/qcoreapplication.h:218
#93 qt_sendSpontaneousEvent (receiver=0x8358868, event=0xbff76158) at kernel/qapplication.cpp:5480
#94 0x469a3371 in QGraphicsView::mouseReleaseEvent (this=0x8324b98, event=0xbff768d8) at graphicsview/qgraphicsview.cpp:3336
#95 0x4636bb99 in QWidget::event (this=0x8324b98, event=0xbff768d8) at kernel/qwidget.cpp:8295
#96 0x4675d524 in QFrame::event (this=0x8324b98, e=0xbff768d8) at widgets/qframe.cpp:557
#97 0x467e5aa3 in QAbstractScrollArea::viewportEvent (this=0x8324b98, e=0xbff768d8) at widgets/qabstractscrollarea.cpp:1043
#98 0x469a65cf in QGraphicsView::viewportEvent (this=0x8324b98, event=0xbff768d8) at graphicsview/qgraphicsview.cpp:2864
#99 0x467e83b5 in QAbstractScrollAreaPrivate::viewportEvent (this=0x83253c0, o=0x8326da8, e=0xbff768d8) at widgets/qabstractscrollarea_p.h:100
#100 QAbstractScrollAreaFilter::eventFilter (this=0x83253c0, o=0x8326da8, e=0xbff768d8) at widgets/qabstractscrollarea_p.h:116
#101 0x45cf943a in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x823ac60, receiver=0x8326da8, event=0xbff768d8) at kernel/qcoreapplication.cpp:902
#102 0x463160a1 in QApplicationPrivate::notify_helper (this=0x823ac60, receiver=0x8326da8, e=0xbff768d8) at kernel/qapplication.cpp:4482
#103 0x4631b64f in QApplication::notify (this=0x8230470, receiver=<value optimized out>, e=0xbff768d8) at kernel/qapplication.cpp:4047
#104 0x473049eb in KApplication::notify (this=0x8230470, receiver=0x8326da8, event=0xbff768d8) at ../../kdeui/kernel/kapplication.cpp:311
#105 0x45cf9283 in QCoreApplication::notifyInternal (this=0x8230470, receiver=0x8326da8, event=0xbff768d8) at kernel/qcoreapplication.cpp:787
#106 0x46316fec in QCoreApplication::sendSpontaneousEvent (receiver=0x8326da8, event=0xbff768d8, alienWidget=<value optimized out>, nativeWidget=0x8324b98, buttonDown=0x46c68cc0, 
    lastMouseReceiver=..., spontaneous=true) at ../../src/corelib/kernel/qcoreapplication.h:218
#107 QApplicationPrivate::sendMouseEvent (receiver=0x8326da8, event=0xbff768d8, alienWidget=<value optimized out>, nativeWidget=0x8324b98, buttonDown=0x46c68cc0, lastMouseReceiver=..., 
    spontaneous=true) at kernel/qapplication.cpp:3144
#108 0x46388ebf in QETWidget::sendMouseEvent (this=0x8324b98, xtype=5, window=25165850, type=<value optimized out>, pos=..., globalPos=..., button=Qt::LeftButton, buttons=..., modifiers=...)
    at kernel/qapplication_x11.cpp:4981
#109 0x4639c5c6 in QETWidget::translateXI2Event (this=0x8324b98, xievent=0xaad7980) at kernel/qapplication_x11.cpp:5394
#110 0x4639dd2c in QETWidget::translateMouseEvent (this=0x8324b98, event=0xbff7717c) at kernel/qapplication_x11.cpp:4665
#111 0x4639b58e in QApplication::x11ProcessEvent (this=0x8230470, event=0xbff7717c) at kernel/qapplication_x11.cpp:3814
#112 0x463c6a04 in x11EventSourceDispatch (s=0x823db40, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#113 0x457d0afb in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#114 0x457d111f in ?? () from /lib/libglib-2.0.so.0
#115 0x457d12e2 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#116 0x45d2593d in QEventDispatcherGlib::processEvents (this=0x8219e88, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#117 0x463c65e6 in QGuiEventDispatcherGlib::processEvents (this=0x8219e88, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#118 0x45cf841a in QEventLoop::processEvents (this=0xbff77434, flags=...) at kernel/qeventloop.cpp:149
#119 0x45cf86ca in QEventLoop::exec (this=0xbff77434, flags=...) at kernel/qeventloop.cpp:201
#120 0x45cfcf54 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#121 0x46314138 in QApplication::exec () at kernel/qapplication.cpp:3760
#122 0x48973129 in kdemain (argc=1, argv=0xbff77644) at ../../shell/main.cpp:63
#123 0x0804858c in main (argc=1, argv=0xbff77644) at plasma-device_dummy.cpp:3
Comment 4 Javier Llorente 2011-11-24 15:45:06 UTC
Sorry. I meant after tapping on the "Create activity" button I got the crash, not after typing. The activity was created successful, although it had no wallpaper (just a black background).
Comment 5 Aaron J. Seigo 2011-11-24 16:18:46 UTC
would be nice to get a fresher build on there as the backtrace does not line up at all with what is in master.
Comment 6 Fania Bremmer 2011-11-30 12:22:26 UTC
the validation is only working from the 3rd activity on. I can create double activities, with the exact same name. only with the third activity having the same name, the error message appears.
happens on: 2011-11-28-09-14-basyskom-plasma-active-devel-meego-usb-live

btw: the positioning and font size is not ideal, as it overlaps the window with (as pointed out by javier)
Comment 7 Javier Llorente 2011-12-06 12:43:08 UTC
Validation works on second or third time. When there's no validation, plasma-device doesn't crash. Tested on
2011-12-05-18-19-basyskom-plasma-active-devel-meego-usb-live.iso
Comment 8 Marco Martin 2011-12-08 17:09:46 UTC
Git commit c6837c59d0584627c05a63adcf7ed8a002ff5f40 by Marco Martin.
Committed on 08/12/2011 at 18:08.
Pushed by mart into branch 'master'.

avoid to create same name as current one

BUG:287226

M  +6    -2    shell/activityconfiguration/activityconfiguration.cpp
M  +20   -4    shell/activityconfiguration/package/contents/ui/view.qml

http://commits.kde.org/plasma-mobile/c6837c59d0584627c05a63adcf7ed8a002ff5f40