samotolisib in treating patients with relapsed or refractory advanced solid tumors, non-hodgkin lymphoma, or histiocytic disorders with tsc or pi3k/mtor mutations (a pediatric match treatment trial)

Conditions: Advanced Malignant Solid Neoplasm; Ann Arbor Stage III Non-Hodgkin Lymphoma; Ann Arbor Stage IV Non-Hodgkin Lymphoma; Malignant Glioma; Recurrent Ependymoma; Recurrent Ewing Sarcoma; Recurrent Glioma; Recurrent Hepatoblastoma; Recurrent Langerhans Cell Histiocytosis; Recurrent Malignant Germ Cell Tumor; Recurrent Malignant Solid Neoplasm; Recurrent Medulloblastoma; Recurrent Neuroblastoma; Recurrent Non-Hodgkin Lymphoma; Recurrent Osteosarcoma; Recurrent Peripheral Primitive Neuroectodermal Tumor; Recurrent Primary Central Nervous System Neoplasm; Recurrent Rhabdomyosarcoma; Recurrent Soft Tissue Sarcoma; Refractory Langerhans Cell Histiocytosis; Refractory Malignant Germ Cell Tumor; Refractory Malignant Solid Neoplasm; Refractory Neuroblastoma; Refractory Non-Hodgkin Lymphoma; Refractory Primary Central Nervous System Neoplasm; Rhabdoid Tumor; Stage III Osteosarcoma AJCC v7; Stage III Soft Tissue Sarcoma AJCC v7; Stage IV Osteosarcoma AJCC v7; Stage IV Soft Tissue Sarcoma AJCC v7; Stage IVA Osteosarcoma AJCC v7; Stage IVB Osteosarcoma AJCC v7; Wilms Tumor

Summary: this phase ii pediatric match trial studies how well samotolisib works in treating patients with solid tumors, non-hodgkin lymphoma, or histiocytic disorders with tsc or pi3k/mtor mutations that have spread to other places in the body (metastatic) and have come back (recurrent) or do not respond to treatment (refractory). samotolisib may stop the growth of cancer cells by blocking some of the enzymes needed for cell growth.

primary objective: i. to determine the objective response rate (orr; complete response + partial response) in pediatric patients treated with samotolisib (ly3023414) with advanced solid tumors, non-hodgkin lymphomas or central nervous system (cns) tumors that harbor tsc loss of function mutations, and/or other pi3k/mtor activating mutations. secondary objectives: i. to estimate the progression free survival in pediatric patients treated with ly3023414 with advanced solid tumors, non-hodgkin lymphomas or cns tumors that harbor tsc loss of function mutations, and/or other pi3k/mtor activating mutations. ii. to obtain information about the tolerability of ly3023414 in children with relapsed or refractory cancer. iii. to characterize the pharmacokinetics of ly3023414 in children with recurrent or refractory cancer. exploratory objectives: i. to increase knowledge of the genomic landscape of relapsed pediatric solid tumors and lymphomas and identify potential predictive biomarkers (other than the genomic alteration for which study treatment was assigned) using additional genomic, transcriptomic, and proteomic testing platforms. ii. to explore approaches to profiling changes in tumor genomics over time through evaluation of circulating tumor deoxyribonucleic acid (dna). iii. to evaluate the frequency and mechanism of biallelic loss of function, and evaluate the expression of tsc1, tsc2, and pten in subjects who enroll with a loss of function mutation in one of these genes. outline: this is a dose-escalation study. patients receive samotolisib orally (po) twice daily (bid) on days 1-28. treatment repeats every 28 days for up to 6 cycles in the absence of disease progression or unexpected toxicity. patients undergo an x-ray, computed tomography (ct), magnetic resonance imaging (mri), fludeoxyglucose f-18 (fdg)-position emission tomography (fdg-pet), and blood sample collection on study. after completion of study treatment, patients are followed up periodically.

