getappmap / appmap-js

Client libraries for AppMap
49 stars 17 forks source link

indexer crash #1824

Open apotterri opened 6 months ago

apotterri commented 6 months ago

This AppMap causes the indexer to crash: acceptance_test_TestGeneralUsage_test_directory_skipped.appmap.json

Indexing tmp/appmap/pytest/acceptance_test_TestGeneralUsage_test_directory_skipped.appmap.json
Read 1212353 bytes from tmp/appmap/pytest/acceptance_test_TestGeneralUsage_test_directory_skipped.appmap.json
Read 2637863 bytes from tmp/appmap/pytest/acceptance_test_TestGeneralUsage_test_direct_addressing_selects_duplicates_2.appmap.json
Read 1212353 bytes from tmp/appmap/pytest/acceptance_test_TestGeneralUsage_test_directory_skipped.appmap.json

#
# Fatal error in , line 0
# Fatal JavaScript invalid size error 169220804
#
#
#
#FailureMessage Object: 0x7ff7b5390f70
 1: 0x10aef1d52 node::PerIsolatePlatformData::RunForegroundTask(std::__1::unique_ptr<v8::Task, std::__1::default_delete<v8::Task>>) [/Users/ajp/.appmap/lib/appmap/appmap-v3.147.0]
 2: 0x10c2f49cb V8_Fatal(char const*, ...) [/Users/ajp/.appmap/lib/appmap/appmap-v3.147.0]
 3: 0x10b4f06a1 v8::internal::ElementsAccessor::InitializeOncePerProcess() [/Users/ajp/.appmap/lib/appmap/appmap-v3.147.0]
 4: 0x10b719821 v8::internal::Runtime_GrowArrayElements(int, unsigned long*, v8::internal::Isolate*) [/Users/ajp/.appmap/lib/appmap/appmap-v3.147.0]
 5: 0x10abeec79  [/Users/ajp/.appmap/lib/appmap/appmap-v3.147.0]
 6: 0x113232700 
 7: 0x10ab72cd0  [/Users/ajp/.appmap/lib/appmap/appmap-v3.147.0]
 8: 0x10ac10cec  [/Users/ajp/.appmap/lib/appmap/appmap-v3.147.0]
 9: 0x1132303eb 
apotterri commented 6 months ago

This recording was generated from the tests in pytest. Quite a few of its other AppMaps also caused this crash.

apotterri commented 6 months ago

The Trace diagram for this AppMap initially opened ok. However, trying to expand the children caused the view to hang.

petecheslock commented 5 months ago

Yea - there were a slew of the pytest ones that ran in the GH action hit this recently https://gist.github.com/petecheslock/1588729e4307e7bf4e282cf3f623759e https://github.com/getappmap/SWE-bench/actions/runs/9391020714/job/25862214904

apotterri commented 5 months ago

Here are a couple more from django-oscar: tests_functional_checkout_test_guest_checkout_TestIndexView_test_redirects_customers_with_empty_basket.appmap.json tests_functional_dashboard_test_dashboard_TestDashboardIndexForAnonUser_test_is_not_available.appmap.json