crutchwalkfactory / s60-json-library

Automatically exported from code.google.com/p/s60-json-library
0 stars 0 forks source link

Crashes with Panic Kern-Exec 3 on some devices #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. CJsonBuilder* jsonBuilder = CJsonBuilder::NewL();
jsonBuilder->BuildFromJsonStringL(_L("{\"ContactsOnly\":\"T\",\"Contacts\":\"N\"
}"));

What is the expected output? What do you see instead?
I've stepped through the parser and it always crashes with a Kern Exec 3
whenever it tries to parse JSON. This only occurs on the actual device. In
the emulator and on a Nokia E55 the code works perfectly.

What version of the product are you using? On what operating system?
Nokia 5800 (Symbian 5th Edition)
Nokia 6210 Navigator (Symbian 3rd Edition FP2)
Compiled on vista using 3rd Edition SDK for 6210 and %th for 5800

Please provide any additional information below.
I've stepped through the code trying to figure this out and I just can't
find the problem. It works perfectly on the E55, but on other devices it
crashes.

I tracked down the line it crahses on using break points and it's when it
attempts to add the "T" value to the Json object, more specifically when it
attempts to  create the JSON Pair ie:

CJsonPair* pair = new (ELeave) CJsonPair(aKey, MJsonValue::EString); on
line 97 of JsonObject.cpp

I've checked that aKey is initialised as well as the JsonObject.

To be truthful, I've hit a wall... it makes absolutely no sense that it
does not work.

Original issue reported on code.google.com by afterbur...@gmail.com on 29 Apr 2010 at 3:00

GoogleCodeExporter commented 8 years ago
I have tested application which uses this library on Nokia 5800 and it works 
correctly. Maybe it is not the problem of the library? Maybe your application 
have 
some problems with memory management and pointers? Try to create new project 
(Hello 
World for example), and add this two lines to your application: 

CJsonBuilder* jsonBuilder = CJsonBuilder::NewL();
jsonBuilder->BuildFromJsonStringL(_L("{\"ContactsOnly\":\"T\",\"Contacts\":\"N\"
}"));

And check if there is still the problem.

Original comment by wach.piotrek on 30 May 2010 at 12:20

GoogleCodeExporter commented 8 years ago
Dear friends, just to confirm that it works on X6 i have tested it.

Thanks the authors a lot who created this valuable piece of code , thanks a lot 
once again

Original comment by vdharankar on 17 Jul 2010 at 10:53

GoogleCodeExporter commented 8 years ago
Thank you :)

Original comment by wach.piotrek on 4 Aug 2010 at 2:47