Search found 5 matches

by hp26_esp32
Fri May 12, 2023 6:34 pm
Forum: ESP-IDF
Topic: berkeley-db-1.xx error
Replies: 2
Views: 1411

Re: berkeley-db-1.xx error

The file looks file. /*- * Copyright (c) 1990, 1993, 1994 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of...
by hp26_esp32
Fri May 12, 2023 4:14 am
Forum: ESP-IDF
Topic: berkeley-db-1.xx error
Replies: 2
Views: 1411

berkeley-db-1.xx error

Hello all, I moved from linux to windows. The project i am working on builds without any issues on the linux but the same fails to build on windows. On windows, i used the installer mentioned in GET STARTED in documentation. Everything is ok till i run 'idf.py' in the esp powershell. The build fails...
by hp26_esp32
Sat Jun 20, 2020 5:04 am
Forum: ESP-IDF
Topic: esp32 crashes when cJSON_Delete is called
Replies: 4
Views: 4678

Re: esp32 crashes when cJSON_Delete is called

I used back trace and realized that the crash was caused by free() which is being called by another task. i removed it and everything works fine. boarchuz, Thank you for the suggestions.
by hp26_esp32
Wed Jun 17, 2020 11:28 pm
Forum: ESP-IDF
Topic: esp32 crashes when cJSON_Delete is called
Replies: 4
Views: 4678

Re: esp32 crashes when cJSON_Delete is called

You need to check return values for cJSON_Parse, cJSON_GetObjectItem, and any related functions. If they fail for any reason (no mem, invalid json, element not found, etc) they will return NULL. I checked cJSON_Parse and cJSON_GetObjectItem none of them are null char *buffer has this data {"data1":...
by hp26_esp32
Wed Jun 17, 2020 6:44 am
Forum: ESP-IDF
Topic: esp32 crashes when cJSON_Delete is called
Replies: 4
Views: 4678

esp32 crashes when cJSON_Delete is called

I Hope every one is doing fine. I am using esp32 for a project and it keeps on crashing as soon as cJSON_Delete() is called my code printf("%s\r\n,buffer); cJSON *root = cJSON_Parse(buffer); char *data1 = cJSON_GetObjectItem(root, "data1")->valuestring; char *data2 = cJSON_GetObjectItem(root, "data2...