Opened 4 years ago

Last modified 3 years ago

#16314 new bug

HaikuDepot freezes if initially launched with no network

Reported by: nyanpasu64 Owned by: apl-haiku
Priority: normal Milestone: Unscheduled
Component: Applications/HaikuDepot Version: R1/beta2
Keywords: Cc: nielx
Blocked By: Blocking:
Platform: All

Description

  • Start up a Haiku disk (or new USB install) with no network access.
  • Launch HaikuDepot. The progress bar gets stuck at 25%
  • Try to close the program. It freezes.

Dragging the window around will move the contents, dragging other windows over it will leave a trail. In Team Monitor, trying to quit the application will not work, only kill will.

If you re-run the program (still with no network), it will not crash. Instead you get the "data to be outdated to missing" warning. I feel this dialog box is very wordy, rambling, and unclear as to what went wrong (package list update failed). And it refers you to check the user guide (not providing a URL) to find out where the logs are located.

If you connect the network, reload packages, unplug cable, and reboot, running the program will still not crash. I haven't tested what happens if you don't connect the network but reboot.

OSes:

  • haiku-r1beta2-hrev54154_111-x86_64-anyboot.iso on Core 2 Duo laptop
  • haiku-r1beta2-hrev54154_111-x86_64-anyboot.iso on VirtualBox
  • haiku-master-hrev54365-x86_64-anyboot.iso on VirtualBox

Change History (7)

comment:1 by diver, 4 years ago

Component: - GeneralApplications/HaikuDepot
Owner: changed from nobody to apl-haiku

comment:2 by apl-haiku, 4 years ago

To try to reproduce the problem, I have deleted the directories ~/config/cache/HaikuDepot and ~/config/settings/HaikuDepot then re-launched with no network. It seems to start fine. Can you please get a dump of the logs as the application starts with this problem so that I can hopefully see what the problem is. Instructions for this are found at (https://www.haiku-os.org/docs/userguide/en/applications/haikudepot.html). Please attach the log file to this ticket.

comment:3 by apl-haiku, 3 years ago

Can you please supply some logs to help investigate this ticket further. If it is not possible to get some logging then it will be difficult to diagnose the problem and so I will need to close the ticket.

comment:4 by nyanpasu64, 3 years ago

Still happens on haiku-master-hrev55246-x86_64-anyboot.zip.

  • Start up a Haiku disk (or new USB install) with no network access.
  • Launch HaikuDepot. Say either Yes or No when asked to report analytics information. The progress bar gets stuck at 35% or so.
  • Try to close the program. It freezes.

If you re-run the program (still with no network), it will get stuck at 35% and freeze when closed.

If you re-run the program a second time (still with no network), it will not crash. Instead you get the "data to be outdated to missing" warning.

I'm not sure what you mean by logs. What app should I use to view logs for running programs? I chose to paste console output here, since it seems HaikuDepot logs to console.

Welcome to the Haiku shell.

~> HaikuDepot 
{I} last version [] and current version [0.0.5] do not match -> will flush cache
{I} will write version [0.0.5] to [/boot/home/config/cache/HaikuDepot/version.txt]
{I} did clear the featured packages view
{I} adding and starting a process coordinator [BulkLoad]
{I} [Node<LocalRepositoryUpdateProcess>] initiating threaded
{I} [Node<LocalRepositoryUpdateProcess>] starting process in thread
{I} [LocalRepositoryUpdateProcess] will update local repositories' caches
{I} [LocalRepositoryUpdateProcess] am updating cache for repo [Haiku] as this is the first time that the application has run
{I} [Node<ServerReferenceDataUpdateProcess>] initiating threaded
{I} [Node<ServerReferenceDataUpdateProcess>] starting process in thread
{I} [ServerReferenceDataUpdateProcess] will fetch data
{E} [ServerReferenceDataUpdateProcess] an error has arisen; Unknown Application Error (-2147418108)
{I} [Node<ServerReferenceDataUpdateProcess>] finished process in thread 0.250114 seconds

(close window)

{I} will stop all process coordinators
{I} [Coordinator] will stop process coordinator
{I} [Coordinator] stopping process [LocalRepositoryUpdateProcess]

(app is frozen. wait for a few seconds...)

{E} [Node<LocalRepositoryUpdateProcess>] timeout waiting for process state
{I} [LocalRepositoryUpdateProcess] process did not stop within timeout - will be stopped uncleanly
{I} [Coordinator] stopping process [LocalPkgDataLoadProcess]
{I} [Coordinator] stopping process [ServerIconExportUpdateProcess]
{I} [Coordinator] stopping process [ServerRepositoryDataUpdateProcess]
{I} [Coordinator] stopping process [ServerReferenceDataUpdateProcess] (owing to error)
{I} [Coordinator] stopping process [ServerPkgDataUpdateProcess<Haiku>]
{I} [Coordinator] stopping process [ServerPkgDataUpdateProcess<HaikuPorts>]
{I} will wait until the process coordinator has stopped

(app is still frozen. Ctrl+C.)

~> HaikuDepot 
{I} last version [0.0.5] and current version [0.0.5] match -> cache retained
{I} did clear the featured packages view
{I} adding and starting a process coordinator [BulkLoad]
{I} [Node<LocalRepositoryUpdateProcess>] initiating threaded
{I} [Node<LocalRepositoryUpdateProcess>] starting process in thread
{I} [LocalRepositoryUpdateProcess] will update local repositories' caches
{I} [LocalRepositoryUpdateProcess] am updating cache for repo [Haiku] as this is the first time that the application has run
{I} [Node<ServerReferenceDataUpdateProcess>] initiating threaded
{I} [Node<ServerReferenceDataUpdateProcess>] starting process in thread
{I} [ServerReferenceDataUpdateProcess] will fetch data
{E} [ServerReferenceDataUpdateProcess] an error has arisen; Unknown Application Error (-2147418108)
{I} [Node<ServerReferenceDataUpdateProcess>] finished process in thread 0.250172 seconds

(close window...)

{I} will stop all process coordinators
{I} [Coordinator] will stop process coordinator
{I} [Coordinator] stopping process [LocalRepositoryUpdateProcess]

(app is frozen. wait for a few seconds...)

{E} [Node<LocalRepositoryUpdateProcess>] timeout waiting for process state
{I} [LocalRepositoryUpdateProcess] process did not stop within timeout - will be stopped uncleanly
{I} [Coordinator] stopping process [LocalPkgDataLoadProcess]
{I} [Coordinator] stopping process [ServerIconExportUpdateProcess]
{I} [Coordinator] stopping process [ServerRepositoryDataUpdateProcess]
{I} [Coordinator] stopping process [ServerReferenceDataUpdateProcess] (owing to error)
{I} [Coordinator] stopping process [ServerPkgDataUpdateProcess<Haiku>]
{I} [Coordinator] stopping process [ServerPkgDataUpdateProcess<HaikuPorts>]
{I} will wait until the process coordinator has stopped

(app is still frozen. Ctrl+C.)

~> HaikuDepot 
{I} last version [0.0.5] and current version [0.0.5] match -> cache retained
{I} did clear the featured packages view
{I} adding and starting a process coordinator [BulkLoad]
{I} [Node<LocalRepositoryUpdateProcess>] initiating threaded
{I} [Node<LocalRepositoryUpdateProcess>] starting process in thread
{I} [LocalRepositoryUpdateProcess] will update local repositories' caches
{I} [LocalRepositoryUpdateProcess] did update 2 local repositories' caches
{I} [Node<LocalPkgDataLoadProcess>] initiating threaded
{I} [Node<LocalPkgDataLoadProcess>] starting process in thread
{I} [Node<ServerReferenceDataUpdateProcess>] initiating threaded
{I} [Node<ServerReferenceDataUpdateProcess>] starting process in thread
{I} [ServerReferenceDataUpdateProcess] will fetch data
{E} [ServerReferenceDataUpdateProcess] an error has arisen; Unknown Application Error (-2147418108)
{I} [Node<ServerIconExportUpdateProcess>] initiating threaded
{I} [Node<ServerIconExportUpdateProcess>] starting process in thread
{I} [ServerIconExportUpdateProcess] will fetch data
{E} [ServerIconExportUpdateProcess] an error has arisen; Unknown Application Error (-2147418108)
{I} [Node<ServerRepositoryDataUpdateProcess>] initiating threaded
{I} [Node<ServerRepositoryDataUpdateProcess>] starting process in thread
{I} [ServerRepositoryDataUpdateProcess] will fetch data
{E} [ServerRepositoryDataUpdateProcess] an error has arisen; Unknown Application Error (-2147418108)
{I} process coordinator [BulkLoad] did complete
{I} [Node<LocalRepositoryUpdateProcess>] finished process in thread 1.250962 seconds{I} 
! unknown process coordinator changed
{I} ! unknown process coordinator changed
{I} [Node<ServerIconExportUpdateProcess>] finished process in thread 0.500753 seconds
{I} {I} [Node<ServerReferenceDataUpdateProcess>] finished process in thread 0.751057 seconds! unknown process coordinator changed

{I} [Node<LocalPkgDataLoadProcess>] finished process in thread 1.001180 seconds
{I} ! unknown process coordinator changed
{I} [Node<ServerRepositoryDataUpdateProcess>] finished process in thread 0.250731 seconds

(error popup appears, app is responsive. close the window...)

{I} will stop all process coordinators
{I} will wait until the process coordinator has stopped
{I} did stop all process coordinators
~> 

comment:5 by nyanpasu64, 3 years ago

I could not reproduce on R1/beta3, which I don't know if it's older or newer than hrev55246. It might be fixed, or not.

comment:6 by apl-haiku, 3 years ago

I had a look into this one and it seems to be related to DNS lookup. If a network interface is up but cannot route then the DNS lookup will block the URL fetches that occur as the application starts up. Cancelling the URL fetch at this point does not seem to work as there is no mechanic to cancel the DNS lookup in the BNetworkRequest::_ResolveHostName logic. As there is proposed to be an imminent re-work of the URL request system (niels on mailing list).

comment:7 by diver, 3 years ago

Cc: nielx added
Note: See TracTickets for help on using tickets.