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

Force closes on downloading resources #12

Open
naruaika opened this issue Apr 14, 2021 · 1 comment
Open

Force closes on downloading resources #12

naruaika opened this issue Apr 14, 2021 · 1 comment
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@naruaika
Copy link
Owner

naruaika commented Apr 14, 2021

It is quite often I encounter that the entire application force closed when downloading any resource. I was wondering if it had something to do with handling stream buffer or something related. But I recently discovered that just didn't seem right. Still figuring out the code. By the way, here's the traceback from faulthandler:

Fatal Python error: Segmentation fault

Thread 0x00007fa048b14700 (most recent call first):
  File "/usr/lib/python3.8/ssl.py", line 1099 in read
  File "/usr/lib/python3.8/ssl.py", line 1241 in recv_into
  File "/usr/lib/python3.8/socket.py", line 669 in readinto
  File "/usr/lib/python3.8/http/client.py", line 502 in readinto
  File "/usr/lib/python3.8/http/client.py", line 458 in read
  File "/app/share/grapik-quran/src/model.py", line 238 in add_musshaf
  File "/app/share/grapik-quran/src/window.py", line 571 in add_musshaf
  File "/usr/lib/python3.8/threading.py", line 870 in run
  File "/usr/lib/python3.8/threading.py", line 932 in _bootstrap_inner
  File "/usr/lib/python3.8/threading.py", line 890 in _bootstrap

Current thread 0x00007fa04f195740 (most recent call first):
  File "/usr/lib/python3.8/site-packages/gi/overrides/Gio.py", line 42 in run
  File "/app/share/grapik-quran/src/main.py", line 47 in main
  File "/app/bin/grapik-quran", line 41 in <module>

And

free(): double free detected in tcache 2
@naruaika naruaika added the bug Something isn't working label Apr 14, 2021
@naruaika naruaika pinned this issue Apr 15, 2021
@naruaika naruaika added good first issue Good for newcomers help wanted Extra attention is needed labels Apr 15, 2021
@naruaika
Copy link
Owner Author

naruaika commented May 20, 2021

Another traceback from journalctl -r:

May 20 09:22:30 vbook abrt-notification[62358]: [🡕] Process 62240 (python3.8) crashed in ??()
May 20 09:22:30 vbook abrt-server[62306]: Can't open file 'core_backtrace' for reading: No such file or directory
May 20 09:22:30 vbook abrt-server[62306]: Error: No segments found in coredump './coredump'
May 20 09:22:30 vbook abrt-server[62306]: Lock file '.lock' was locked by process 62309, but it crashed?
May 20 09:22:30 vbook abrt-server[62306]: Unsupported container technology
May 20 09:22:30 vbook abrtd[764]: Size of '/var/spool/abrt' >= 5000 MB (MaxCrashReportsSize), deleting old directory 'ccpp-2021-05-19-23:15:17.4815>
May 20 09:22:29 vbook audit: BPF prog-id=167 op=UNLOAD
May 20 09:22:29 vbook audit: BPF prog-id=168 op=UNLOAD
May 20 09:22:29 vbook flatpak[3952]: 09:22:29.7524                           ide-run-manager[    2]:  WARNING: Process quit unexpectedly
May 20 09:22:29 vbook systemd[1589]: app-flatpak-org.grapik.Quran-62232.scope: Deactivated successfully.
May 20 09:22:29 vbook audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump>
May 20 09:22:29 vbook systemd[1]: [email protected]: Deactivated successfully.
May 20 09:22:29 vbook systemd-coredump[62297]: [🡕] Process 62240 (grapik-quran) of user 1000 dumped core.
                                               
                                               Stack trace of thread 7:
                                               #0  0x00007f750e2a07f5 n/a (/usr/lib/x86_64-linux-gnu/libc-2.31.so + 0x397f5)
                                               #1  0x00007f750e2eb81c n/a (/usr/lib/x86_64-linux-gnu/libc-2.31.so + 0x8481c)
May 20 09:22:29 vbook audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredum>
May 20 09:22:29 vbook systemd[1]: Started Process Core Dump (PID 62296/UID 0).
May 20 09:22:29 vbook audit: BPF prog-id=168 op=LOAD
May 20 09:22:29 vbook audit: BPF prog-id=167 op=LOAD
May 20 09:22:28 vbook audit[62240]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=622>
May 20 09:21:45 vbook systemd[1589]: Started app-flatpak-org.grapik.Quran-62232.scope.

@naruaika naruaika self-assigned this May 20, 2021
@naruaika naruaika removed the good first issue Good for newcomers label May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant