ziguifrido93 / procurement

Automatically exported from code.google.com/p/procurement
0 stars 0 forks source link

Cannot complete loading of stash - "[NOT OK]ERROR: Object reference not set to an instance of an object." #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When trying to complete logging in, I cannot load past Stash Tab 16.

Steps to reproduce:
1. Log into the application with my credentials 

Expected result: Loading completes and next UI displays (I haven't gotten that 
far yet, not sure exactly what is expected) 

Actual result: After trying to load Stash Tab 16, error message appears saying 
"[NOT OK]ERROR: Object reference not set to an instance of an object."

Procurement v0.0.1
Windows 7

Additional info: pathofexile.com is open and I am logged in. First time using 
the app - I hope I am not missing something obvious and wasting your time. 
Screenshot attached as a bonus, please let me know if I can provide any other 
relevant details.

Original issue reported on code.google.com by jpmc...@gmail.com on 20 Feb 2013 at 4:43

GoogleCodeExporter commented 8 years ago
Deleting folder with my email address also did nothing. There is no 
debuglog.txt file available for me to upload.

Original comment by jpmc...@gmail.com on 20 Feb 2013 at 5:45

GoogleCodeExporter commented 8 years ago
Hi,

I am guessing there was no debuginfo.log as the error was "gracefully" handled 
by the login controller. I will look into this.

Do you have more than the 16 tabs? Or was it the last one? I will improve the 
error handling here.

Original comment by original...@gmail.com on 20 Feb 2013 at 6:02

GoogleCodeExporter commented 8 years ago
I only have 16 tabs total so yes, it was the last one.

Original comment by jpmc...@gmail.com on 20 Feb 2013 at 6:10

GoogleCodeExporter commented 8 years ago
I am wondering if the throttling is still slightly overreaching here. Can you 
try something for me. In the folder where Procurement.exe is, there will be 2 
folders created after logon. Common, which contains all the images, and a 
folder with your email address. This contains a bunch of .bin files(the JSON 
returned from the site).

Can you delete the folder which is your email? And try login again. I am 
wondering if it was by chance or some wierd http error that came back from the 
server.

I am adding better logging now, so if it doesn't work, you can just try the 
next release, and attach the debuglog file. We should be able to release the 
next patch very soon.

Original comment by original...@gmail.com on 20 Feb 2013 at 6:17

GoogleCodeExporter commented 8 years ago
Hello, I had already tried that once but I deleted the folder with my email and 
then tried again just now, same result - Tab 13 took perhaps 30 seconds to 
load, then after tab 16 I received the same error message as described in the 
main issue.

Original comment by jpmc...@gmail.com on 20 Feb 2013 at 6:29

GoogleCodeExporter commented 8 years ago
And identical behavior from v0.0.2

Original comment by jpmc...@gmail.com on 20 Feb 2013 at 6:38

GoogleCodeExporter commented 8 years ago
Ok, I am investigating further. I added additional error handling in the next 
release(soon) which will really help me track this better.

Just as a test, you are running as administrator? Have you tried moving the 
extracted zip content into a folder other than say documents and settings where 
the rights may be an issue? 

Sorry for all the questions! Really appreciate you helping us out. We will get 
to the bottom of this soon!

Original comment by original...@gmail.com on 20 Feb 2013 at 6:53

GoogleCodeExporter commented 8 years ago
No problem, I do software QA for a living :P I don't think rights are an issue. 
I just ran as admin and it behaved exactly the same way. I'll keep an eye out 
for the next release and get the error log posted ASAP if it's still happening.

Original comment by jpmc...@gmail.com on 20 Feb 2013 at 7:04

GoogleCodeExporter commented 8 years ago
Oh awesome.

The new version is up. Can you give it a try, hopefully there will be a 
debuglog file now which you can attach :)

Original comment by original...@gmail.com on 20 Feb 2013 at 7:18

GoogleCodeExporter commented 8 years ago
Here's the full debuglog file text (exact same thing still):

System.NullReferenceException: Object reference not set to an instance of an 
object.
   at POEApi.Model.ItemFactory.Get(Item item)
   at POEApi.Model.Stash.<.ctor>b__0(Item item)
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at POEApi.Model.Stash..ctor(Stash proxy)
   at POEApi.Model.POEModel.GetStash(Int32 index, String league, Boolean forceRefresh)
   at POEApi.Model.POEModel.GetStash(String league)
   at Procurement.ViewModel.LoginWindowViewModel.loadStash(Character character)
   at Procurement.ViewModel.LoginWindowViewModel.<Login>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

Original comment by jpmc...@gmail.com on 20 Feb 2013 at 7:58

GoogleCodeExporter commented 8 years ago
Just to confirm, when you ran the new version, did you extract the files to a 
new folder and do a "clean" login?

Original comment by stickymaddness on 20 Feb 2013 at 9:16

GoogleCodeExporter commented 8 years ago
Yes.

Original comment by jpmc...@gmail.com on 20 Feb 2013 at 9:26

GoogleCodeExporter commented 8 years ago
Last question, do you have any characters that you haven't played since the 
wipe? Perhaps a level 1 in a different league that you haven't played since the 
open beta wipe?

If so, try logging into these character in game and getting to the first town, 
and then try login to Procurement again.

Original comment by stickymaddness on 20 Feb 2013 at 9:50

GoogleCodeExporter commented 8 years ago
Do you mean since Closed Beta? I have only been playing since the Open Beta 
started.

Original comment by jpmc...@gmail.com on 20 Feb 2013 at 9:58

GoogleCodeExporter commented 8 years ago
Yes, I meant closed beta, but it's not that then.

We'll investigate further and update you as soon as we can.

Original comment by stickymaddness on 20 Feb 2013 at 10:03

GoogleCodeExporter commented 8 years ago
No problem, let me know if I can help. Seems like an awesome application :) 
good luck!

Original comment by jpmc...@gmail.com on 20 Feb 2013 at 10:05

GoogleCodeExporter commented 8 years ago
Thanks, I just thought of something, is there anything unusual in your 16th 
tab? As a test, would it be possible for you to move the items in tab 16 to a 
different tab and see if it still crashes on the 16th tab?

Original comment by stickymaddness on 20 Feb 2013 at 10:12

GoogleCodeExporter commented 8 years ago
Okay, I'm attaching a screenshot of what's currently in the 16th tab, named 
"Random". I'll empty it and try it again. 

Original comment by jpmc...@gmail.com on 20 Feb 2013 at 10:15

Attachments:

GoogleCodeExporter commented 8 years ago
Emptying the tab seems to have worked - I am farther than I've ever gotten. 
It's loaded the images for everything and is now trying to load my hardcore 
stash tabs. It paused on HC Tab #8 like it did for Softcore #13..still waiting 
on the rest of the things to load. Will update.

Original comment by jpmc...@gmail.com on 20 Feb 2013 at 10:18

GoogleCodeExporter commented 8 years ago
Okay, it errored in a different place with the same text. Here's the log info:

System.NullReferenceException: Object reference not set to an instance of an 
object.
   at POEApi.Model.ItemFactory.Get(Item item)
   at POEApi.Model.Stash.<.ctor>b__0(Item item)
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at POEApi.Model.Stash..ctor(Stash proxy)
   at POEApi.Model.POEModel.GetStash(Int32 index, String league, Boolean forceRefresh)
   at POEApi.Model.POEModel.GetStash(String league)
   at Procurement.ViewModel.LoginWindowViewModel.loadStash(Character character)
   at Procurement.ViewModel.LoginWindowViewModel.<Login>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()System.NullReferenceException: Object reference not set to an instance of an object.
   at POEApi.Model.ItemFactory.Get(Item item)
   at POEApi.Model.Stash.<.ctor>b__0(Item item)
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at POEApi.Model.Stash..ctor(Stash proxy)
   at POEApi.Model.POEModel.GetStash(Int32 index, String league, Boolean forceRefresh)
   at POEApi.Model.POEModel.GetStash(String league)
   at Procurement.ViewModel.LoginWindowViewModel.loadStash(Character character)
   at Procurement.ViewModel.LoginWindowViewModel.<Login>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()System.NullReferenceException: Object reference not set to an instance of an object.
   at POEApi.Model.ItemFactory.Get(Item item)
   at POEApi.Model.POEModel.<GetInventory>b__2(Item i)
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at POEApi.Model.POEModel.GetInventory(String characterName)
   at Procurement.ViewModel.LoginWindowViewModel.loadCharacterInventory(Character character)
   at Procurement.ViewModel.LoginWindowViewModel.<Login>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

Original comment by jpmc...@gmail.com on 20 Feb 2013 at 10:21

Attachments:

GoogleCodeExporter commented 8 years ago
Sorry about the late reply, we did eventually have to call it a night!

I don't see anything in your 16th tab that should be a problem. The character 
that it's now breaking on, is there anything that character has equipped or in 
inventory that is in common with what you had on the 16th tab?

Original comment by stickymaddness on 21 Feb 2013 at 5:18

GoogleCodeExporter commented 8 years ago
We've just dropped v0.0.4, you will probably still get the same issue, however 
we've enhanced the debug logging so we will be able to get a better idea of the 
root cause.

Original comment by stickymaddness on 21 Feb 2013 at 9:34

GoogleCodeExporter commented 8 years ago
Hello, I still do, here is the log:

System.NullReferenceException: Object reference not set to an instance of an 
object.
   at POEApi.Model.ItemFactory.Get(Item item)
   at POEApi.Model.POEModel.<GetInventory>b__2(Item i)
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at POEApi.Model.POEModel.GetInventory(String characterName)
   at Procurement.ViewModel.LoginWindowViewModel.loadCharacterInventory(Character character)
   at Procurement.ViewModel.LoginWindowViewModel.<Login>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

I'll try to isolate the issue to a single item - some items from tab 16 to that 
character's inventory. I'll have more info in an hour or two, probably.

Original comment by jpmc...@gmail.com on 21 Feb 2013 at 12:24

GoogleCodeExporter commented 8 years ago
@jpmcvey, can you send us the whole debug log? It should be a fairly long file 
with big block of characters, this will allow us to see more information.

Original comment by stickymaddness on 21 Feb 2013 at 1:28

GoogleCodeExporter commented 8 years ago
As an update on this, we've created a developer build especially for this 
issue, please will you run and send us the debuglog, it should generate a big 
section of characters that will help us track things down!

http://code.google.com/p/procurement/downloads/detail?name=Procurement%20v0.0.4%
20-%20Developer%20Build.zip&can=1&q=#makechanges

Original comment by stickymaddness on 21 Feb 2013 at 3:28

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Here's the DebugInfo after three attempts.

Original comment by jpmc...@gmail.com on 21 Feb 2013 at 4:05

Attachments:

GoogleCodeExporter commented 8 years ago
Pinpointed the issue to being caused by the attached item. I can move it across 
characters and stash tabs and it errors on that character or tab every time.

Original comment by jpmc...@gmail.com on 21 Feb 2013 at 5:55

Attachments:

GoogleCodeExporter commented 8 years ago
This helps a ton, I have an idea what the issue is now, I will investigate and 
update when I can.

Original comment by stickymaddness on 21 Feb 2013 at 6:28

GoogleCodeExporter commented 8 years ago
Mmm, this really helps actually. If you can, can you zip the default stash 
x.bin files inside the email address folder(this is the json cache). 

Please don't zip from the procurement folder, because that would include the 
email address, and this is a public site. If you know that tabID, and its not a 
premium one, you can just attach that particular default-stash-x.bin to this. 
You can confirm it's the right one by opening it with notepad, and searching 
for maple round shield.

Thanks for helping us out with this, there are a few users who seem to be 
having similar issues. 

Original comment by original...@gmail.com on 21 Feb 2013 at 6:34

GoogleCodeExporter commented 8 years ago
Scratch that previous request. Found the issue! Thanks so much for you help, we 
will have a fix out for this very shortly!

Original comment by original...@gmail.com on 21 Feb 2013 at 6:40

GoogleCodeExporter commented 8 years ago
Ok we have a fix on the way, no need to send your bin files!

Original comment by stickymaddness on 21 Feb 2013 at 6:41

GoogleCodeExporter commented 8 years ago
Awesome :) glad I could help. 

Original comment by jpmc...@gmail.com on 21 Feb 2013 at 6:43

GoogleCodeExporter commented 8 years ago
We've just upped v0.0.5, it fixes the issue with out tests, please give it a 
try and let us know.

Thanks again for the assistance on this one, your QA experience showed!

Original comment by stickymaddness on 21 Feb 2013 at 7:17

GoogleCodeExporter commented 8 years ago
Verified fixed, I am all the way logged in and can view my stash. Excited to 
use your program. Thanks for the hard work!

Original comment by jpmc...@gmail.com on 21 Feb 2013 at 7:42

GoogleCodeExporter commented 8 years ago
And you are welcome!

Original comment by jpmc...@gmail.com on 21 Feb 2013 at 7:42

GoogleCodeExporter commented 8 years ago
Excellent, glad you can finally use Procurement!

Original comment by stickymaddness on 21 Feb 2013 at 8:28