Eligibility criteria:
inclusion criteria: * patient must have enrolled onto apec1621sc/nci-2017-01251/ nct03155620 and must have been given a treatment assignment to molecular analysis for therapy choice (match) to apec1621d based on the presence of an actionable mutation as defined in apec1621sc; note that treatment assignment may be to primary cohort a for patients with tsc1 or tsc2 loss of function mutations or primary cohort b for patients with other pi3k/mtor pathway mutations * patients accruing to dose level 1 must have a body surface area \>= 0.52 m\^2 at the time of study enrollment; patients accruing to dose level 2 must have a body surface area \>= 0.37 m\^2 at the time of study enrollment; patients accruing to dose level -1 must have a body surface area \>= 0.75 m\^2 at the time of study enrollment * patients must have radiographically measurable disease at the time of study enrollment; patients with neuroblastoma who do not have measurable disease but have metaiodobenzylguanidine (mibg) positive (+) evaluable disease are eligible; measurable disease in patients with cns involvement is defined as any lesion that is at minimum 10 mm in one dimension on standard magnetic resonance imaging (mri) or computed tomography (ct) * note: the following do not qualify as measurable disease: * malignant fluid collections (e.g., ascites, pleural effusions) * bone marrow infiltration except that detected by mibg scan for neuroblastoma * lesions only detected by nuclear medicine studies (e.g., bone, gallium or positron emission tomography \[pet\] scans) except as noted for neuroblastoma * elevated tumor markers in plasma or cerebrospinal fluid (csf) * previously radiated lesions that have not demonstrated clear progression post radiation * leptomeningeal lesions that do not meet the measurement requirements for response evaluation criteria in solid tumors (recist) 1.1 * bone lesions without an associated soft tissue mass \>= 10 mm in greatest diameter; bone lesions with an associated soft tissue mass \>= 10 mm in greatest diameter imaged by ct or mri are considered measurable * karnofsky \>= 50% for patients \> 16 years of age and lansky \>= 50 for patients =\< 16 years of age; note: neurologic deficits in patients with cns tumors must have been stable for at least 7 days prior to study enrollment; patients who are unable to walk because of paralysis, but who are up in a wheelchair, will be considered ambulatory for the purpose of assessing the performance score * patients must have fully recovered from the acute toxic effects of all prior anti-cancer therapy and must meet the following minimum duration from prior anti-cancer directed therapy prior to enrollment; if after the required timeframe, the numerical eligibility criteria are met, e.g. blood count criteria, the patient is considered to have recovered adequately * cytotoxic chemotherapy or other anti-cancer agents known to be myelosuppressive; \>= 21 days after the last dose of cytotoxic or myelosuppressive chemotherapy (42 days if prior nitrosourea) * anti-cancer agents not known to be myelosuppressive (e.g. not associated with reduced platelet or absolute neutrophil count \[anc\] counts): \>= 7 days after the last dose of agent * antibodies: \>= 21 days must have elapsed from infusion of last dose of antibody, and toxicity related to prior antibody therapy must be recovered to grade =\< 1 * corticosteroids: if used to modify immune adverse events related to prior therapy, \>= 14 days must have elapsed since last dose of corticosteroid * hematopoietic growth factors: \>= 14 days after the last dose of a long-acting growth factor (e.g. pegfilgrastim) or 7 days for short-acting growth factor; for growth factors that have known adverse events occurring beyond 7 days after administration, this period must be extended beyond the time during which adverse events are known to occur; the duration of this interval must be discussed with the study chair and the study-assigned research coordinator * interleukins, interferons and cytokines (other than hematopoietic growth factors): \>= 21 days after the completion of interleukins, interferon or cytokines (other than hematopoietic growth factors) * stem cell infusions (with or without total body irradiation \[tbi\]): * allogeneic (non-autologous) bone marrow or stem cell transplant, or any stem cell infusion including donor lymphocyte infusion (dli) or boost infusion: \>= 84 days after infusion and no evidence of graft versus host disease (gvhd) * autologous stem cell infusion including boost infusion: \>= 42 days * cellular therapy: \>= 42 days after the completion of any type of cellular therapy (e.g. modified t cells, natural killer \[nk\] cells, dendritic cells, etc.) * radiation therapy (xrt)/external beam irradiation including protons: \>= 14 days after local xrt; \>= 150 days after tbi, craniospinal xrt or if radiation to \>= 50% of the pelvis; \>= 42 days if other substantial bone marrow (bm) radiation * note: radiation may not be delivered to "measurable disease" tumor site(s) being used to follow response to subprotocol treatment * radiopharmaceutical therapy (e.g., radiolabeled antibody, iobenguane i-131 \[131i-mibg\]): \>= 42 days after systemically administered radiopharmaceutical therapy * patients must not have received prior exposure to ly3023414 * patients must not have received prior exposure to an agent specifically directed at the pi3k/mtor pathway (a pi3k inhibitor, an akt inhibitor, an mtor inhibitor, including rapalogs, or a combined pi3k/mtor inhibitor) * for patients with solid tumors without known bone marrow involvement: * peripheral absolute neutrophil count (anc) \>= 1000/mm\^3 * platelet count \>= 100,000/mm\^3 (transfusion independent, defined as not receiving platelet transfusions for at least 7 days prior to enrollment) * patients with known bone marrow metastatic disease will be eligible for study provided they meet the blood counts (may receive transfusions provided they are not known to be refractory to red cell or platelet transfusions); these patients will not be evaluable for hematologic toxicity * creatinine clearance or radioisotope glomerular filtration rate (gfr) \>= 70 ml/min/1.73 m\^2 or a serum creatinine based on age/gender as follows: * age: 1 to \< 2 years; maximum serum creatinine (mg/dl): male 0.6; female 0.6 * age: 2 to \< 6 years; maximum serum creatinine (mg/dl): male 0.8; female 0.8 * age: 6 to \< 10 years; maximum serum creatinine (mg/dl): male 1; female 1 * age: 10 to \< 13 years; maximum serum creatinine (mg/dl): male 1.2; female 1.2 * age: 13 to \< 16 years; maximum serum creatinine (mg/dl): male 1.5; female 1.4 * age: \>= 16 years; maximum serum creatinine (mg/dl): male 1.7; female 1.4 * bilirubin (sum of conjugated + unconjugated) =\< 1.5 x upper limit of normal (uln) for age * serum glutamate pyruvate transaminase (sgpt) (alanine aminotransferase \[alt\]) =\< 135 u/l; (for the purpose of this study, the uln for sgpt is 45 u/l) * serum albumin \>= 2 g/dl * patients must have a normal blood sugar level for age; if an initial random draw (i.e. non-fasting) blood glucose value is out of range, it is acceptable to repeat this test as a fasting draw * patients must have a serum triglyceride level =\< 300 mg/dl and serum cholesterol level =\< 300 mg/dl; if an initial random draw (i.e. non-fasting) is out of range, it is acceptable to repeat this test as a fasting draw * patients with seizure disorder may be enrolled if on anticonvulsants and well controlled * nervous system disorders (by common terminology criteria for adverse events version 5.0 \[ctcae v 5.0\]) resulting from prior therapy must be =\< grade 2, with the exception of decreased tendon reflex (dtr); any grade of dtr is eligible * corrected qt (qtc) interval =\< 480 milliseconds * patients must be able to swallow intact tablets * all patients and/or their parents or legally authorized representatives must sign a written informed consent; assent, when appropriate, will be obtained according to institutional guidelines exclusion criteria: * pregnant or breast-feeding women will not be entered on this study; pregnancy tests must be obtained in girls who are post-menarchal; males or females of reproductive potential may not participate unless they have agreed to use an effective contraceptive method while receiving study treatment and for 3 months after the last dose of ly3023414 * concomitant medications * corticosteroids: patients receiving corticosteroids who have not been on a stable or decreasing dose of corticosteroid for at least 7 days prior to enrollment are not eligible; if used to modify immune adverse events related to prior therapy, \>= 14 days must have elapsed since last dose of corticosteroid * investigational drugs: patients who are currently receiving another investigational drug are not eligible * anti-cancer agents: patients who are currently receiving other anti-cancer agents are not eligible * anti-gvhd agents post-transplant: patients who are receiving cyclosporine, tacrolimus or other agents to prevent graft-versus-host disease post bone marrow transplant are not eligible for this trial * patients who have an uncontrolled infection are not eligible * patients who have insulin dependent diabetes are not eligible * patients who have received a prior solid organ transplantation are not eligible * patients with subependymal giant cell astrocytomas (segas) are not eligible * patients who in the opinion of the investigator may not be able to comply with the safety monitoring requirements of the study are not eligible