[amarok] [Bug 481384] Amarok crash while searching

2024-02-15 Thread Raphaël G .
https://bugs.kde.org/show_bug.cgi?id=481384

--- Comment #1 from Raphaël G.  ---
Installed version:
amarok-2.9.75-2.mga9
amarok-debuginfo-2.9.75-2.mga9
amarok-debugsource-2.9.75-2.mga9
amarok-utils-2.9.75-2.mga9
lib64amarokcore1-2.9.75-2.mga9
lib64amaroklib1-2.9.75-2.mga9
lib64amarokpud1-2.9.75-2.mga9
lib64amarokshared1-2.9.75-2.mga9
lib64amarok-sqlcollection1-2.9.75-2.mga9
lib64amarok-transcoding1-2.9.75-2.mga9

-- 
You are receiving this mail because:
You are watching all bug changes.

[amarok] [Bug 481384] New: Amarok crash while searching

2024-02-15 Thread Raphaël G .
https://bugs.kde.org/show_bug.cgi?id=481384

Bug ID: 481384
   Summary: Amarok crash while searching
Classification: Applications
   Product: amarok
   Version: unspecified
  Platform: Mageia RPMs
OS: Linux
Status: REPORTED
  Severity: normal
  Priority: NOR
 Component: general
  Assignee: amarok-bugs-d...@kde.org
  Reporter: k...@rapsys.eu
  Target Milestone: kf5

SUMMARY
I search for a string like 'a b c d e f g h i j k l ...' or others but with
this one it fails each time.

After adding my collection, with multiple duplicated file and a directory
failing import (modification date 31 dec 1969).

Amarok crash

STEPS TO REPRODUCE
1.  Import lot of directories with a directory modified the 31 dec 1969 and
multiple duplicates
2.  Search for some song title or string earlier
3.  Crash

OBSERVED RESULT
Crash

EXPECTED RESULT
Should not crash

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Calling appendChild() on a null node does nothing.

Thread 1 "amarok" received signal SIGSEGV, Segmentation fault.
0x7783d0d0 in CollectionTreeItem::row() const () from
/lib64/libamaroklib.so.1
(gdb) bt
#0  0x7783d0d0 in CollectionTreeItem::row() const () at
/lib64/libamaroklib.so.1
#1  0x77842380 in
CollectionTreeItemModelBase::itemIndex(CollectionTreeItem*) const () at
/lib64/libamaroklib.so.1
#2  0x77842400 in CollectionTreeItemModelBase::parent(QModelIndex
const&) const () at /lib64/libamaroklib.so.1
#3  0x76274799 in QModelIndex::parent() const (this=0x11e9790) at
../../include/QtCore/../../src/corelib/itemmodels/qabstractitemmodel.h:443
#4  QSortFilterProxyModelPrivate::_q_sourceDataChanged(QModelIndex const&,
QModelIndex const&, QVector const&)
 (this=0xdcf670, source_top_left=,
source_bottom_right=, roles=...) at
itemmodels/qsortfilterproxymodel.cpp:1433
#5  0x762d3f84 in doActivate(QObject*, int, void**)
(sender=0xaeda30, signal_index=3, argv=0x7fffd2f0) at
kernel/qobject.cpp:3931
#6  0x762cd55f in QMetaObject::activate(QObject*, QMetaObject const*,
int, void**)
(sender=, m=m@entry=0x76570680
,
local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fffd2f0)
at kernel/qobject.cpp:3979
#7  0x7623d3ec in QAbstractItemModel::dataChanged(QModelIndex const&,
QModelIndex const&, QVector const&) (this=, _t1=, _t2=, _t3=)
at .moc/moc_qabstractitemmodel.cpp:557
#8  0x7784625a in
CollectionTreeItemModelBase::tracksLoaded(AmarokSharedPointer
const&, QModelIndex const&, QList > const&) ()
at /lib64/libamaroklib.so.1
#9  0x762c8d40 in QObject::event(QEvent*) (this=0xaeda30,
e=0x7fff9c002210) at kernel/qobject.cpp:1347
#10 0x76f6240e in QApplicationPrivate::notify_helper(QObject*, QEvent*)
(this=, receiver=0xaeda30, e=0x7fff9c002210) at
kernel/qapplication.cpp:3637
#11 0x7629e888 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
(receiver=0xaeda30, event=0x7fff9c002210) at kernel/qcoreapplication.cpp:1064
#12 0x762a15b9 in QCoreApplicationPrivate::sendPostedEvents(QObject*,
int, QThreadData*) (receiver=0x0, event_type=0, data=0x446e30) at
kernel/qcoreapplication.cpp:1821
#13 0x762f3b03 in postEventSourceDispatch(GSource*, GSourceFunc,
gpointer) (s=0x53f9f0) at kernel/qeventdispatcher_glib.cpp:277
#14 0x71a4c689 in g_main_dispatch (context=0x7fffe4000ee0) at
../glib/gmain.c:3460
#15 g_main_context_dispatch (context=context@entry=0x7fffe4000ee0) at
../glib/gmain.c:4200
#16 0x71a4ca18 in g_main_context_iterate
(context=context@entry=0x7fffe4000ee0, block=block@entry=1,
dispatch=dispatch@entry=1, self=) at ../glib/gmain.c:4276
#17 0x71a4ca9c in g_main_context_iteration (context=0x7fffe4000ee0,
may_block=1) at ../glib/gmain.c:4343
#18 0x762f31f6 in
QEventDispatcherGlib::processEvents(QFlags)
(this=0x54b220, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#19 0x7629d46b in
QEventLoop::exec(QFlags)
(this=this@entry=0x7fffd720, flags=..., flags@entry=...) at
../../include/QtCore/../../src/corelib/global/qflags.h:69
#20 0x762a4fe6 in QCoreApplication::exec() () at
../../include/QtCore/../../src/corelib/global/qflags.h:121
#21 0x7673034c in QGuiApplication::exec() () at
kernel/qguiapplication.cpp:1870
#22 0x76f62385 in QApplication::exec() () at
kernel/qapplication.cpp:2829
#23 0x00407fd7 in main(int, char**) (argc=,
argv=) at
/usr/src/debug/amarok-2.9.75-2.mga9.x86_64/src/main.cpp:389

