Hangs on startup with "rainbow circle" about 1/2 the time on MacOS

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, helmut, xnview

pointy
Posts: 13
Joined: Wed Sep 13, 2023 8:57 pm

Hangs on startup with "rainbow circle" about 1/2 the time on MacOS

Post by pointy »

xnviewmp 1.5.5, MacOS M1 Pro 13.4.1

About half the time I try to launch xnviewmp, the program hangs immediately. I can "force quit", remove my .ini file, and then it starts up.

I'm not doing anything weird, just an ordinary MacBook with a couple of attached USB drives (and I only really use one of those, and that occasionally). I have no idea what could be making this happen, but when I say half the time I mean it. It doesn't do that *sometimes*, but I've pretty much come to expect that I'll have to force quit, remove the .ini file, and try again.

I've searched for this issue but found nothing helpful other than "try removing the .ini file", which as I said does work, but I don't understand why it's OK that the program creates the very .ini file that's going to make it hang next time I start it up.

I'd be delighted to supply any sort of debugging information that might be available, but I have no idea where to find that.
pointy
Posts: 13
Joined: Wed Sep 13, 2023 8:57 pm

Re: Hangs on startup with "rainbow circle" about 1/2 the time on MacOS

Post by pointy »

Here's what I see in a terminal window when I launch it from the command line (the last bunch of messages):

Code: Select all

### BrowserWindow :: onStart
libpng warning: iCCP: known incorrect sRGB profile
QObject::connect: Cannot queue arguments of type 'QList<int>'
(Make sure 'QList<int>' is registered using qRegisterMetaType().)
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
BrowserWindow :: onStart 2
setPathname </Volumes/Macintosh HD/>
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: setFileList(0)
### ThumbLoaderThread :: setFileList() wait
######ThumbLoaderThread :: run : 343a590
######ThumbLoaderThread :: forever : 343a590
 ** start condition wait
### ThumbLoaderThread :: setFileList() after wait
ThumbLoaderThread :: stop()
 ** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
## OPEN FOLDER
######ThumbLoaderThread :: forever 2 : 343a590
CHECK <0>
######ThumbLoaderThread :: forever : 343a590
 ** start condition wait
## Check folder
  ## Check companion  0
  ## Check companion ok  0
  ## OPEN DB FOLDER ok  0
  ## UPDATE DB FOLDER ok  1
  ## OPEN FOLDER ok  1
## updateLabel  1
## updateLabels ok  2
ThumbLoaderThread :: stop()
SORT the list...
STD::SORT... 0
  STL::SORT... 0
SORT the list... 0
SORT the list... 0
BitmapLoadThread :: stop()
QObject::disconnect: No such signal CategoryView::selectionChanged(const DBFilterModel::DBFileList&)
QObject::connect: No such signal CategoryView::selectionChanged(const DBFilterModel::DBFileList&)
Create children /Volumes/
Create children /Volumes/Macintosh HD/
## OPEN FOLDER done  43
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: setFileList(4)
ThumbLoaderThread :: stop()
 ** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
######ThumbLoaderThread :: forever 2 : 343a590
CHECK <4>
### START 4
######ThumbLoaderThread :: start : 4     -1 -1
### BrowserWindow :: finish
######ThumbLoaderThread :: forever : 343a590
 ** start condition wait
sizeHints : 128
It gets to that "sizeHints" message, and then the "wait" cursor turns on and that's the last I hear from it.
User avatar
xnview
Author of XnView
Posts: 43605
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Hangs on startup with "rainbow circle" about 1/2 the time on MacOS

Post by xnview »

do you had same problem with previous version? In '/Volumes/Macintosh HD/' do you have video files? When it works if you close XnView in a folder with only jpeg/png files, same problam next time?
Pierre.
pointy
Posts: 13
Joined: Wed Sep 13, 2023 8:57 pm

Re: Hangs on startup with "rainbow circle" about 1/2 the time on MacOS

Post by pointy »

xnview wrote: Thu Sep 14, 2023 6:24 am do you had same problem with previous version? In '/Volumes/Macintosh HD/' do you have video files? When it works if you close XnView in a folder with only jpeg/png files, same problam next time?
Yes, same problem with two or three previous versions.

