Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++ Indexing operation threads spin indefinitely on completion #33

Open
ThisIsFineTM opened this issue Feb 17, 2025 · 0 comments
Open

Comments

@ThisIsFineTM
Copy link

Indexer threads just repeatedly spin and return with code 11 after indexing a C++ project. Same behavior observed on baked in example project and a bespoke project. Manually interrupting the indexing operation after it shows as complete lets me continue using the application seemingly without issue. I'll see if I can figure this out and post an update/PR. System is Fedora 41 x86_64.

...
...

16:07:18 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 9 returned with 11
16:07:18 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 4 returned with 11
16:07:18 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 8 returned with 11
16:07:18 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 1 returned with 11
16:07:18 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 3 returned with 11
16:07:18 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 5 returned with 11
16:07:18 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 10 returned with 11
16:07:18 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 2 returned with 11
16:07:18 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 15 returned with 11
16:07:18 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 12 returned with 11
16:07:18 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 13 returned with 11
16:07:18 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 14 returned with 11
16:07:18 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 11 returned with 11
16:07:18 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 6 returned with 11
16:07:18 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 7 returned with 11
16:07:18 | INFO: send MessageIndexingInterrupted 
16:07:18 | TaskFillIndexerCommandQueue.cpp:80 handleMessage() | INFO: Discarding remaining 0 indexer commands.
16:07:18 | TaskFillIndexerCommandQueue.cpp:92 handleMessage() | INFO: Remaining: 0.
16:07:18 | TaskBuildIndex.cpp:170 handleMessage() | INFO: sending indexer interrupt command.
16:07:18 | INFO: send MessageStatus Interrupting Indexing: Waiting for indexer threads to finish - loading
16:07:18 | StatusBarController.cpp:87 setStatus() | INFO: STATUS Interrupting Indexing: Waiting for indexer threads to finish
16:07:18 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 16 returned with 11
16:07:19 | TaskBuildIndex.cpp:101 doUpdate() | INFO: interrupted indexing.
16:07:19 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 4 returned with 11
16:07:19 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 1 returned with 11
16:07:19 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 8 returned with 11
16:07:19 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 2 returned with 11
16:07:19 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 5 returned with 11
16:07:19 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 3 returned with 11
16:07:19 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 10 returned with 11
16:07:19 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 9 returned with 11
16:07:19 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 11 returned with 11
16:07:19 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 13 returned with 11
16:07:19 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 14 returned with 11
16:07:19 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 12 returned with 11
16:07:19 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 15 returned with 11
16:07:20 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 6 returned with 11
16:07:20 | TaskBuildIndex.cpp:209 runIndexerProcess() | INFO: Indexer process 7 returned with 11
16:07:20 | SqliteDatabaseIndex.cpp:33 removeFromDatabase() | INFO: Removing database index "edge_source_node_id_index"
16:07:20 | SqliteDatabaseIndex.cpp:33 removeFromDatabase() | INFO: Removing database index "edge_target_node_id_index"
16:07:20 | SqliteDatabaseIndex.cpp:19 createOnDatabase() | INFO: Creating database index "node_serialized_name_index"
16:07:20 | INFO: send MessageStatus Finish Indexing: Saving Remaining Data - loading
16:07:20 | StatusBarController.cpp:87 setStatus() | INFO: STATUS Finish Indexing: Saving Remaining Data
16:07:20 | SqliteDatabaseIndex.cpp:19 createOnDatabase() | INFO: Creating database index "source_location_file_node_id_index"
16:07:20 | SqliteDatabaseIndex.cpp:33 removeFromDatabase() | INFO: Removing database index "error_all_data_index"
16:07:20 | SqliteDatabaseIndex.cpp:33 removeFromDatabase() | INFO: Removing database index "file_path_index"
16:07:20 | SqliteDatabaseIndex.cpp:19 createOnDatabase() | INFO: Creating database index "occurrence_element_id_index"
16:07:20 | SqliteDatabaseIndex.cpp:19 createOnDatabase() | INFO: Creating database index "occurrence_source_location_id_index"
16:07:20 | SqliteDatabaseIndex.cpp:33 removeFromDatabase() | INFO: Removing database index "element_component_foreign_key_index"
16:07:20 | SqliteDatabaseIndex.cpp:33 removeFromDatabase() | INFO: Removing database index "edge_source_foreign_key_index"
16:07:20 | SqliteDatabaseIndex.cpp:33 removeFromDatabase() | INFO: Removing database index "edge_target_foreign_key_index"
16:07:20 | SqliteDatabaseIndex.cpp:33 removeFromDatabase() | INFO: Removing database index "source_location_foreign_key_index"
16:07:20 | SqliteDatabaseIndex.cpp:33 removeFromDatabase() | INFO: Removing database index "occurrence_element_foreign_key_index"
16:07:20 | SqliteDatabaseIndex.cpp:33 removeFromDatabase() | INFO: Removing database index "occurrence_source_location_foreign_key_index"
16:07:20 | INFO: send MessageStatus Finish Indexing: Optimizing database - loading
16:07:20 | StatusBarController.cpp:87 setStatus() | INFO: STATUS Finish Indexing: Optimizing database
16:07:20 | INFO: send MessageStatus 
16:07:20 | INFO: send MessageStatus Finished indexing: 97/97 source files indexed; 00:00:19:680; 0 errors
16:07:20 | StatusBarController.cpp:87 setStatus() | INFO: STATUS Finished indexing: 97/97 source files indexed; 00:00:19:680; 0 errors
16:07:25 | INFO: send MessageErrorsHelpMessage 
16:07:25 | Project.cpp:779 swapToTempStorage() | INFO: Switching to temporary indexing data
16:07:25 | INFO: send MessageIndexingStatus 
16:07:25 | INFO: send MessageIndexingFinished 
16:07:25 | Application.cpp:475 logStorageStats() | INFO: 
Graph:
	8677 Nodes
	36276 Edges

Code:
	138 Files
	33967 Lines of Code

Errors:
	0 Errors
	0 Fatal Errors

16:07:25 | BookmarkController.cpp:485 getBookmarks() | INFO: Retrieving bookmarks with filter "1" and order "2"
16:07:25 | BookmarkController.cpp:445 getAllBookmarks() | INFO: Retrieving all bookmarks

@petermost petermost changed the title Indexing operation threads spin indefinitely on completion C++ Indexing operation threads spin indefinitely on completion Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant