elementary-community / byte

A Music Player designed for elementary OS
https://github.com/alainm23/byte
GNU General Public License v3.0
161 stars 15 forks source link

crashes on startup #47

Open vv0r opened 4 years ago

vv0r commented 4 years ago

Hi. I have a 250G+ music library on my machines SSD drive and when I try to open this app it crashes immediately while it's trying to import the library. My music files are 90% FLAC. I have tried this program on another machine with smaller music library and it works fine there.

Sunbvert commented 4 years ago

I too have some FLAC musics on my SSD and my Byte crashes on startup as well. It crashed after I added some music to my music folder, both .mp3 and FLAC musics. After that It just crashes every time I open it, but I can see it shows Library is Empty just before it crashes.

Edit: I removed the byte database.db and covers in /home/<user>/.local/share/com.github.alainm23.byte/ then import my songs folder by folder, It didn't crash and I imported all my songs mp3 and FLAC, but if I import all songs at once, It crashes. Looks like this app have problems with importing too many songs at once, I have 50+ songs.

ghost commented 4 years ago

I am having the same issue initially adding files to library. Mine are all MP3. About 15g worth. I ran from the terminal to see whats up got the following



(com.github.alainm23.byte:7460): Gtk-WARNING **: 12:05:06.365: Failed to set text 'Jason Boland & The Stragglers' from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &amp;

** (com.github.alainm23.byte:7460): CRITICAL **: 12:05:06.430: widgets_alert_view_construct: assertion 'description != NULL' failed

(com.github.alainm23.byte:7460): GLib-GObject-CRITICAL **: 12:05:06.430: g_object_ref_sink: assertion 'G_IS_OBJECT (object)' failed

(com.github.alainm23.byte:7460): Gtk-CRITICAL **: 12:05:06.432: gtk_stack_add_named: assertion 'GTK_IS_WIDGET (child)' failed

(com.github.alainm23.byte:7460): Gtk-WARNING **: 12:05:06.439: Failed to set text 'Jason Boland & The Stragglers' from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &amp;

(com.github.alainm23.byte:7460): Gtk-WARNING **: 12:05:06.480: Failed to set text 'Jason Boland & The Stragglers' from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &amp;

(com.github.alainm23.byte:7460): Gtk-WARNING **: 12:05:06.480: Failed to set text 'Jason Boland & The Stragglers' from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &amp;

(com.github.alainm23.byte:7460): Gtk-WARNING **: 12:05:06.482: Failed to set text 'Jason Boland & The Stragglers' from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &amp;
Track ID: 267 - Honky Tonk Highway
1/2
Track ID: 268 - Tulsa Time
Track ID: 269 - All Over Again
2/4

(com.github.alainm23.byte:7460): Gtk-WARNING **: 12:05:07.221: Failed to set text 'Jason Boland & The Stragglers' from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &amp;

(com.github.alainm23.byte:7460): Gtk-WARNING **: 12:05:07.223: Failed to set text 'Jason Boland & The Stragglers' from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &amp;

(com.github.alainm23.byte:7460): Gtk-WARNING **: 12:05:07.225: Failed to set text 'Jason Boland & The Stragglers' from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &amp;
Track ID: 270 - New Every Day

(com.github.alainm23.byte:7460): Gtk-WARNING **: 12:05:07.227: Failed to set text 'Jason Boland & The Stragglers' from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &amp;
1/4
Track ID: 271 - Moon Over Mexico
2/6
Track ID: 272 - You're Looking At Country
1/6
Track ID: 273 - Nothing Like You
[1]    7460 segmentation fault  com.github.alainm23.`
mlavi commented 4 years ago

Hello, my setup is Linux Mint 19.2 Tina, Cinnamon edition

I installed Byte from Software sources (via Flatpak) and my initial run came up fine, I specified my Music folder and it began the music library import. It crashed eventually during the import and now Byte crashes on start.

Here is an excerpt of errors when running Byte from terminal:

$ /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=com.github.alainm23.byte com.github.alainm23.byte

Error setting default avatar icon: Failed to open file “/usr/share/com.github.alainm23.byte/track-default-cover.svg”: No such file or directory Error setting default avatar icon: Failed to open file 

(com.github.alainm23.byte:2): Gtk-WARNING **: 11:50:55.802: Failed to set text 'Phillipa Soo, Jasmine Cephas-Jones, Leslie Odom, Jr., Original Broadway Cast of Hamilton & Renée Elise Goldsberry' from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as &amp;

(com.github.alainm23.byte:2): Gtk-WARNING **: 11:50:55.829: Failed to set text 'Crosby, Stills, Nash & Young' from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as &amp;

So for me, the error is that Byte cannot import filenames with the "&" character in them, much like for https://github.com/alainm23/byte/issues/47#issuecomment-560138559

alainm23 commented 4 years ago

Thanks for your comments. I have about 20 GB of music and I don't have this error, I will try to get more music and reproduce the error. But I am sure it is a mistake to use Threads.

alainm23 commented 4 years ago

I made some performance improvements available in the latest version of this repository. Could you build it and try it please. This will help me find the error faster.

git clone https://github.com/alainm23/byte.git
cd byte
meson build && cd build
meson configure -Dprefix=/usr
sudo ninja install
com.github.alainm23.byte
alainm23 commented 4 years ago

Byte v0.2

I just uploaded an update (waiting to be reviewed) to try to fix this error.

essicolo commented 4 years ago

Version 0.3.1 on elementary. Byte crashes on startup with a Segmentation fault. Shown tracks are never the same, sometimes no track is shown.

(com.github.alainm23.byte:17826): Gtk-WARNING **: 21:45:51.652: Child name 'home_view' not found in GtkStack
Track ID: 1702 - The Central Scrutinizer
Track ID: 1703 - Joe's Garage
Erreur de segmentation