In the top-level "Macintosh HD" (main system disk) directory, there are no video files. On the entire volume there are probably some video files, I'm not sure. I do not try to use Xnview for video.
User avatar
xnview
Author of XnView
Posts: 43605
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Hangs on startup with "rainbow circle" about 1/2 the time on MacOS

Post by xnview »

if you try to open a file from another folder, and start browser?
Pierre.
pointy
Posts: 13
Joined: Wed Sep 13, 2023 8:57 pm

Re: Hangs on startup with "rainbow circle" about 1/2 the time on MacOS

Post by pointy »

The problem is that the hang makes it impossible to use the application at all. I cannot select *any* directory; all I can do is force-quit the application. If I try to start it without deleting my .ini file, it will hang again.
User avatar
xnview
Author of XnView
Posts: 43605
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Hangs on startup with "rainbow circle" about 1/2 the time on MacOS

Post by xnview »

you can try to change PathBrowser from xnview.ini
Pierre.
pointy
Posts: 13
Joined: Wed Sep 13, 2023 8:57 pm

Re: Hangs on startup with "rainbow circle" about 1/2 the time on MacOS

Post by pointy »

xnview wrote: Thu Sep 14, 2023 12:51 pm you can try to change PathBrowser from xnview.ini
Can I tell it to not save anything at all in the "History" list? I've suspected that the problem might have to do with using it for images on SD cards that later are ejected. However, I have determined that hanging does not depend on that being the case. Still, I don't really need the history; I am fully capable of navigating on my own :)
pointy
Posts: 13
Joined: Wed Sep 13, 2023 8:57 pm

Re: Hangs on startup with "rainbow circle" about 1/2 the time on MacOS

Post by pointy »

If I clear both "History" and "PathBrowser" (which were both set to only the main drive, /Volumes/Macintosh HD), it starts up correctly without hanging.
User avatar
xnview
Author of XnView
Posts: 43605
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Hangs on startup with "rainbow circle" about 1/2 the time on MacOS

Post by xnview »

pointy wrote: Thu Sep 14, 2023 1:14 pm If I clear both "History" and "PathBrowser" (which were both set to only the main drive, /Volumes/Macintosh HD), it starts up correctly without hanging.
as soon as you use a SD card, you have the issue?
Pierre.
pointy
Posts: 13
Joined: Wed Sep 13, 2023 8:57 pm

Re: Hangs on startup with "rainbow circle" about 1/2 the time on MacOS

Post by pointy »

xnview wrote: Thu Sep 14, 2023 2:04 pm
pointy wrote: Thu Sep 14, 2023 1:14 pm If I clear both "History" and "PathBrowser" (which were both set to only the main drive, /Volumes/Macintosh HD), it starts up correctly without hanging.
as soon as you use a SD card, you have the issue?
No, that was a suspicion but by being careful I realized that SD cards being mounted and unmounted has nothing to do with the problem. For example, I do not have an SD card in the computer today, and the program had the problem this morning (until I cleared "History" and "PathBrowser" in the .ini file).
User avatar
xnview
Author of XnView
Posts: 43605
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Hangs on startup with "rainbow circle" about 1/2 the time on MacOS

Post by xnview »

as soon as you clean History & PathBrowser, no more problem? When you have the problem what do you have in these field?
Pierre.
pointy
Posts: 13
Joined: Wed Sep 13, 2023 8:57 pm

Re: Hangs on startup with "rainbow circle" about 1/2 the time on MacOS

Post by pointy »

xnview wrote: Thu Sep 14, 2023 2:29 pm as soon as you clean History & PathBrowser, no more problem? When you have the problem what do you have in these field?
I have `/Volumes/Macintosh HD` in the "PathBrowser" field, and a random list of directories in "History".
pointy
Posts: 13
Joined: Wed Sep 13, 2023 8:57 pm

Re: Hangs on startup with "rainbow circle" about 1/2 the time on MacOS

Post by pointy »

Note that in all other respects my Mac is working fine. I don't have random hanging problems with any other applications. I am on the computer literally all day.
User avatar
xnview
Author of XnView
Posts: 43605
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Hangs on startup with "rainbow circle" about 1/2 the time on MacOS

Post by xnview »

pointy wrote: Thu Sep 14, 2023 4:57 pm I have `/Volumes/Macintosh HD` in the "PathBrowser" field, and a random list of directories in "History".
If you clean only PathBrowser when you have the problem, is it enough?
Pierre.