We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Commandline output:
$ ./stlink-gui (stlink-gui:25286): GLib-ERROR **: 10:38:03.866: ../glib-2.78.1/glib/gmem.c:136: failed to allocate 139988352155568 bytes Trace/breakpoint trap
The program crashes after opening a file.
Commit 3343078 seems to be the villain. Why g_malloc(<pointer_casted_to_gsize>) instead of the previous g_malloc(g_file_info_get_size(file_info))?
g_malloc(<pointer_casted_to_gsize>)
g_malloc(g_file_info_get_size(file_info))
Changing line 311 from gui->file_mem.size = (gsize) file_info; to gui->file_mem.size = file_size; fixed the issue and I was able to flash the device.
gui->file_mem.size = (gsize) file_info;
gui->file_mem.size = file_size;
The text was updated successfully, but these errors were encountered:
@rcubee That's a good question, I need to check.
Sorry, something went wrong.
3efa793
Nightwalker-87
rcubee
No branches or pull requests
Commandline output:
The program crashes after opening a file.
Commit 3343078 seems to be the villain. Why
g_malloc(<pointer_casted_to_gsize>)
instead of the previousg_malloc(g_file_info_get_size(file_info))
?Changing line 311 from
gui->file_mem.size = (gsize) file_info;
togui->file_mem.size = file_size;
fixed the issue and I was able to flash the device.The text was updated successfully, but these errors were encountered: