bvanosnabrugge / summaWorkflow_public

GNU General Public License v3.0
0 stars 4 forks source link

[bug] segmentation fault when running 1_topo scripts after another #39

Open bartvanosnabrugge opened 2 years ago

bartvanosnabrugge commented 2 years ago

when running the 1_topo scripts in order from one script, segmentation faults occur.

bartvanosnabrugge commented 2 years ago

The solution suggested by https://github.com/CH-Earth/comphydShared_summa/blob/d6c8b14f3bb37996782712dfd5872a6926606b26/scripts/model_builder/model_builder_funcs/find_HRU_params_method1.py#L49 was to remove this line.

Removed the line from the respective file in dependencies/cwarhm-summa see commit 28719ccafb83feeb794c9a54ec07244535564e64

bartvanosnabrugge commented 2 years ago

A new segmentation fault has now occurred

running wrapper for /Users/ayx374/Documents/GitHub/forks/summaWorkflow_public/dependencies/cwarhm-summa/5_model_input/SUMMA/1f_attributes/2c_insert_elevation_into_attributes.py /Users/ayx374/Documents/GitHub/forks/summaWorkflow_public/cwarhm/wrappers/cwarhm_summa.py:59: ResourceWarning: unclosed file <_io.TextIOWrapper name='/Users/ayx374/Documents/GitHub/forks/summaWorkflow_public/dependencies/cwarhm-summa/5_model_input/SUMMA/1f_attributes/2c_insert_elevation_into_attributes.py' mode='r' encoding='UTF-8'> exec(open(script_path).read(), globals(), globals()) ResourceWarning: Enable tracemalloc to get the object allocation traceback Replacing elevation -999.0 [m] with 2113.275575029089 [m] at HRU 48 Replacing elevation -999.0 [m] with 1694.167915267689 [m] at HRU 97 Replacing elevation -999.0 [m] with 1409.597142016794 [m] at HRU 118 Replacing elevation -999.0 [m] with 2181.1250443522135 [m] at HRU 1 Replacing elevation -999.0 [m] with 1704.8815968540737 [m] at HRU 49 Replacing elevation -999.0 [m] with 1402.249187127386 [m] at HRU 100 Replacing elevation -999.0 [m] with 2232.4051443401136 [m] at HRU 2 Replacing elevation -999.0 [m] with 1775.0189928296886 [m] at HRU 50 Replacing elevation -999.0 [m] with 1419.5045562444948 [m] at HRU 101 Replacing elevation -999.0 [m] with 2301.8800536404706 [m] at HRU 3 Replacing elevation -999.0 [m] with 1744.985064444409 [m] at HRU 51 Replacing elevation -999.0 [m] with 1422.0794577998156 [m] at HRU 102 Replacing elevation -999.0 [m] with 2240.0869338322423 [m] at HRU 4 Replacing elevation -999.0 [m] with 1665.4638240180705 [m] at HRU 52 Replacing elevation -999.0 [m] with 1439.8104171266095 [m] at HRU 103 Replacing elevation -999.0 [m] with 2288.068843562057 [m] at HRU 5 Replacing elevation -999.0 [m] with 1738.7191887190781 [m] at HRU 53 Replacing elevation -999.0 [m] with 1443.0692795596449 [m] at HRU 104 Replacing elevation -999.0 [m] with 2331.4548456084212 [m] at HRU 6 Replacing elevation -999.0 [m] with 1684.8137203694423 [m] at HRU 54 Replacing elevation -999.0 [m] with 1464.18726551272 [m] at HRU 105 Replacing elevation -999.0 [m] with 2253.423467422212 [m] at HRU 7 Replacing elevation -999.0 [m] with 1678.4244692442846 [m] at HRU 55 Replacing elevation -999.0 [m] with 1494.287981862811 [m] at HRU 106 Replacing elevation -999.0 [m] with 2263.222648965515 [m] at HRU 8 Replacing elevation -999.0 [m] with 1679.4948833739265 [m] at HRU 56 Replacing elevation -999.0 [m] with 1499.0364102450285 [m] at HRU 107 Replacing elevation -999.0 [m] with 2256.672683114219 [m] at HRU 9 Replacing elevation -999.0 [m] with 1709.6730152445498 [m] at HRU 57 Replacing elevation -999.0 [m] with 2106.7463736185214 [m] at HRU 10 Replacing elevation -999.0 [m] with 1651.6449719923164 [m] at HRU 58 Replacing elevation -999.0 [m] with 1542.3192467322717 [m] at HRU 99 Replacing elevation -999.0 [m] with 1618.189980397106 [m] at HRU 59 Replacing elevation -999.0 [m] with 2306.797862832942 [m] at HRU 11 Replacing elevation -999.0 [m] with 1763.1302202019258 [m] at HRU 60 Replacing elevation -999.0 [m] with 2429.18112792269 [m] at HRU 12 Replacing elevation -999.0 [m] with 1845.3284817415126 [m] at HRU 61 Replacing elevation -999.0 [m] with 2193.0411298393024 [m] at HRU 13 Replacing elevation -999.0 [m] with 1659.4221740126222 [m] at HRU 62 Replacing elevation -999.0 [m] with 1435.8498362714915 [m] at HRU 108 Replacing elevation -999.0 [m] with 2251.4697985453454 [m] at HRU 14 Replacing elevation -999.0 [m] with 1727.5450937962864 [m] at HRU 63 Replacing elevation -999.0 [m] with 1415.8900537939314 [m] at HRU 109 Replacing elevation -999.0 [m] with 2262.1000473788886 [m] at HRU 15 Replacing elevation -999.0 [m] with 1706.2268354907878 [m] at HRU 64 Replacing elevation -999.0 [m] with 1487.8250122070312 [m] at HRU 110 Replacing elevation -999.0 [m] with 2311.798003889686 [m] at HRU 16 Replacing elevation -999.0 [m] with 1796.2653492576833 [m] at HRU 65 Replacing elevation -999.0 [m] with 1809.3268275310083 [m] at HRU 98 Replacing elevation -999.0 [m] with 2293.1301961330055 [m] at HRU 17 Replacing elevation -999.0 [m] with 1745.9620791015625 [m] at HRU 66 Replacing elevation -999.0 [m] with 2341.9224303943306 [m] at HRU 18 Replacing elevation -999.0 [m] with 1718.4629421245725 [m] at HRU 67 Replacing elevation -999.0 [m] with 1470.2656053112398 [m] at HRU 111 Replacing elevation -999.0 [m] with 2380.264395329075 [m] at HRU 19 Replacing elevation -999.0 [m] with 1891.5113396812012 [m] at HRU 68 Replacing elevation -999.0 [m] with 2301.928243692535 [m] at HRU 20 Replacing elevation -999.0 [m] with 1774.5584678019272 [m] at HRU 69 Replacing elevation -999.0 [m] with 1492.0629973234954 [m] at HRU 112 Replacing elevation -999.0 [m] with 2257.3265592997454 [m] at HRU 21 Replacing elevation -999.0 [m] with 1820.6775236419758 [m] at HRU 70 Replacing elevation -999.0 [m] with 2352.439437695002 [m] at HRU 22 Replacing elevation -999.0 [m] with 1851.7455949884697 [m] at HRU 71 Replacing elevation -999.0 [m] with 2333.8318323918893 [m] at HRU 23 Replacing elevation -999.0 [m] with 1862.8642035457174 [m] at HRU 72 Replacing elevation -999.0 [m] with 2304.6155485563413 [m] at HRU 24 Replacing elevation -999.0 [m] with 1829.3687234984898 [m] at HRU 73 Replacing elevation -999.0 [m] with 2282.8794914959362 [m] at HRU 25 Replacing elevation -999.0 [m] with 1793.0929272320675 [m] at HRU 74 Replacing elevation -999.0 [m] with 1484.7316059313323 [m] at HRU 113 Replacing elevation -999.0 [m] with 2265.0246623817884 [m] at HRU 26 Replacing elevation -999.0 [m] with 1753.8234884600572 [m] at HRU 75 Replacing elevation -999.0 [m] with 1442.9007405891693 [m] at HRU 114 Replacing elevation -999.0 [m] with 2234.6343787747865 [m] at HRU 27 Replacing elevation -999.0 [m] with 1933.919295247396 [m] at HRU 76 Replacing elevation -999.0 [m] with 2362.721576433616 [m] at HRU 28 Replacing elevation -999.0 [m] with 1900.0878893197387 [m] at HRU 77 Replacing elevation -999.0 [m] with 2327.208907950236 [m] at HRU 29 Replacing elevation -999.0 [m] with 1874.36350994975 [m] at HRU 78 Replacing elevation -999.0 [m] with 2329.113305513756 [m] at HRU 30 Replacing elevation -999.0 [m] with 1861.6985952637085 [m] at HRU 79 Replacing elevation -999.0 [m] with 2305.7710661256215 [m] at HRU 31 Replacing elevation -999.0 [m] with 1769.9297779075466 [m] at HRU 80 Replacing elevation -999.0 [m] with 1467.2970581054688 [m] at HRU 115 Replacing elevation -999.0 [m] with 2319.7143563098407 [m] at HRU 32 Replacing elevation -999.0 [m] with 1845.7322665075606 [m] at HRU 81 Replacing elevation -999.0 [m] with 2415.539345052886 [m] at HRU 33 Replacing elevation -999.0 [m] with 1865.9531506917563 [m] at HRU 82 Replacing elevation -999.0 [m] with 1502.0999755859375 [m] at HRU 116 Replacing elevation -999.0 [m] with 2413.054304645063 [m] at HRU 34 Replacing elevation -999.0 [m] with 1874.7576618478367 [m] at HRU 83 Replacing elevation -999.0 [m] with 2371.327424044896 [m] at HRU 35 Replacing elevation -999.0 [m] with 1828.3330862389837 [m] at HRU 84 Replacing elevation -999.0 [m] with 1440.976313954776 [m] at HRU 117 Replacing elevation -999.0 [m] with 2492.927133332092 [m] at HRU 36 Replacing elevation -999.0 [m] with 1797.1932520877829 [m] at HRU 85 Replacing elevation -999.0 [m] with 2357.0340437189216 [m] at HRU 37 Replacing elevation -999.0 [m] with 1715.6011860771387 [m] at HRU 86 Replacing elevation -999.0 [m] with 2516.085360689106 [m] at HRU 38 Replacing elevation -999.0 [m] with 1879.1256612340999 [m] at HRU 87 Replacing elevation -999.0 [m] with 2399.790764952759 [m] at HRU 39 Replacing elevation -999.0 [m] with 1909.6004163864877 [m] at HRU 88 Replacing elevation -999.0 [m] with 2382.656989395468 [m] at HRU 40 Replacing elevation -999.0 [m] with 1758.5804202763911 [m] at HRU 89 Replacing elevation -999.0 [m] with 2364.009798590133 [m] at HRU 41 Replacing elevation -999.0 [m] with 1907.6234737221712 [m] at HRU 90 Replacing elevation -999.0 [m] with 2485.7857243688713 [m] at HRU 42 Replacing elevation -999.0 [m] with 1815.5280036661727 [m] at HRU 91 Replacing elevation -999.0 [m] with 2413.538904729149 [m] at HRU 43 Replacing elevation -999.0 [m] with 1923.8615226081024 [m] at HRU 92 Replacing elevation -999.0 [m] with 2552.319670473011 [m] at HRU 44 Replacing elevation -999.0 [m] with 1929.2600221445862 [m] at HRU 93 Replacing elevation -999.0 [m] with 2430.2113419923253 [m] at HRU 45 Replacing elevation -999.0 [m] with 1946.3547414463771 [m] at HRU 94 Replacing elevation -999.0 [m] with 2407.4173527545177 [m] at HRU 46 Replacing elevation -999.0 [m] with 1934.536977016752 [m] at HRU 95 Replacing elevation -999.0 [m] with 2398.2599948145635 [m] at HRU 47 Replacing elevation -999.0 [m] with 1931.3799124358497 [m] at HRU 96 Segmentation fault: 11

bartvanosnabrugge commented 2 years ago

probably related to gdal stack (is this how it is called) import issues, could be solved by limiting conflicting imports of gdal. Prime suspects are gdal and qgis.