Opened 5 months ago

Last modified 4 months ago

#18905 new bug

Search results windows crashes when adding / removing attributes columns

Reported by: un_spacyar Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Applications/Tracker Version: R1/beta4
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by un_spacyar)

This is weird issue, that I can only reproduce it when searching for an specific file type. This is the step by step process:
1) open the Find... window from Deskbar.
2) search for MPEG audio file (mpeg) Formula: ((name=="**")&&(BEOS:TYPE=="audio/mpeg"))
3) the search will bring you all the MPEG files (mainly mp3 files).
4) in the search window, go to the 'Attributes' menu, and add the "Rating" attribute.
5) a new column will appear: Attribute.
6) Click on the 'Attributes' menu again: Tracker will crash.

I am attaching the Tracker crash report.

If I repeat the process and search for MPEG audio file (x-mpeg) (Formula: ((name=="**")&&(BEOS:TYPE=="audio/x-mpeg"))), the issue is not reproducible.

In short:
BEOS:TYPE=="audio/mpeg --> fails.
BEOS:TYPE=="audio/x-mpeg --> works fine.
I am using Haiku 32 bit. hrev57719

Attachments (5)

Tracker-7243-debug-27-05-2024-03-45-00.report (27.8 KB ) - added by un_spacyar 5 months ago.
Tracker-570-debug-01-06-2024-20-47-41.report (15.0 KB ) - added by un_spacyar 5 months ago.
Crash report on Haiku 64 bit
Tracker-574-debug-12-07-2024-04-28-14.report (30.2 KB ) - added by un_spacyar 4 months ago.
new crash report (hrev57804)
Tracker-50663-debug-12-07-2024-04-31-11.report (30.2 KB ) - added by un_spacyar 4 months ago.
New crash report (hrev57804)
Tracker-2439-debug-16-07-2024-04-04-58.report (50.9 KB ) - added by un_spacyar 4 months ago.

Download all attachments as: .zip

Change History (15)

comment:1 by un_spacyar, 5 months ago

Description: modified (diff)

comment:2 by un_spacyar, 5 months ago

Description: modified (diff)

comment:3 by waddlesplash, 5 months ago

Any chance this reproduces on x86_64?

comment:4 by un_spacyar, 5 months ago

Hello. I do not have a 64 bit installation, but I can burn a CD or USB drive and try to reproduce it. Allow me some time to do it.

comment:5 by un_spacyar, 5 months ago

Hello. I tried again using Haiku 64 bit (hrev57753), and I get the same error. I am attaching the crash report for 64 bit too.

by un_spacyar, 5 months ago

Crash report on Haiku 64 bit

comment:6 by waddlesplash, 4 months ago

I can't seem manage to reproduce this. However, the newer crash report indicates it may be related to use of an add-on. It looks like ModelMenuItem may throw an exception if some things fail to initialize, and indeed I don't see anything set up to catch that exception.

comment:7 by waddlesplash, 4 months ago

Please retest after hrev57795.

comment:8 by un_spacyar, 4 months ago

Hi. I tested again using hrev57804, and the issue is still reproducible. In fact, I am noticing that now fails for any Mp3 search, for example now fails for both:

BEOS:TYPE=="audio/mpeg

BEOS:TYPE=="audio/x-mpeg

But also, if I search for name (*.mp3).

Also I noticed that the issue happens not only if I add the "Rating" attribute. If I choose any other value from the "Attributes" menu, and then click on the "Attribute" menu again, this triggers the crash. Let me try to record a video with all the steps. Maybe this way is more easy to understand.

Last edited 4 months ago by un_spacyar (previous) (diff)

by un_spacyar, 4 months ago

new crash report (hrev57804)

by un_spacyar, 4 months ago

New crash report (hrev57804)

comment:9 by waddlesplash, 4 months ago

These crashes are not the same. Could you please try running Tracker under the guarded heap? Like this:

$ launch_roster stop x-vnd.be-trak
$ LD_PRELOAD=/system/lib/libroot_debug.so MALLOC_DEBUG=g Tracker

It will likely still crash (possibly earlier) but the report may contain much more useful information.

comment:10 by un_spacyar, 4 months ago

Hello. I attach the new crash report.

Note: See TracTickets for help on using tickets.