-- 
You are receiving this mail because:
You are watching all bug changes.

[amarok] [Bug 426807] Out of range changedate prevents importing music folder

2024-02-15 Thread Raphaël G .
https://bugs.kde.org/show_bug.cgi?id=426807

--- Comment #5 from Raphaël G.  ---
Same bug as https://bugs.kde.org/show_bug.cgi?id=405241 too, which was
invalidly closed as invalid.

Amarok should support out of timestamp range creation/modification dates.

-- 
You are receiving this mail because:
You are watching all bug changes.

[amarok] [Bug 426807] Out of range changedate prevents importing music folder

2024-02-15 Thread Raphaël G .
https://bugs.kde.org/show_bug.cgi?id=426807

Raphaël G.  changed:

   What|Removed |Added

 CC||k...@rapsys.eu
 Ever confirmed|0   |1
 Status|REPORTED|CONFIRMED

--- Comment #4 from Raphaël G.  ---
SUMMARY
I set amarok to use my mariadb server at localhost.

I get a sql error in the /var/lib/mysql/sql_error.log when amarok update the
collection:
2024-02-15 22:14:22 amarok[amarok] @ localhost [] ERROR 1264: Out of range
value for column 'changedate' at row 1 : INSERT INTO
directories(deviceid,changedate,dir) VALUES
(1,4294963696,'home//Musique/')

STEPS TO REPRODUCE
1.  Create directory with such timestamps
2.  Update collection
3.  See error in sql error log

FIX SUGGESTION
Change changedate from int(11) to datetime ?

OBSERVED RESULT
ERROR 1264: Out of range value for column 'changedate' at row 1 : INSERT INTO
directories(deviceid,changedate,dir) VALUES
(1,4294963696,'home//Musique/')

EXPECTED RESULT
No error

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
LC_ALL=C l -ldh '/home//Musique/':
drwxr-xr-x 1   3.8K Dec 31  1969

LC_ALL=C stat '/home//Musique/'
  File: /home//Musique/
  Size: 3872Blocks: 0  IO Block: 4096   directory
Device: 0,39Inode: 270513  Links: 1
Access: (0755/drwxr-xr-x)  Uid: ( /  )   Gid: ( /  )
Access: 2024-02-15 21:54:41.937300905 +
Modify: 1969-12-31 23:00:00.0 +
Change: 2024-01-12 18:40:54.232067829 +
 Birth: 2024-01-12 16:40:52.050847188 +

-- 
You are receiving this mail because:
You are watching all bug changes.